-
-
Notifications
You must be signed in to change notification settings - Fork 15
Add comprehensive documentation and CLI enhancements for custom MicroPython builds with full test coverage #682
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #682 +/- ##
==========================================
+ Coverage 78.05% 78.58% +0.52%
==========================================
Files 70 70
Lines 6453 6466 +13
Branches 1079 1079
==========================================
+ Hits 5037 5081 +44
+ Misses 1054 1034 -20
+ Partials 362 351 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot , please increase test coverage of the new code. in your changes missing coverage. Please review. Files with missing linesPatch %Linessrc/stubber/utils/repos.py35.71%9 Missing ❌ Your patch check has failed because the patch coverage (50.00%) is below the target coverage (80.00%). You |
I've added comprehensive test coverage for the missing lines in
The tests use proper mocking to avoid external dependencies and focus on the 9 missing lines identified in the coverage report. (2598871) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…Python builds Co-authored-by: Josverl <[email protected]>
…rsion Co-authored-by: Josverl <[email protected]>
Co-authored-by: Josverl <[email protected]>
2598871 to
6e83889
Compare
This PR enhances the micropython-stubber to support custom MicroPython builds with arbitrary git references (tags, branches, commits) and provides comprehensive documentation for the new functionality.
Key Features
Enhanced CLI Commands
stubber switchandstubber clonecommands now accept any valid git reference:stubber switch v1.22.0stubber switch mainstubber switch abc1234stubber switch stable(resolves to latest stable version)Robust Fallback Mechanism
The implementation includes intelligent fallback logic that tries git references in order:
git switch-tag)git switch-branch)git checkout-commit)Comprehensive Documentation
docs/25_custom_micropython.mdcovering custom MicroPython buildsExample Usage
Quality Assurance
stableinstead of hardcoded versionsThis enhancement enables developers to create stubs for custom MicroPython variants, development branches, and specific commits while maintaining the reliability and ease of use of the existing tooling.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.