Repository navigation
Conversation
`setup-github.sh`'s `package_installed` now matches `^(install|hold) ok installed`, so a package held with `apt-mark hold` counts as installed instead of being sent to `apt-get install -y`. A new `TestPackageInstalled` class stubs `dpkg-query` for 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](https://claude.com/claude-code) --------- 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2626 +/- ##
=======================================
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:
|
There was a problem hiding this comment.
🟢 Approval recommended
The focused change and regression tests cover the stated setup-github.sh behavior.
0 open findings
What changed in this PR
This promotion brings the held-package check from develop to main, so setup-github.sh does not try to reinstall a held prerequisite.
Changes:
- Accept
hold ok installedas an installed package state. - Add status tests and share the sourced-function test runner.
| File | Description |
|---|---|
host-setup/linux/setup-github.sh |
Recognizes held packages as installed. |
tests/test_setup_github.py |
Tests package states and reuses the Bash test runner. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Promotes develop to main, carrying one change:
setup-github.shcounts a package held withapt-mark holdas installed (#2625).Fixes #2597
🤖 Generated with Claude Code