Skip to content

chore(cts): Fix parsing of Git for Windows version string #7814

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

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

jamienicol
Copy link
Contributor

@jamienicol jamienicol commented Jun 17, 2025

Connections
Regressed by #7800

Description
Git for Windows adds an extra suffix to the version string. This is a follow up to #7800 that ensures we parse such git versions correctly rather than returning an error.

This is causing CTS runs to fail for me on CI. So I'm curious how it got through CI in the first place?

Testing
Added a test. CI now passes (presumably)

Squash or Rebase?

doesn't matter

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

Git for Windows adds an extra suffix to the version string. This is a
follow up to gfx-rs#7800 that ensures we parse such git versions correctly
rather than returning an error.
@jamienicol jamienicol requested a review from a team as a code owner June 17, 2025 09:55
Copy link
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

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

...I am similarly puzzled why the Windows check from the regressing PR passed! It very clearly says git version 2.49.0.windows.1 in the repo checkout step. 🥴

@ErichDonGubler ErichDonGubler merged commit aeb2c3e into gfx-rs:trunk Jun 17, 2025
40 checks passed
@ErichDonGubler
Copy link
Member

Sorry for the breakage! 🙏💦

@jamienicol jamienicol deleted the git-windows-version branch June 17, 2025 13:22
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