Skip to content

Promote Held-Package Install Check in setup-github.sh to Main - #2626

Merged
ptr727 merged 1 commit into
mainfrom
develop
Oct 9, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

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

`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]>
Copilot AI lite review requested due to automatic review settings October 9, 2026 06:02
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ec4c0dd-0d58-440d-b67f-14402425db26
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.33%. Comparing base (52e85b3) to head (225e1e9).
⚠️ Report is 342 commits behind head on main.

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           
Flag Coverage Δ
python-3.13 59.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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 installed as 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Count a Held Package as Installed in setup-github.sh

2 participants