ci(scheduler): reduce organization sweep polling - #1828
Merged
Conversation
Signed-off-by: Seongho Bae <me@seonghobae.me>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughPR 리뷰 병합 스케줄러가 네 개의 필수 워크플로우 완료 이벤트를 수신합니다. 저장소 하트비트와 조직 스윕은 매일 실행됩니다. 회전 인덱스와 스윕 대상 필터도 일일 정책에 맞게 변경되었습니다. Changes스케줄러 일일 복구 전환
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant WorkflowRun
participant Scheduler
participant ScanPrQueue
participant OrgQueueSweep
WorkflowRun->>Scheduler: 필수 워크플로우 완료
Scheduler->>ScanPrQueue: 저장소 큐 실행
Scheduler->>OrgQueueSweep: 매일 03:17 UTC 스윕 실행
OrgQueueSweep->>OrgQueueSweep: 열린 이슈가 있는 저장소만 선택
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
4 tasks
seonghobae
added a commit
that referenced
this pull request
Sep 4, 2026
… schedule (#1832) [QUEUE_SATURATION_CHICKEN_EGG] Blocks the required test suite for every .github PR regardless of diff; bypass-merged per standing chicken-and-egg authorization. Full evidence in PR description: reproduced on fresh main (1 failed, 2804 passed), fixed (2805 passed, 100% coverage, 100% docstrings).
This was referenced Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 사항
pr-review-merge-scheduler.yml의 정상 경로를 native GitHub events로 옮기고, 조직 sweep은 missed-event recovery로 축소했습니다.workflow_run.completed에Security Scan과SAST Semgrep을 추가해 마지막 security gate 완료 시 즉시 해당 PR scheduler를 깨웁니다.org-queue-sweep을 각각 hourly에서 하루 1회로 낮췄습니다. 두 cron은 30분 간격으로 분리했습니다.1에서0으로 바꿨습니다.1은 유지했습니다.open_issues_count == 0인 저장소를 per-repository PR API 호출 전에 제외합니다. 필드가 없으면 기존처럼 포함해 fail-open합니다.repository_dispatchorg sweep과 PR/review/protected-branch push 경로는 유지했습니다.보존한 fallback
org-queue-sweep자체는 삭제하지 않았습니다. stacked PR에는 required workflow completion event가 없고, GitHub event delivery 누락이나 일시적인 API 실패 뒤에는 재평가 이벤트가 남지 않을 수 있기 때문입니다. 수동org_sweepdispatch도 운영 복구 경로로 유지했습니다.효과
검증
pytest -q tests/test_actions_queue_saturation_scheduler_cadence.py tests/test_required_workflow_queue_contract.py— 81 passedactionlint .github/workflows/pr-review-merge-scheduler.yml— passed, no outputgit diff --check origin/main...HEAD— passedExact revision
5ec781dfdfdb86174ef93d1e69982032e7144378a687de7b37c0f9f1683a6fa83468e56e1a3774f7Summary by CodeRabbit
변경 사항
테스트