Skip to content

fix(pm-stack): parse DRY_RUN explicitly (#5421) - #5467

Merged
dezren39 merged 2 commits into
mainfrom
fix/pm-stack-dry-run-falsey-5421
Nov 4, 2026
Merged

dezren39 merged 2 commits into
mainfrom
fix/pm-stack-dry-run-falsey-5421

Conversation

@dezren39

@dezren39 dezren39 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

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:

  • bash pm-stack/ready-for-agent/test-apply-config.sh
  • bash pm-stack/ready-for-agent/test-install.sh
  • bash -n on the three changed shell scripts
  • git diff --check

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.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 4, 2026 13:28
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a6a96eec-c3d9-4c93-a357-9604f43bca5e
Commits

Reviewing files that changed from the base of the PR and between 44b2dd5 and b71dbe7.

Files selected for processing: 3
  • pm-stack/ready-for-agent/apply-config.sh
  • pm-stack/ready-for-agent/test-apply-config.sh
  • pm-stack/ready-for-agent/test-install.sh
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T13:32:31.944885Z b71dbe7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 requested a balanced review from Copilot November 4, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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
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_RUN explicitly (1 or true, case-insensitive) instead of treating any non-empty value as dry-run.
  • Extend test-apply-config.sh to cover DRY_RUN=true and DRY_RUN=0.
  • Update test-install.sh fixture to include an apply-config.sh stub 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"
Comment on lines 16 to +19
# ./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.
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.

fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies

2 participants