Skip to content

ci(claude-review): switch the review off behind CLAUDE_REVIEW_ENABLED - #1007

Merged
auxesis merged 1 commit into
mainfrom
ci/disable-claude-review
Oct 2, 2026
Merged

auxesis merged 1 commit into
mainfrom
ci/disable-claude-review

Conversation

@tobyhede

@tobyhede tobyhede commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The automated Claude pull-request review is meant to be advisory, but it is marking pull requests with a failed check. On #1006 the review ran out of turns, and a cancelled re-run still reported a failure. This turns the review off: the job now runs only when the repository variable CLAUDE_REVIEW_ENABLED is 'true'. The variable is not set, so after merge the review check shows as skipped (grey) instead of failed. Setting the variable turns it back on without another pull request.

Changes

  • .github/workflows/claude-review.yml: the review job's if: now starts with vars.CLAUDE_REVIEW_ENABLED == 'true' &&; a comment says why and how to re-enable.
  • scripts/__tests__/claude-review-workflow.test.mjs: asserts the switch is the first clause of the condition.
  • scripts/__tests__/workflow-dispatch-job-conditions.test.mjs: holds the new variable open in its synthetic contexts (as it already does for needs), so the fork-guard test still tests only the fork guard.

Verification

  • pnpm run test:scripts: 54 files, 938 passed, 1 skipped.
  • biome check clean on both test files.
  • gh variable list shows no CLAUDE_REVIEW_ENABLED, so the job will skip once this merges.
  • pull_request runs the workflow from the pull request head, so this PR's own review job already uses the new condition and should show as skipped once it is marked ready.

Related

Refs #974, #1006

Review notes

What failed on #1006, for the follow-up that makes the review advisory and re-enables it:

  • Attempt 1: error_max_turns (26 turns against --max-turns 25, 6 refused tool calls, $0.45). The PR touches 28 files.
  • Attempt 2 (re-run): cancelled during the 5-minute debounce sleep; the gate step runs under if: always(), so it still failed the job.

The follow-up should put continue-on-error: true on the review step, make the gate warn instead of fail, run it under !cancelled(), raise --max-turns, and log refused tool calls.

No changeset: CI workflow and repo tests only.

The review is meant to be advisory, but the 'Require completed Claude
review' gate failed the check whenever Claude did not finish: on #1006 it
ran out of turns, and a cancelled re-run still reported a failure because
the gate runs under always(). Gate the job on the repository variable
CLAUDE_REVIEW_ENABLED == 'true'. It is unset, so the job is skipped (a
neutral check, not a failed one) until the review is made advisory, and
it can be switched back on without a pull request.
@changeset-bot

changeset-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d2211c0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@tobyhede
tobyhede marked this pull request as ready for review October 2, 2026 05:11
@tobyhede
tobyhede requested a review from a team as a code owner October 2, 2026 05:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 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-10-02T05:14:22.553586Z d2211c0 Draft marked ready
ℹ️ 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.

@auxesis
auxesis merged commit 9d221fb into main Oct 2, 2026
27 checks passed
@auxesis
auxesis deleted the ci/disable-claude-review branch October 2, 2026 05:15
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.

2 participants