feat: Check supported static binary builds version before attempting download - #151
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix error message for unavailable static build versions
Check version against supported static binary builds before attempting download
Mar 9, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #151 +/- ##
==========================================
+ Coverage 95.71% 95.87% +0.15%
==========================================
Files 9 9
Lines 327 339 +12
==========================================
+ Hits 313 325 +12
Misses 14 14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
shenxianpeng
marked this pull request as ready for review
March 10, 2026 07:08
2bndy5
requested changes
Mar 10, 2026
Contributor
|
The CI failures seem to be related to downloads from PyPI, not our static binaries. More specifically, the failures seems to use system python instead of a venv |
2bndy5
added a commit
that referenced
this pull request
Mar 17, 2026
- [x] remove unused release-drafter config - [x] update permissions for jobs that invoke reusable release-drafter workflows - [x] switch labeler workflow to use separate reusable workflow refs: - cpp-linter/.github#71 - cpp-linter/.github#74 - supersedes and closes #151
3 tasks
Contributor
Co-authored-by: shenxianpeng <[email protected]>
Co-authored-by: shenxianpeng <[email protected]>
2bndy5
force-pushed
the
copilot/fix-version-check-error-message
branch
from
May 9, 2026 05:43
b95f28d to
229ab4c
Compare
…d error test Agent-Logs-Url: https://github.com/cpp-linter/clang-tools-pip/sessions/0c11d43a-3faa-49a9-811e-1b1ae58ca162 Co-authored-by: 2bndy5 <[email protected]>
2bndy5
reviewed
May 9, 2026
|
2bndy5
approved these changes
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Requesting an unsupported version produces an opaque
OSErrorfrom a failed HTTP download. This adds an early validation that raises a clearValueErrorinstead, and restores coverage of theOSErrorpath with a dedicated test.Changes
clang_tools/__init__.py: AddedMIN_VERSION = 11andMAX_VERSION = 22constants (matching the supported range in the README).clang_tools/install.py: ImportsMIN_VERSIONandMAX_VERSIONfrom the package__init__. Added a version range check ininstall_clang_tools()that raises a clearValueErrorfor unsupported versions:tests/test_install.py: Updatedtest_path_warningto exercise the newValueError. Addedtest_install_tool_download_errorwhich monkeypatchesbinary_repoto an invalid URL, causingdownload_fileto returnNoneandinstall_toolto raiseOSError("Failed to download ..."), restoring code coverage of that path.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.