Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DX12 code generation out-of-date check to the GitHub CI build #1556

Merged

Conversation

bradgrantham-lunarg
Copy link
Contributor

No description provided.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 186129.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 186171.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 186262.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4180 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4180 passed.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187144.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4197 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4197 passed.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187526.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187537.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187539.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187560.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187562.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187577.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187579.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187584.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187599.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187600.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187606.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187607.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187620.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187624.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 187624 cancelled.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187626.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 187626 cancelled.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187628.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187639.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4208 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4208 aborted.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187656.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4210 aborted.

@bradgrantham-lunarg bradgrantham-lunarg force-pushed the github-ci-generate-dx12 branch from 11a6482 to 4431b13 Compare May 17, 2024 19:50
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 187687.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4211 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4211 aborted.

@bradgrantham-lunarg bradgrantham-lunarg requested review from mikes-lunarg and davidd-lunarg and removed request for mikes-lunarg May 17, 2024 20:51
@bradgrantham-lunarg bradgrantham-lunarg changed the title Add DX12 code generation to the GitHub CI build Add DX12 code generation out-of-date check to the GitHub CI build May 17, 2024
@LunarG LunarG deleted a comment from ci-tester-lunarg May 17, 2024
@LunarG LunarG deleted a comment from ci-tester-lunarg May 17, 2024
@LunarG LunarG deleted a comment from ci-tester-lunarg May 17, 2024
Copy link
Contributor

@mikes-lunarg mikes-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I played around with it on my fork so I could see what a failure looks like.

uses: actions/setup-python@v5
with:
python-version: '3.10'
# cache: 'pip' # caching pip dependencies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did the cache option not work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the cache line in there I got this error:

Run actions/setup-python@v5
Installed versions
Error: No file in D:\a\gfxreconstruct\gfxreconstruct matched to [**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository

I'll take out the cache line.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok. From the docs I it looks like they expect a requirements file so they can hash and use it as a cache key: https://github.com/actions/setup-python?tab=readme-ov-file#caching-packages-dependencies

Then you would call pip with pip install -r requirements.txt. That would let you version-lock your python dependencies and invalidate the cache when they get updated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the pip install only takes 10-20 seconds of a 10 minute job, so caching is probably overkill anyway!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just running the generators required SO MANY dependencies (and I discovered each one after waiting 15 minutes for the CI build to run) that I just didn't care enough to enable caching. Thank you for doing the footwork to figure out how I would reintroduce the cache!

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 190008.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4234 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4234 passed.

@bradgrantham-lunarg bradgrantham-lunarg merged commit f6c7efc into LunarG:dev May 23, 2024
8 checks passed
locke-lunarg pushed a commit to locke-lunarg/gfxreconstruct that referenced this pull request Jun 10, 2024
…narG#1556)

* add DX12 code generation to the GitHub CI build
* use ilemmy's vsdevcmd action
* require Python 3.10
* require ply
* use SDK 20348
* set VCVars
* checkout before building
* set Windows SDK Version
* update tree before generated code check
* diff merge ref; use recursive checkout
locke-lunarg pushed a commit to locke-lunarg/gfxreconstruct that referenced this pull request Jun 10, 2024
…narG#1556)

* add DX12 code generation to the GitHub CI build
* use ilemmy's vsdevcmd action
* require Python 3.10
* require ply
* use SDK 20348
* set VCVars
* checkout before building
* set Windows SDK Version
* update tree before generated code check
* diff merge ref; use recursive checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants