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

Support CI tests for old rust-gpu versions #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tombh
Copy link
Contributor

@tombh tombh commented Jan 27, 2025

Adds rust-gpu versions, 0.8.0 and 0.9.0 to the Linux matrix on CI tests. 0.7.0 has a probably minor dependency error, but it's also 18 months old and there probably aren't many users of it.

Notes:

  • Adds a version arg to: just build-shader-template 0.8.0.
  • Offers a new CLI arg to workaround a bug where conflicting v3/v4 versions of Cargo.lock files (between the shader and workspace) cause a build error. See force_overwrite_lockfiles_v4_to_v3 arg
  • "rust-gpu-version: latest" actually means the pinned version of spirv-std in the shader-crate-template.

TODO:

  • Use our cache directory to store the list of Cargo.lock files that need to be reverted. This will allow reverting them even if the build fails.
  • It'd be good to have a CI test for the infamous v3/v4 Cargo.lock manifest version conflict. It would require having a sample shader crate with a Rust toolchain is < 1.83.0.

@tombh tombh force-pushed the support-ci-testing-old-rust-gpu-versions branch from 36394d5 to 0e50a9b Compare January 27, 2025 20:28
@tombh
Copy link
Contributor Author

tombh commented Jan 27, 2025

BTW I streamed a lot of the development of this PR on Twitch 🤓 https://www.twitch.tv/videos/2365066223

@tombh tombh force-pushed the support-ci-testing-old-rust-gpu-versions branch 2 times, most recently from 23ab263 to a27320a Compare January 28, 2025 16:26
@tombh tombh force-pushed the support-ci-testing-old-rust-gpu-versions branch from a27320a to 22389d6 Compare February 5, 2025 13:26
Adds `rust-gpu` versions, `0.8.0` and `0.9.0` to the Linux matrix
on CI tests. `0.7.0` has a probably minor dependency error, but
it's also 18 months old and there probably aren't many users of it.

Notes:
* Adds a version arg to: `just build-shader-template 0.8.0`.
* Offers a new CLI arg to workaround a bug where conflicting v3/v4
  versions of `Cargo.lock` files (between the shader and workspace)
  cause a build error. See `force_overwrite_lockfiles_v4_to_v3` arg.
@tombh tombh force-pushed the support-ci-testing-old-rust-gpu-versions branch from 22389d6 to ad2397d Compare February 8, 2025 11:46
@tombh
Copy link
Contributor Author

tombh commented Feb 8, 2025

This is ready for review. There's still a couple of TODOs, but they're not high priority.

@schell
Copy link
Collaborator

schell commented Feb 19, 2025

@tombh do you want me to clear up these conflicts, since I ultimately caused them?

@tombh
Copy link
Contributor Author

tombh commented Feb 19, 2025

Aww, thanks for the offer! Very kind of you 😊

I was actually more interested in a review at the moment. Then I could make any changes and resolve the conflicts at once.

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.

2 participants