fix(scheduler): isolate concurrency so merge passes complete instead of being cancelled#343
Conversation
…sses are not cancelled cancel-in-progress was true for the shared github.ref group, so schedule cron + workflow_run + push events cancelled each other. Under the current high PR/event volume the merge pass was cancelled before completing, so no PRs ever merged and review runs were cancelled org-wide. Restrict cancel-in-progress to isolated per-PR events (pull_request_target, workflow_dispatch); schedule/queue passes now serialize instead of cancelling, letting reviews and merges complete. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EywwS2Du8pimW7xqRP3An3
There was a problem hiding this comment.
Pull request overview
OpenCode cannot approve yet because required coverage evidence did not pass.
Review outcome
1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
-
Problem: The required coverage-evidence job result was
cancelled, so OpenCode cannot establish approval sufficiency for this head. -
Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.
-
Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports
successwith required evidence or explicit no-source not-applicable evidence. -
Regression test: Keep the approval branch checking
needs.coverage-evidence.result == successbefore posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present. -
Result: REQUEST_CHANGES
-
Reason: coverage-evidence result was
cancelled, so required test/docstring evidence was not proven for current head512c8ea03f7f83778cae4ec51889c9bd47b11d63. -
Head SHA:
512c8ea03f7f83778cae4ec51889c9bd47b11d63 -
Workflow run: 28859341751
-
Workflow attempt: 1
Coverage evidence
Coverage evidence job did not run or did not publish coverage evidence.
Changed-File Evidence Map
flowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Workflow: pr-review-merge-scheduler.yml"]
S1 --> I1["GitHub Actions review job"]
I1 --> R1["Review risk: Workflow: pr-review-merge-scheduler.yml"]
R1 --> V1["actionlint plus required checks"]
OpenCode Review Overview
Pull request overviewOpenCode cannot approve yet because required coverage evidence did not pass. Review outcome1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
Coverage evidenceCoverage evidence job did not run or did not publish coverage evidence. Changed-File Evidence Mapflowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Workflow: pr-review-merge-scheduler.yml"]
S1 --> I1["GitHub Actions review job"]
I1 --> R1["Review risk: Workflow: pr-review-merge-scheduler.yml"]
R1 --> V1["actionlint plus required checks"]
|
문제
중앙
pr-review-merge-scheduler의concurrency.cancel-in-progress: true가 공유github.ref그룹에 적용돼, schedule(cron)·workflow_run·push 이벤트가 서로를 취소합니다. 현재 org 전체 오픈 PR ~296개가 쏟아내는 push/synchronize 이벤트로 인해 병합/리뷰 패스가 완료 전에 매번 취소됩니다.증거: schedule 트리거 스케줄러 실행이 2026-07-06 16:14 ~ 07-07 05:29 전부
cancelled. 결과적으로 org 전체에서 병합 0건, 다수 PR의 리뷰·Security-Scan 체크가 통째로 취소됨.수정
cancel-in-progress를 격리된 per-PR 이벤트(pull_request_target, workflow_dispatch)에만 적용. schedule/전체-큐 패스는 취소 대신 직렬 큐잉되어 완료됩니다 → 리뷰 판정이 정상적으로 내려지고 승인된 PR이 병합됩니다.per-PR 이벤트는 이미
pr-<number>격리 그룹이라 그 안에서의 취소는 정상 동작이며, 공유 그룹만 취소가 꺼집니다.🤖 Generated with Claude Code