Repository navigation
Count a Held Package as Installed in setup-github.sh - #2625
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
0 open findings
What changed in this PR
Updates Linux package detection so held packages count as installed, with focused status tests.
Changes:
- Recognizes both installed and held Debian packages.
- Adds tests for installed, held, removed, and unknown states.
- Reuses the sourced-function test runner.
| File | Summary |
|---|---|
tests/test_setup_github.py |
Adds package status tests and shared runner. |
host-setup/linux/setup-github.sh |
Recognizes held packages as installed. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2625 +/- ##
========================================
Coverage 59.33% 59.33%
========================================
Files 16 16
Lines 8280 8280
========================================
Hits 4913 4913
Misses 3367 3367
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Promotes develop to main, carrying one change: `setup-github.sh` counts a package held with `apt-mark hold` as installed (#2625). Fixes #2597 🤖 Generated with [Claude Code](https://claude.com/claude-code)
setup-github.sh'spackage_installednow matches^(install|hold) ok installed, so a package held withapt-mark holdcounts as installed instead of being sent toapt-get install -y. A newTestPackageInstalledclass stubsdpkg-queryfor installed, held, removed, and unknown statuses, and the held case fails without the fix. The two classes share one sourced-function runner.Closes on promotion: #2597
🤖 Generated with Claude Code