Skip to content

ci: stop draft PR jobs from occupying runners - #286

Merged
seonghobae merged 1 commit into
mainfrom
codex/skip-draft-ci
Sep 4, 2026
Merged

ci: stop draft PR jobs from occupying runners#286
seonghobae merged 1 commit into
mainfrom
codex/skip-draft-ci

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add explicit draft/closed lifecycle events to CI and MV3 workflows
  • skip their runner jobs while a pull request is Draft or closed
  • preserve workflow-repository-PR concurrency and PR-only cancellation
  • restart current-head checks when a PR becomes Ready

Verification

  • actionlint .github/workflows/ci.yml .github/workflows/mv3-compatibility.yml
  • git diff --check
  • python3 -m unittest tests.test_repository_contract tests.test_mv3_compatibility_contract (21 passed)

This is an Actions-capacity chicken-and-egg repair: 149 stale or Draft runs were canceled immediately before this PR.

Summary by CodeRabbit

  • Chores

    • 풀 리퀘스트 상태와 초안 여부에 따라 CI 및 브라우저 호환성 검증이 실행되도록 워크플로를 조정했습니다.
    • 닫힌 풀 리퀘스트에서는 불필요한 검증 작업이 실행되지 않도록 제한했습니다.
  • Tests

    • 풀 리퀘스트 이벤트와 초안 상태에 대한 자동화 검증을 강화했습니다.
    • CI가 올바른 풀 리퀘스트 변경사항을 대상으로 실행되는지 확인합니다.

Signed-off-by: Seongho Bae <me@seonghobae.me>
@seonghobae
seonghobae merged commit 87c4daa into main Sep 4, 2026
15 of 19 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T21:57:20.656032Z 60d6ab3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Sep 4, 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: 1afcddc5-1af5-4309-a97e-8dfefd450077

📥 Commits

Reviewing files that changed from the base of the PR and between 4ed08bf and 60d6ab3.

📒 Files selected for processing (4)
  • .github/workflows/ci.yml
  • .github/workflows/mv3-compatibility.yml
  • tests/test_mv3_compatibility_contract.py
  • tests/test_repository_contract.py

📝 Walkthrough

Walkthrough

PR 활동 유형과 초안 상태에 따른 CI 및 MV3 호환성 워크플로 실행 조건을 추가했습니다. 관련 계약 테스트는 새 트리거 목록과 가드를 검증합니다.

Changes

워크플로 실행 조건

Layer / File(s) Summary
CI PR 실행 조건
.github/workflows/ci.yml, tests/test_repository_contract.py
CI가 지정된 PR 활동 유형을 사용합니다. rustcoverage 작업은 push 또는 비초안 PR에서 실행하며, 닫힌 PR에서는 실행하지 않습니다. 계약 테스트가 트리거 목록과 두 개의 초안 가드를 검증합니다.
MV3 호환성 PR 실행 조건
.github/workflows/mv3-compatibility.yml, tests/test_mv3_compatibility_contract.py
MV3 호환성 워크플로가 closed PR 활동을 수신합니다. chrome-for-testing 작업은 닫힌 PR과 초안 PR에서 실행하지 않습니다. 계약 테스트가 활동 유형과 초안 가드를 검증합니다.

Estimated code review effort: 2 (Simple) | ~10 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/skip-draft-ci

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60d6ab3fcd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft, closed]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Document the draft-job policy and update the changelog

This changes when mandatory CI and MV3 compatibility evidence runs, but none of the four changed files documents the new Draft/Ready lifecycle or updates CHANGELOG.md. Without that record, maintainers can mistake Draft-state skipped jobs for verification evidence or miss that ready_for_review is the point at which exact-head checks restart; add the operational documentation and changelog entry required for every change.

AGENTS.md reference: AGENTS.md:L11-L18

Useful? React with 👍 / 👎.

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft, closed]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Cancel MV3 runs outside the path-filtered trigger

When a PR previously triggered this 20-minute lane but its latest diff no longer contains an MV3 path—for example, a follow-up commit reverts those changes—the paths filter prevents the new synchronize, converted_to_draft, or closed workflow run from being created, so the run never reaches this concurrency group and the older MV3 job keeps occupying its runner. GitHub documents that paths controls whether a pull_request workflow runs; handle lifecycle cancellation through an unfiltered trigger so reverted Draft or closed PRs also cancel stale runs.

Useful? React with 👍 / 👎.

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