Skip to content

Make git version detection more robust#101

Merged
leander-dsouza merged 1 commit intomainfrom
cottsay/git-version-check
Feb 27, 2026
Merged

Make git version detection more robust#101
leander-dsouza merged 1 commit intomainfrom
cottsay/git-version-check

Conversation

@cottsay
Copy link
Member

@cottsay cottsay commented Feb 24, 2026

Basic Info

Info Please fill out this column
Ticket(s) this addresses N/A
Primary OS tested on Fedora, Ubuntu, Windows
Is this a breaking change? No
Does this PR contain AI generated software? No

Description of contribution in a few bullet points

This detection was previously updated to account for the 'windows' string appearing in the git version. It turns out that this practice isn't Windows-specific, and we should support non-digit version parts more generically.

Description of how this change was tested

  • Performed linting validation using pre-commit run --all
  • Verified that the code passes all tests using python3 -m pytest -s -v test

This detection was previously updated to account for the 'windows'
string appearing in the git version. It turns out that this practice
isn't Windows-specific, and we should support non-digit version parts
more generically.

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay cottsay self-assigned this Feb 24, 2026
@cottsay cottsay added the bug Something isn't working label Feb 24, 2026
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.99%. Comparing base (a4f3a63) to head (b10c5df).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
+ Coverage   26.96%   26.99%   +0.03%     
==========================================
  Files          31       31              
  Lines        2240     2241       +1     
  Branches      393      393              
==========================================
+ Hits          604      605       +1     
  Misses       1576     1576              
  Partials       60       60              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@leander-dsouza leander-dsouza left a comment

Choose a reason for hiding this comment

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

LGTM 🎉 , this makes it more resilient to git tags involving release candidates - 2.44.0.rc0.

@leander-dsouza leander-dsouza merged commit 4e44ad7 into main Feb 27, 2026
41 of 44 checks passed
@leander-dsouza leander-dsouza deleted the cottsay/git-version-check branch February 27, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants