Repository navigation
fix(pm-stack): parse DRY_RUN explicitly (#5421) - #5467
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
These expanded shell tests validate an important behavior change (environment parsing), but the PR… · New These expanded shell tests validate an important behavior change (environment parsing), but the PR… · New The usage header still only showsDRY_RUN=1as the dry-run example, even thoughDRY_RUN=trueis… · New
What changed in this PR
Tightens DRY_RUN handling in the pm-stack ready-for-agent config helper so only explicit opt-ins enable dry-run, and expands the harness tests/fixtures to validate the behavior and invocation ordering.
Changes:
- Parse
DRY_RUNexplicitly (1ortrue, case-insensitive) instead of treating any non-empty value as dry-run. - Extend
test-apply-config.shto coverDRY_RUN=trueandDRY_RUN=0. - Update
test-install.shfixture to include anapply-config.shstub and assert it is invoked (including after retry).
| File | Description |
|---|---|
| pm-stack/ready-for-agent/test-install.sh | Adds apply-config/config fixture and assertions that apply-config is invoked (including retry path). |
| pm-stack/ready-for-agent/test-apply-config.sh | Adds new DRY_RUN test cases for true (case-insensitive) and 0 (false-y). |
| pm-stack/ready-for-agent/apply-config.sh | Changes DRY_RUN parsing to be explicit (1/true) and documents the accepted values. |
Review effort: Lite
| } | ||
| echo "ok: dry run plans registration and mutates nothing" | ||
|
|
||
| DRY_RUN=TrUe ./apply-config.sh >"$WORK/true-dry-run.out" |
| PYEOF | ||
|
|
||
| : >"$WORK/mutations.log" | ||
| DRY_RUN=0 ./apply-config.sh >"$WORK/falsey.out" |
| # ./apply-config.sh apply config.json next to this script | ||
| # DRY_RUN=1 ./apply-config.sh print the mutations it would send | ||
| # DRY_RUN accepts only "1" or "true" (case-insensitive) as dry-run; | ||
| # "0", "false", "no", empty, and unset apply the config for real. |


Fixes #5421
Only �[1mDRY_RUN=1�[0m and �[1mDRY_RUN=true�[0m (case-insensitive) enable dry-run; false-y, empty, and unset values now apply configuration normally. Extend the stub-harness test to cover DRY_RUN=0 and true, and complete the install-test fixture so it verifies the config helper runs after service verification.
Tests run locally:
CI coverage note: .github/workflows/pm-stack-tests.yml is push-to-main/workflow_dispatch only and does not run these ready-for-agent shell tests on pull requests.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.