Skip to content

ci: fix the Claude review and bump workflow actions - #155

Merged
bbasinsk merged 2 commits into
mainfrom
chore/ci-release-pr-builds
Dec 5, 2026
Merged

bbasinsk merged 2 commits into
mainfrom
chore/ci-release-pr-builds

Conversation

@bbasinsk

@bbasinsk bbasinsk commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Ticket: none.

Status: reported head 3f7c828 · merge readiness needs evidence · risk low

PR report

bbasinsk/katalyst · chore/ci-release-pr-builds → main · range 1f43fcd..3f7c828 · head 3f7c828. There are no local-only changes.

Merge readiness: needs evidence · Risk: low · head 3f7c828

  • The required check build at this head has not finished yet.
  • The Claude review keeps failing until CLAUDE_CODE_OAUTH_TOKEN is replaced (see below).
Factor Assessment Evidence
Impact low Changes CI and release configuration only. No library code changes.
Rollback two-way A revert restores the old workflows.
Error detection visible A broken workflow fails its run in Actions.

What changed

Before After
Two pushes to main close together could run release-please at the same time. concurrency: release-please, as in backend.
deploy read needs.release-please without listing it (actionlint error). needs: [release-please, build]. Past deploys ran, so this only makes the dependency explicit.
The Claude review ran on every push, with read-only PR permission, and also on release PRs. It runs on opened and ready_for_review, skips drafts and release PRs, and posts inline comments. Its prompt is adapted from backend's.
actions/setup-java@v4 was deprecated. checkout v7, setup-java v6, setup-gradle v6, release-please-action v5, the versions backend uses.

Release PR builds stay manual. GitHub holds them for approval because release-please pushes with GITHUB_TOKEN. Approve them from the run page when you want CI on a release.

Claude review failure

The review fails 2 seconds into its first turn, with is_error: true and no cost. CLAUDE_CODE_OAUTH_TOKEN in this repository was set 2025-09-22, and claude setup-token tokens last one year. Backend's token, set 2026-04-10, works. Replace it:

claude setup-token
gh secret set CLAUDE_CODE_OAUTH_TOKEN -R bbasinsk/katalyst

Verification

Evidence Result
actionlint .github/workflows/*.yml at the head pass
CI build at the head pending

Human attention

Human-review list: none of the code categories apply. Read release-please.yml anyway, because it gates the Maven Central deploy.

🤖 Generated with Claude Code

bbasinsk and others added 2 commits December 4, 2026 17:04
Release-please pushes the release PR with GITHUB_TOKEN, so the PR's
build and review runs wait for approval. Nobody approved them, so the
release PR merged without CI, and the waiting runs turned into failures
on merge.

- release-please.yml: a new job approves the runs waiting at the
  release PR's head, as backend's release workflow does. release-please
  runs one at a time. deploy names release-please in `needs`, because
  its `if` reads that job's output.
- claude-code-review.yml: review once when a PR opens or leaves draft,
  skip release PRs, and post inline comments. This follows backend's
  review workflow.
- Bump checkout, setup-java, setup-gradle, and release-please-action
  to the versions backend uses. setup-java v4 was deprecated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bbasinsk bbasinsk changed the title ci: approve release PR runs and fix the Claude review ci: fix the Claude review and bump workflow actions Dec 5, 2026
@claude

claude Bot commented Dec 5, 2026

Copy link
Copy Markdown

Review: CI workflow changes

Only workflow files change, so there's no library code, test or performance impact. A few points:

Worth checking

  1. deploy needs fix (release-please.yml). Listing release-please is correct. The PR description says past deploys ran, but with needs: build alone, needs.release-please.outputs.release_created evaluates to empty, so deploy should have been skipped. Please confirm the next release actually reaches Maven Central. This change may be what makes it work, and the description should say so if so.
  2. concurrency: release-please (job level). The default queues one pending run and cancels older pending ones. That is fine here, because release-please recomputes from repo state. Don't add cancel-in-progress: true, which could kill a run mid-tag.
  3. Supply chain on the publishing job. deploy holds the maven-central environment secrets and uses mutable tags (@v7, @v6, @v5). Pinning at least the deploy job's actions to commit SHAs, with Dependabot to bump them, would be safer. Also confirm that those major versions exist, since CI build was still pending when the PR was written.
  4. FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true is still set at the top of release-please.yml. With the bumped actions it may be obsolete or counterproductive. Consider dropping it.

Review workflow
5. The trigger is now opened and ready_for_review, with no synchronize. This is intended, but later pushes get no automated review. The draft == false guard plus ready_for_review is correct.
6. The prompt dropped the "use the repo's CLAUDE.md" line. The repo has no CLAUDE.md, only .github/copilot-instructions.md. Pointing the prompt at that file would carry over the project's style rules, such as "types exclude impossible states".
7. Narrowing the tools to the inline-comment tool plus gh pr comment/diff/view and dropping issues: read is a good least-privilege change. pull-requests: write is needed for it.
8. As the description notes, the review keeps failing until CLAUDE_CODE_OAUTH_TOKEN is rotated. That is a manual step outside this PR.

Tests: no automated tests apply. actionlint passing is the right check. Merge once build is green and item 1 is confirmed.

@bbasinsk
bbasinsk marked this pull request as ready for review December 5, 2026 01:11
Copilot AI balanced review requested due to automatic review settings December 5, 2026 01:11

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@bbasinsk
bbasinsk merged commit 10aa447 into main Dec 5, 2026
2 checks passed
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