diff --git a/.claude/skills/pr/SKILL.md b/.claude/skills/pr/SKILL.md index e8df95bfa..6b9ed7972 100644 --- a/.claude/skills/pr/SKILL.md +++ b/.claude/skills/pr/SKILL.md @@ -15,6 +15,7 @@ description: Create a draft pull request for the Vision-Agents repo using gh CLI ## Creating - Always `gh pr create --draft`. Push the branch first. +- A draft runs no CI, only CodeQL and the labeler. `gh pr ready` starts CI, and every push after it runs CI again, so mark it ready once the branch is done, not before. - Follow `.github/pull_request_template.md`. Read every commit on the branch, do not summarise from the latest commit alone. ## Title diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index ba02f59f2..3c402aab3 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -32,6 +32,9 @@ on: - '!**/*.md' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'acceleration/**' - 'sdks/go/**' @@ -67,6 +70,7 @@ concurrency: jobs: go: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest # Every backend test that needs Redis skips without ROUTER_REDIS_ADDR: the service gives # them one, on a host port the runner picks so a port already held on the runner cannot diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index 7581c427d..93bc14185 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -26,6 +26,9 @@ on: - 'examples/text_agents/mcp_plugins/**' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - '**/*.py' - '**/pyproject.toml' @@ -55,6 +58,7 @@ concurrency: jobs: # No secrets: unit tests reach no provider, and a pull request's code runs here. unit: + if: github.event.pull_request.draft != true uses: ./.github/workflows/run_tests.yml with: marker: 'not integration' diff --git a/.github/workflows/ci-sdks.yml b/.github/workflows/ci-sdks.yml index 28a8100ee..c8ece6f0b 100644 --- a/.github/workflows/ci-sdks.yml +++ b/.github/workflows/ci-sdks.yml @@ -25,6 +25,9 @@ on: - 'examples/voice_agents/swift_assistant/a2ui/instructions.md' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'sdks/go/**' - 'sdks/js/**' @@ -54,6 +57,7 @@ concurrency: jobs: # Every step runs after a failure (`!cancelled()`), so each SDK reports its result. sdks: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest # For the Go SDK, the only Go here: it is installed on its own, with no go.work, by Go as # old as its go directive, so it is checked that way too. GOTOOLCHAIN=local keeps 1.25 diff --git a/.github/workflows/client-sdks.yml b/.github/workflows/client-sdks.yml index 0656a10b5..f803c55ba 100644 --- a/.github/workflows/client-sdks.yml +++ b/.github/workflows/client-sdks.yml @@ -18,6 +18,9 @@ on: - '.github/workflows/client-sdks.yml' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'sdks/kotlin/**' - 'sdks/swift/**' @@ -41,6 +44,7 @@ jobs: # A pull request builds only the SDKs it touches, so a Dart change does not wait on the # macOS runner. A push to main builds them all. changes: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest outputs: kotlin: ${{ steps.filter.outputs.kotlin }} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3a5e6ef26..80730b0fa 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -21,6 +21,9 @@ on: - '.github/workflows/integration.yml' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'acceleration/**' - '!**/*.md' @@ -37,6 +40,7 @@ permissions: jobs: integration: + if: github.event.pull_request.draft != true name: integration (${{ matrix.group }}) runs-on: ubuntu-latest # MEM0_API_KEY lives in this environment, which a pull request's code never enters. diff --git a/.github/workflows/python-versions.yml b/.github/workflows/python-versions.yml index 9fd5b0316..26e2d129b 100644 --- a/.github/workflows/python-versions.yml +++ b/.github/workflows/python-versions.yml @@ -9,6 +9,9 @@ on: - '.github/workflows/python-versions.yml' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - '**/pyproject.toml' - 'uv.lock' @@ -29,6 +32,7 @@ jobs: # into its own log so their output does not interleave. Every version is checked even after # one fails, and the job fails at the end, naming the versions that did not resolve. resolve: + if: github.event.pull_request.draft != true name: Resolve on Python 3.10–3.14 runs-on: ubuntu-latest env: