Skip to content

fix(ci): renovate should close superseded PRs; review-pr should comment on CI failures for self-authored PRs - #1539

Merged
max-sixty merged 2 commits into
mainfrom
hourly/review-23108951848
Mar 15, 2026
Merged

max-sixty merged 2 commits into
mainfrom
hourly/review-23108951848

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

Hourly review of 3 Claude CI runs (23107624441, 23107689220, 23108046257) found two behavioral gaps:

Evidence from session logs

Run 23107624441 (claude-renovate): PR body mentions "Supersedes dependabot PRs #1479 and #1480" but no gh pr close calls appear in the session. Both PRs remain open.

Run 23107689220 (claude-review on #1538): Bot identified macOS test_switch_with_execute_through_wrapper failure, checked 10 main branch CI runs, read test source code, concluded likely flake — but produced zero output on the PR. The skill's "stay silent and skip to step 5" was interpreted as skipping step 5's CI failure comment too.

Run 23108046257 (review-reviewers): Previous hour's meta-review. Found no runs to analyze, correctly reported "all clear". No issues.

Test plan

  • Verify renovate prompt includes the new "Clean up superseded PRs" section
  • Verify review-pr skill clarifies CI failure comments apply to self-authored PRs

🤖 Generated with Claude Code

…or self-authored PRs

Two behavioral gaps found in hourly review of runs 23107624441,
23107689220, 23108046257:

1. claude-renovate: created PR #1538 superseding dependabot PRs #1479
   and #1480 but never closed them. Add explicit instructions to close
   superseded PRs after creating the renovation PR.

2. review-pr on self-authored PRs: the "stay silent" instruction was
   interpreted as skipping CI failure analysis entirely. The bot
   investigated a macOS test failure thoroughly but left no trace on
   PR #1538. Clarify that CI failure comments should still be posted
   even when the initial review verdict is silent.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@worktrunk-bot worktrunk-bot added the claude-behavior Issues with Claude CI bot behavior label Mar 15, 2026

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

macOS CI failed on test_switch_with_execute_through_wrapper — "No such file or directory (os error 2)" when running wt config shell init bash. This is unrelated to the PR changes (markdown and yaml only). The same test passes on the latest main CI run — likely a transient macOS runner issue where bash wasn't on PATH.

A re-run should clear it.

Comment thread .claude/skills/review-pr/SKILL.md Outdated
when there are concerns, or stay silent and skip to step 5.
when there are concerns, or stay silent and skip to step 5. Still monitor CI
and post a COMMENT review if a check fails — "stay silent" only applies to the
initial review verdict, not to CI failure analysis.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

this is an example of the language being unnecessarily complicated; require from scratch to be simple

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Agreed — simplified to a single direct sentence: "Always post CI failure analysis as a COMMENT, even on self-authored PRs."

@max-sixty
max-sixty merged commit fa0b557 into main Mar 15, 2026
24 checks passed
@max-sixty
max-sixty deleted the hourly/review-23108951848 branch March 15, 2026 15:41
max-sixty pushed a commit that referenced this pull request Mar 15, 2026
## Summary

- Add explicit guidance to the review-pr skill's CI monitoring step:
when a CI failure is a transient flake, trigger `gh run rerun --failed`
on **any PR** (bot or human-authored)
- After re-running, report the flake to the tracking issue (e.g., #1528)
with context — PR number, platform, error snippet, run link —
rate-limited to ~1 comment/day per test

## Evidence

**Run 23107689220** (claude-review on PR #1538,
`chore/renovate-20260315`):

The review bot spent 35 tool calls investigating a macOS
`test_switch_with_execute_through_wrapper` flake on bot-authored PR
#1538. It correctly diagnosed the failure as transient (unrelated to the
Rust 1.90→1.94 bump), but then took no action — no re-run, no comment.
Someone else eventually triggered attempt 2 manually, which passed.

This pattern was also seen in run 23109051326 reviewing PR #1539, where
the bot posted a COMMENT about the flake but didn't trigger a re-run.

**Root cause:** Step 5 of review-pr has no guidance for the "flake
detected" case — only "related to PR" (dismiss approval + comment) and
"all passed" (done). The bot falls through to silence.

## Test plan

- [ ] Next claude-review run on a PR with a CI flake should trigger `gh
run rerun --failed`
- [ ] Bot should comment on the relevant flaky test tracking issue
(e.g., #1528) with context
- [ ] Rate limiting: bot should skip the issue comment if it already
posted one today

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: worktrunk-bot <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Issues with Claude CI bot behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants