Skip to content

devops: stop stray PR comments from cancelling an in-flight Gemini review - #139

Merged
saucam merged 1 commit into
mainfrom
devops/gemini-review-cancel-guard
Jul 10, 2026
Merged

devops: stop stray PR comments from cancelling an in-flight Gemini review#139
saucam merged 1 commit into
mainfrom
devops/gemini-review-cancel-guard

Conversation

@saucam

@saucam saucam commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

What

Fixes a footgun in the gemini-review.yml workflow added in #136, observed live on #137.

Symptom: PR #137's review run was cancelled 1m53s in. The canceller was codecov's coverage comment: every issue_comment on a PR enters the per-PR concurrency group before the job-level if filters it out, so cancel-in-progress: true let any comment (codecov, a human reply, even the review bot's own posted review) kill an in-flight review — and the superseding run then skips itself because it isn't a /gemini-review command. Net effect: reviews silently die whenever anything comments while they run.

Fix: make cancel-in-progress conditional — only a pull_request trigger or an explicit /gemini-review command supersedes an in-flight run. Non-command comments queue for a moment behind the running review, then skip on the job if, harmlessly.

github.event.comment.body || '' keeps the expression null-safe on pull_request events (no comment in the payload).

🤖 Generated with Claude Code

…view

Every issue_comment on a PR enters the per-PR concurrency group before
the job-level if filters it out, so unconditional cancel-in-progress let
ANY comment (observed: codecov's coverage comment on #137) kill a
running review, with the superseding run then skipping itself. Make
cancellation conditional: only a pull_request trigger or an explicit
/gemini-review command supersedes; other comments queue and skip.
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.57%. Comparing base (8cf7388) to head (b22ae27).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #139   +/-   ##
=======================================
  Coverage   81.57%   81.57%           
=======================================
  Files          95       95           
  Lines       16406    16406           
=======================================
  Hits        13384    13384           
  Misses       3022     3022           
Flag Coverage Δ
daemon 81.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@saucam

saucam commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini-review

1 similar comment
@saucam

saucam commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini-review

@saucam
saucam merged commit 4d37333 into main Jul 10, 2026
4 of 6 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.

1 participant