Skip to content

Keep the release dry-run switch out of the preflight checks - #227

Merged
robzolkos merged 2 commits into
masterfrom
release-dry-run-skills-test
Nov 13, 2026
Merged

robzolkos merged 2 commits into
masterfrom
release-dry-run-skills-test

Conversation

@robzolkos

@robzolkos robzolkos commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What

scripts/release.sh runs make release-check without its own DRY_RUN in the environment, and gives the nested make an empty one.

Why

make release VERSION=vX.Y.Z DRY_RUN=1, the rehearsal RELEASING.md documents, passed DRY_RUN=1 down to make release-check, which runs test-sync-skills. sync-skills.sh reads a variable of the same name and accepts only local or remote, so every case failed:

not ok - sync as hey-cli succeeded
    ERROR: DRY_RUN must be unset, 'local' or 'remote', not '1'

Unsetting the shell variable alone is not enough: a DRY_RUN=1 given on make's command line also travels to the nested make through MAKEFLAGS. A real release sets no DRY_RUN and was unaffected. basecamp-cli and hey-cli already keep the switch out of the checks in their release scripts; this does the same here.

Testing

  • make check passes
  • From a make given DRY_RUN=1, a nested make test-sync-skills fails 33 assertions; env -u DRY_RUN make DRY_RUN= test-sync-skills passes them all.

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

The change appears safe to merge.

Summary

Clears inherited DRY_RUN in scripts/test-sync-skills.sh so release rehearsals do not pass an unsupported value to the sync script.

  • The skills-sync test clears release dry-run settings before its cases run.

Reviews (1) · Last reviewed commit: "Let the release dry run pass the skills-..." · Reviewed by Greptile

`make release VERSION=... DRY_RUN=1` passes DRY_RUN=1 down to the
preflight, which runs test-sync-skills.sh. sync-skills.sh reads a
variable of the same name and accepts only 'local' or 'remote', so
every case failed with "DRY_RUN must be unset, 'local' or 'remote',
not '1'" and the dry run could not complete.

The test now unsets an inherited DRY_RUN, as it does SKILLS_TOKEN.
Each case that wants one sets its own.
@robzolkos robzolkos added the bug Something isn't working label Nov 13, 2026
Copilot AI balanced review requested due to automatic review settings November 13, 2026 17:58
Fix the dry run where the sibling CLIs do: release.sh runs
release-check without its own DRY_RUN in the environment, and gives
the nested make an empty one, since `make release DRY_RUN=1` also
carries it through MAKEFLAGS. test-sync-skills.sh goes back to the
shared copy unchanged.
@robzolkos robzolkos changed the title Let the release dry run pass the skills-sync test Keep the release dry-run switch out of the preflight checks Nov 13, 2026

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.

🟢 Approved

No active review issues are recorded for the change isolating skills-sync tests from inherited release dry-run settings.

No open issues 🎉

What changed in this PR

This PR prevents the skills-sync test from failing during the documented make release VERSION=vX.Y.Z DRY_RUN=1 rehearsal.

Changes:

  • Clears inherited DRY_RUN before running test cases, leaving individual cases free to set their own value.
  • Adds a comment explaining the conflict between release and skills-sync dry-run values.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
scripts/​test-sync-skills.sh Unsets inherited DRY_RUN to isolate test cases from release settings.

Review effort: Balanced

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

You’re at about 94% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

View guided diff | Turn on auto-fix | Re-trigger cubic

@robzolkos
robzolkos merged commit 8b93954 into master Nov 13, 2026
16 checks passed
@robzolkos
robzolkos deleted the release-dry-run-skills-test branch November 13, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants