Skip to content

docs(opencode-review): fix stale comment describing the pre-#1781 design - #1785

Merged
seonghobae merged 2 commits into
mainfrom
claude/opencode-review-cleanup-stale-comment
Sep 3, 2026
Merged

docs(opencode-review): fix stale comment describing the pre-#1781 design#1785
seonghobae merged 2 commits into
mainfrom
claude/opencode-review-cleanup-stale-comment

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Flagged by host 1 (relayed via peer 1): cancel-superseded-opencode-review-runs's own comment still described "exact-head concurrency" protecting the newer run — that mechanism was removed in #1781 (bootstrap group is now cancel-in-progress: false, scoped by repo+PR-number only).

While fixing it, found this job's actual role is more significant than its old "defense in depth" framing suggested: it's a precise, live-head-reverified, API-based sweep that already implements "cancel only outdated runs of the same PR" — it re-checks the live head immediately before selecting cancellation candidates AND immediately before every individual cancel call, so it's immune to #1568's order-blind-preemption bug by construction (it targets by head-SHA mismatch, not "whichever run started most recently"). Now that the bootstrap group no longer auto-cancels anything natively, this job is the primary active-cancellation path, not a backup. Rewrote the comment to say so.

Docs-only change — no behavioral difference.

Test plan

  • coverage run -m pytest tests && coverage report --show-missing — 2681 passed, 1 skipped, 100% coverage.
  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/opencode-review.yml'))" — parses.

🤖 Generated with Claude Code


Devin Review

Summary by CodeRabbit

  • 문서
    • OpenCode 리뷰 워크플로의 주석을 업데이트하여 오래된 실행 취소 방식과 실행 간 경합 방지 동작을 명확히 설명했습니다.
    • 실행 전후 및 폴링 중 최신 PR 상태를 확인하는 보호 절차에 대한 설명을 보강했습니다.

Flagged by host 1 (relayed via peer 1): cancel-superseded-opencode-review-runs'
own comment still described "exact-head concurrency" protecting the newer
run -- that mechanism was removed in #1781 (bootstrap group is now
cancel-in-progress: false, scoped by repo+PR-number only).

While fixing it, found this job's actual role is more significant than its
old "defense in depth" framing suggested: it's a precise, live-head-
reverified, API-based sweep that already implements "cancel only outdated
runs of the same PR" (re-checks the live head immediately before selecting
cancellation candidates AND immediately before every individual cancel
call), so it's immune to #1568's order-blind-preemption bug by construction.
Now that the bootstrap group no longer auto-cancels anything natively, this
job is the primary active-cancellation path, not a backup. Rewrote the
comment to say so.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 67fd34f7-2e80-49cc-9c7d-7122619d349d

📥 Commits

Reviewing files that changed from the base of the PR and between 122d202 and a3c3463.

📒 Files selected for processing (1)
  • .github/workflows/opencode-review.yml

📝 Walkthrough

Walkthrough

cancel-superseded-opencode-review-runs 작업의 주석이 갱신되었습니다. 실행 코드와 공개 선언은 변경되지 않았습니다.

Changes

OpenCode 리뷰 실행 취소 설명

Layer / File(s) Summary
취소 작업 주석 갱신
.github/workflows/opencode-review.yml
동일 PR의 오래된 헤드 실행을 취소하는 기본 메커니즘을 설명합니다. 부트스트랩 동시성 그룹이 실행을 선점하지 않음을 명시합니다. 취소 전 라이브 헤드 재검증과 폴링 단계의 재검증을 설명합니다.

Estimated code review effort: 1 (매우 낮음) | ~2분

Suggested reviewers: claude

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/opencode-review-cleanup-stale-comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@seonghobae
seonghobae merged commit 08d83f7 into main Sep 3, 2026
7 of 20 checks passed
@seonghobae
seonghobae deleted the claude/opencode-review-cleanup-stale-comment branch September 3, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant