Skip to content

The agent that grows with you

ci(release): pass the commit under test through every stable lane

ethernet66facf4a5721
diff --git a/.github/workflows/blob-size-check.yml b/.github/workflows/blob-size-check.yml
index db53dc165f5..78ebf56c876 100644
--- a/.github/workflows/blob-size-check.yml
+++ b/.github/workflows/blob-size-check.yml
@@ -14,6 +14,11 @@ name: Blob Size Check
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -26,6 +31,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 2 # the merge commit and its first parent (the base branch tip)
- name: Judge files added or modified against the base branch tip
diff --git a/.github/workflows/bootstrap-installer.yml b/.github/workflows/bootstrap-installer.yml
index 127f6c7a53b..42cd3a26bd3 100644
--- a/.github/workflows/bootstrap-installer.yml
+++ b/.github/workflows/bootstrap-installer.yml
@@ -10,6 +10,11 @@ name: Bootstrap installer
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -29,6 +34,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
# The mirror step pushes HEAD to a fresh bare repo — a shallow
# checkout can't (git: "shallow update not allowed").
fetch-depth: 0
@@ -132,6 +138,8 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
# Windows PowerShell 5.1 is what ships with Windows and what `irm | iex`
# lands in for most users — the protocol surface must parse there.
diff --git a/.github/workflows/case-collision-check.yml b/.github/workflows/case-collision-check.yml
index b4dfe03f807..b82579d0a0a 100644
--- a/.github/workflows/case-collision-check.yml
+++ b/.github/workflows/case-collision-check.yml
@@ -18,6 +18,11 @@ name: Case Collision Check
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -28,6 +33,8 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Run case-collision checker
run: python3 scripts/check-case-collisions.py
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 834fd9ce673..bebfc22ecaf 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -29,6 +29,10 @@ on:
default: ''
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
release:
description: 'Stable-release candidate run: force every applicability lane and make the aggregate gate strict (skipped required lanes fail).'
required: false
@@ -89,6 +93,8 @@ jobs:
event_name: ${{ github.event_name }}
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Detect affected areas
id: classify
uses: ./.github/actions/detect-changes
@@ -138,6 +144,7 @@ jobs:
if: needs.detect.outputs.python == 'true' || needs.detect.outputs.e2e == 'true' || needs.detect.outputs.e2e_upgrade == 'true'
uses: ./.github/workflows/tests.yml
with:
+ commit: ${{ inputs.commit }}
e2e: ${{ needs.detect.outputs.e2e == 'true' }}
e2e_upgrade: ${{ needs.detect.outputs.e2e_upgrade == 'true' }}
strict_acceptance: ${{ inputs.strict_acceptance || '' }}
@@ -154,6 +161,7 @@ jobs:
if: needs.detect.outputs.python == 'true' || needs.detect.outputs.desktop_updater == 'true' || needs.detect.outputs.e2e == 'true' || needs.detect.outputs.e2e_upgrade == 'true'
uses: ./.github/workflows/tests-os.yml
with:
+ commit: ${{ inputs.commit }}
# The Windows lane spawns the real desktop-update hand-off script
# (tests/test_desktop_update_windows_*.py) only when that surface
# changed; unit-level platforms("windows") tests always run.
@@ -169,6 +177,7 @@ jobs:
if: needs.detect.outputs.python == 'true' || needs.detect.outputs.frontend == 'true'
uses: ./.github/workflows/lint.yml
with:
+ commit: ${{ inputs.commit }}
event_name: ${{ needs.detect.outputs.event_name }}
python: ${{ needs.detect.outputs.python == 'true' }}
@@ -177,6 +186,8 @@ jobs:
needs: detect
if: needs.detect.outputs.frontend == 'true'
uses: ./.github/workflows/js-tests.yml
+ with:
+ commit: ${{ inputs.commit }}
rust-tests:
name: Rust tests
@@ -185,6 +196,8 @@ jobs:
# changes used to run the TypeScript matrix and nothing that compiles them.
if: needs.detect.outputs.rust == 'true'
uses: ./.github/workflows/rust-tests.yml
+ with:
+ commit: ${{ inputs.commit }}
remote-backends:
name: Remote terminal backends
@@ -195,6 +208,8 @@ jobs:
# the other lanes and is required whenever detect selects it.
if: needs.detect.outputs.remote_backends == 'true'
uses: ./.github/workflows/remote-backends.yml
+ with:
+ commit: ${{ inputs.commit }}
bootstrap-installer:
name: Bootstrap installer
@@ -204,6 +219,8 @@ jobs:
# are platforms("windows") pytest files and run in tests-os.
if: needs.detect.outputs.bootstrap == 'true'
uses: ./.github/workflows/bootstrap-installer.yml
+ with:
+ commit: ${{ inputs.commit }}
e2e-desktop:
name: Desktop E2E
@@ -222,6 +239,8 @@ jobs:
# if: ${{ needs.detect.outputs.python_prod == 'true' || needs.detect.outputs.frontend == 'true' }}
if: false
uses: ./.github/workflows/e2e-desktop.yml
+ with:
+ commit: ${{ inputs.commit }}
e2e-desktop-core:
name: Desktop core E2E
@@ -230,6 +249,8 @@ jobs:
# integrity, boot/respawn/orphans, clarify+approval. Required; retries 0.
if: needs.detect.outputs.e2e_desktop_core == 'true'
uses: ./.github/workflows/e2e-desktop-core.yml
+ with:
+ commit: ${{ inputs.commit }}
e2e-desktop-update:
name: Desktop update E2E
@@ -243,24 +264,32 @@ jobs:
# counts as success — when the PR does not touch that path.
if: needs.detect.outputs.e2e_desktop_update == 'true'
uses: ./.github/workflows/e2e-desktop-update.yml
+ with:
+ commit: ${{ inputs.commit }}
docs-site:
name: Docs Site
needs: detect
if: needs.detect.outputs.site == 'true'
uses: ./.github/workflows/docs-site-checks.yml
+ with:
+ commit: ${{ inputs.commit }}
history-check:
name: Deny unrelated histories
needs: detect
if: needs.detect.outputs.event_name == 'pull_request'
uses: ./.github/workflows/history-check.yml
+ with:
+ commit: ${{ inputs.commit }}
contributor-check:
name: Check contributors
needs: detect
if: needs.detect.outputs.python == 'true'
uses: ./.github/workflows/contributor-check.yml
+ with:
+ commit: ${{ inputs.commit }}
uv-lockfile:
name: Check uv.lock
@@ -272,42 +301,58 @@ jobs:
# `.github/` change still forces it on via the classifier's fail-open.
if: needs.detect.outputs.uv_lock == 'true'
uses: ./.github/workflows/uv-lockfile-check.yml
+ with:
+ commit: ${{ inputs.commit }}
infographic-check:
name: Check no committed infographics
needs: detect
uses: ./.github/workflows/infographic-check.yml
+ with:
+ commit: ${{ inputs.commit }}
profile-artifact-check:
name: Profile artifact check
needs: detect
uses: ./.github/workflows/profile-artifact-check.yml
+ with:
+ commit: ${{ inputs.commit }}
icons-freshness-check:
name: Icon assets freshness
needs: detect
uses: ./.github/workflows/icons-freshness-check.yml
+ with:
+ commit: ${{ inputs.commit }}
case-collision-check:
name: Check no case-colliding filenames
needs: detect
uses: ./.github/workflows/case-collision-check.yml
+ with:
+ commit: ${{ inputs.commit }}
blob-size-check:
name: Check no large binaries
needs: detect
uses: ./.github/workflows/blob-size-check.yml
+ with:
+ commit: ${{ inputs.commit }}
lazy-deps-guard:
name: No production imports of the tools.lazy_deps stub
needs: detect
uses: ./.github/workflows/lazy-deps-guard.yml
+ with:
+ commit: ${{ inputs.commit }}
lockfile-diff:
name: package-lock.json diff
needs: detect
if: needs.detect.outputs.event_name == 'pull_request' && needs.detect.outputs.npm_lock == 'true'
uses: ./.github/workflows/lockfile-diff.yml
+ with:
+ commit: ${{ inputs.commit }}
# Advisory summary of the committed prompt-surface snapshot's diff. A stdlib-only job over two
# committed directories: cheap enough to run on every Python PR, and silent when nothing moved.
@@ -316,12 +361,16 @@ jobs:
needs: detect
if: needs.detect.outputs.event_name == 'pull_request' && needs.detect.outputs.python == 'true'
uses: ./.github/workflows/prompt-surface-diff.yml
+ with:
+ commit: ${{ inputs.commit }}
docker-lint:
name: Lint Docker scripts
needs: detect
if: needs.detect.outputs.docker_meta == 'true'
uses: ./.github/workflows/docker-lint.yml
+ with:
+ commit: ${{ inputs.commit }}
supply-chain:
name: Supply-chain scan
@@ -329,6 +378,7 @@ jobs:
if: needs.detect.outputs.event_name == 'pull_request' && (needs.detect.outputs.scan == 'true' || needs.detect.outputs.deps == 'true')
uses: ./.github/workflows/supply-chain-audit.yml
with:
+ commit: ${{ inputs.commit }}
event_name: ${{ needs.detect.outputs.event_name }}
scan: ${{ needs.detect.outputs.scan == 'true' }}
deps: ${{ needs.detect.outputs.deps == 'true' }}
@@ -402,7 +452,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
- name: Evaluate job results
id: evaluate
# Shared with the stable orchestrator (scripts/ci/required_results.py
@@ -435,6 +485,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Restore baseline cache (PR only)
if: github.event_name == 'pull_request'
diff --git a/.github/workflows/contributor-check.yml b/.github/workflows/contributor-check.yml
index c6ccaf3ac78..74b2dd36936 100644
--- a/.github/workflows/contributor-check.yml
+++ b/.github/workflows/contributor-check.yml
@@ -2,6 +2,11 @@ name: Contributor Attribution Check
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
outputs:
review_status:
description: "JSON array of review status objects"
@@ -19,6 +24,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0 # Full history needed for git log
- name: Check for unmapped contributor emails
diff --git a/.github/workflows/docker-lint.yml b/.github/workflows/docker-lint.yml
index 8f3fca5797a..a66a023901b 100644
--- a/.github/workflows/docker-lint.yml
+++ b/.github/workflows/docker-lint.yml
@@ -12,6 +12,11 @@ name: Docker / shell lint
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -28,6 +33,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Lint Dockerfile (hadolint)
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 45f4af3711a..b6292bb77ba 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -19,6 +19,10 @@ on:
branches: [main]
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
release-phase:
description: "Stable-release phase: 'test' or 'publish'. Empty keeps the standalone triggers."
required: false
@@ -100,6 +104,8 @@ jobs:
build: ${{ steps.gate.outputs.build }}
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Detect affected areas
id: classify
@@ -163,9 +169,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- # Release calls are dispatched on the stable tag: pin to the exact
- # candidate commit, never a mutable branch ref.
- ref: ${{ needs.mode.outputs.release == 'true' && github.sha || '' }}
+ # Stable dispatches from the default branch and names the claim commit.
+ # Pin it, never a mutable branch ref.
+ ref: ${{ inputs.commit || (needs.mode.outputs.release == 'true' && github.sha || '') }}
# Dev identity is the distance from the highest reachable final
# release, so the stamp needs both its ancestry and release tags.
fetch-depth: 0
@@ -352,6 +358,7 @@ jobs:
- name: Checkout trusted source
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0
# Same python3 steps as the build job; pin it the same way.
@@ -539,7 +546,7 @@ jobs:
- name: Checkout release code (helper scripts only, no build)
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
- name: Download tested image archive from the test phase (same run)
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -630,7 +637,7 @@ jobs:
- name: Checkout release code (helper scripts only)
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
- name: Download per-arch digests
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
diff --git a/.github/workflows/docs-site-checks.yml b/.github/workflows/docs-site-checks.yml
index d502e2e3281..248c0e408ae 100644
--- a/.github/workflows/docs-site-checks.yml
+++ b/.github/workflows/docs-site-checks.yml
@@ -2,6 +2,11 @@ name: Docs Site Checks
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -12,6 +17,8 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Set up the locked site toolchain
uses: ./.github/actions/setup-pm
diff --git a/.github/workflows/e2e-desktop-core.yml b/.github/workflows/e2e-desktop-core.yml
index 16b9b329c21..bbb69d986a2 100644
--- a/.github/workflows/e2e-desktop-core.yml
+++ b/.github/workflows/e2e-desktop-core.yml
@@ -13,6 +13,11 @@ name: E2E Desktop core
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -28,6 +33,8 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Install system dependencies for Electron
run: |
diff --git a/.github/workflows/e2e-desktop-update.yml b/.github/workflows/e2e-desktop-update.yml
index a84971f3349..2112aaea5ab 100644
--- a/.github/workflows/e2e-desktop-update.yml
+++ b/.github/workflows/e2e-desktop-update.yml
@@ -15,6 +15,11 @@ name: E2E Desktop update
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -47,6 +52,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
# The seeded install clones this checkout through a local bare origin.
fetch-depth: 0
diff --git a/.github/workflows/e2e-desktop.yml b/.github/workflows/e2e-desktop.yml
index 8583fe7384b..7b25e62bd50 100644
--- a/.github/workflows/e2e-desktop.yml
+++ b/.github/workflows/e2e-desktop.yml
@@ -2,6 +2,11 @@ name: E2E Desktop
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
outputs:
review_status:
description: Screenshot and visual-diff status for the CI review comment.
@@ -26,6 +31,8 @@ jobs:
review_status: ${{ steps.review-status.outputs.review_status }}
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
# ── System deps for Electron on headless Ubuntu ───────────────────
# Electron needs GTK, NSS,atk, etc. even under xvfb. Playwright's
diff --git a/.github/workflows/history-check.yml b/.github/workflows/history-check.yml
index 8ba149e60e8..6c3e9b1e844 100644
--- a/.github/workflows/history-check.yml
+++ b/.github/workflows/history-check.yml
@@ -15,6 +15,11 @@ name: History Check
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
outputs:
review_status:
description: "JSON array of review_status objects for the synthesizer."
@@ -32,6 +37,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0 # full history both sides for merge-base
- id: merge-base-check
diff --git a/.github/workflows/icons-freshness-check.yml b/.github/workflows/icons-freshness-check.yml
index 1f451b01385..207cd64240d 100644
--- a/.github/workflows/icons-freshness-check.yml
+++ b/.github/workflows/icons-freshness-check.yml
@@ -14,6 +14,11 @@ name: Icon Assets Freshness
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -25,6 +30,8 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
# The generator runs on a Hermes runtime interpreter; [] exports one as HERMES_PYTHON.
- uses: ./.github/actions/setup-pm
diff --git a/.github/workflows/infographic-check.yml b/.github/workflows/infographic-check.yml
index eb01e7be152..d336a93c37f 100644
--- a/.github/workflows/infographic-check.yml
+++ b/.github/workflows/infographic-check.yml
@@ -18,6 +18,11 @@ name: Infographic Check
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
outputs:
review_status:
description: "JSON array of review_status objects for the synthesizer."
@@ -34,6 +39,8 @@ jobs:
review_status: ${{ steps.infographic-check.outputs.review_status }}
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- id: infographic-check
name: Reject committed PR-infographic images
diff --git a/.github/workflows/install-e2e-macos-run.yml b/.github/workflows/install-e2e-macos-run.yml
index 4a558672c8d..e82916f90c8 100644
--- a/.github/workflows/install-e2e-macos-run.yml
+++ b/.github/workflows/install-e2e-macos-run.yml
@@ -20,6 +20,10 @@ name: install-e2e macos leg
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
install-method:
description: 'How OLD gets installed. Supported: installer-script, installer-script+desktop (curl | bash one-liner, optionally with --include-desktop) and desktop-installer@latest (the published Hermes-Setup.dmg).'
required: true
@@ -86,6 +90,7 @@ jobs:
|| (contains(fromJSON('["installer-script+desktop", "hermes-desktop-app-update"]'), inputs.update-method) && inputs.tag-has-desktop))
uses: ./.github/workflows/install-e2e-run.yml
with:
+ commit: ${{ inputs.commit }}
install-method: ${{ inputs.install-method }}
update-method: ${{ inputs.update-method }}
install-ref: ${{ inputs.install-ref }}
@@ -111,7 +116,7 @@ jobs:
# installer/updater talk to.
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
fetch-depth: 0
- name: Set up driver tools only
@@ -210,7 +215,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
- name: Set up driver tools only
uses: ./.github/actions/setup-pm
diff --git a/.github/workflows/install-e2e-run.yml b/.github/workflows/install-e2e-run.yml
index 97a27579e1f..762934ac499 100644
--- a/.github/workflows/install-e2e-run.yml
+++ b/.github/workflows/install-e2e-run.yml
@@ -37,6 +37,10 @@ name: Install & Update E2E (reusable)
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
install-method:
description: 'How the starting version gets installed. Supported: installer-script (the real curl | install.sh one-liner) and installer-script+desktop (the same one-liner with --include-desktop).'
required: true
@@ -99,7 +103,7 @@ jobs:
# in that clone. A shallow clone cannot serve either need.
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
fetch-depth: 0
# The checkout owns the chat driver, not OLD's installed Node/runtime.
diff --git a/.github/workflows/install-e2e-windows-run.yml b/.github/workflows/install-e2e-windows-run.yml
index 64dafff079a..5d9c9d09b80 100644
--- a/.github/workflows/install-e2e-windows-run.yml
+++ b/.github/workflows/install-e2e-windows-run.yml
@@ -45,6 +45,10 @@ name: install-e2e windows leg
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
install-method:
description: 'How OLD gets installed. Supported: desktop-installer@latest (website exe, AHK-clicked), installer-script (irm | iex install.ps1) and installer-script+desktop (the same with -IncludeDesktop). Declared-but-TODO methods skip.'
required: true
@@ -109,7 +113,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
- name: Set up driver tools only
uses: ./.github/actions/setup-pm
with:
@@ -191,7 +195,7 @@ jobs:
# in that clone. A shallow checkout cannot serve either need.
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
fetch-depth: 0
# Old installers refresh PATH after winget installs ripgrep, dropping the
diff --git a/.github/workflows/install-e2e.yml b/.github/workflows/install-e2e.yml
index 5320608f995..ffbf17c2c1f 100644
--- a/.github/workflows/install-e2e.yml
+++ b/.github/workflows/install-e2e.yml
@@ -73,6 +73,10 @@ on:
# manual dispatch — a source (non-bundle) release run passes route=all
# with empty manifests and gets the source install/update matrix only.
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
release:
description: 'Stable-release candidate run (informational; jobs behave as route=all with empty manifests).'
required: false
@@ -133,6 +137,7 @@ jobs:
# has none.
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
filter: blob:none
fetch-tags: true
sparse-checkout: |
@@ -198,6 +203,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
sparse-checkout: scripts/sandbox/generate-e2e-matrix.mjs
sparse-checkout-cone-mode: false
- id: gen
@@ -231,6 +237,8 @@ jobs:
macos-arch: ${{ steps.inputs.outputs.macos-arch }}
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- id: inputs
env:
BUNDLE_WINDOWS_MANIFEST: ${{ inputs.windows-bundle-manifest }}
@@ -249,6 +257,7 @@ jobs:
matrix: ${{ fromJSON(needs.bundle-inputs.outputs.windows) }}
uses: ./.github/workflows/install-e2e-windows-run.yml
with:
+ commit: ${{ inputs.commit }}
install-method: packaged-app
update-method: open-app-update
install-ref: ${{ matrix.install_ref }}
@@ -265,6 +274,7 @@ jobs:
matrix: ${{ fromJSON(needs.bundle-inputs.outputs.macos) }}
uses: ./.github/workflows/install-e2e-macos-run.yml
with:
+ commit: ${{ inputs.commit }}
install-method: packaged-app
update-method: open-app-update
install-ref: ${{ matrix.install_ref }}
@@ -285,6 +295,7 @@ jobs:
matrix: ${{ fromJSON(needs.generate-matrix.outputs.linux) }}
uses: ./.github/workflows/install-e2e-run.yml
with:
+ commit: ${{ inputs.commit }}
install-method: ${{ matrix.install_method }}
update-method: ${{ matrix.update_method }}
install-ref: ${{ matrix.install_ref }}
@@ -301,6 +312,7 @@ jobs:
matrix: ${{ fromJSON(needs.generate-matrix.outputs.windows) }}
uses: ./.github/workflows/install-e2e-windows-run.yml
with:
+ commit: ${{ inputs.commit }}
install-method: ${{ matrix.install_method }}
update-method: ${{ matrix.update_method }}
install-ref: ${{ matrix.install_ref }}
@@ -319,6 +331,7 @@ jobs:
# and the published-dmg GUI driver; the run workflow routes.
uses: ./.github/workflows/install-e2e-macos-run.yml
with:
+ commit: ${{ inputs.commit }}
install-method: ${{ matrix.install_method }}
update-method: ${{ matrix.update_method }}
install-ref: ${{ matrix.install_ref }}
@@ -340,6 +353,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
sparse-checkout: tests/install/e2e-assets/playback.html
sparse-checkout-cone-mode: false
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -409,6 +423,7 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
sparse-checkout: |
scripts/sandbox/generate-e2e-matrix.mjs
tests/install/e2e-assets/known-failures.json
diff --git a/.github/workflows/js-tests.yml b/.github/workflows/js-tests.yml
index c8da4799ae1..ccd234cb8b3 100644
--- a/.github/workflows/js-tests.yml
+++ b/.github/workflows/js-tests.yml
@@ -3,6 +3,11 @@ name: JS Tests
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
jobs:
check:
@@ -18,6 +23,8 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Set up the locked JS build toolchain
id: node
uses: ./.github/actions/setup-pm
diff --git a/.github/workflows/lazy-deps-guard.yml b/.github/workflows/lazy-deps-guard.yml
index a78fae82c96..8a451742fa6 100644
--- a/.github/workflows/lazy-deps-guard.yml
+++ b/.github/workflows/lazy-deps-guard.yml
@@ -21,6 +21,11 @@ name: Lazy-deps import guard
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -32,6 +37,8 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Check tools.lazy_deps imports in tracked production code
run: python3 scripts/ci/check_lazy_deps_imports.py
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 9b399ebc0a9..52c4c2a3497 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -15,6 +15,10 @@ name: Lint (ruff + ty)
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
event_name:
description: The event name from the calling orchestrator (pull_request or push).
type: string
@@ -41,6 +45,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0 # need full history for merge-base + worktree
- uses: ./.github/actions/setup-pm
@@ -146,6 +151,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- uses: ./.github/actions/setup-pm
with:
@@ -183,6 +190,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 2 # the merge commit and its first parent (the base branch tip)
- uses: ./.github/actions/setup-pm
@@ -217,6 +225,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- uses: ./.github/actions/setup-pm
with:
diff --git a/.github/workflows/lockfile-diff.yml b/.github/workflows/lockfile-diff.yml
index f7ccb41dd40..b27d78dda9f 100644
--- a/.github/workflows/lockfile-diff.yml
+++ b/.github/workflows/lockfile-diff.yml
@@ -16,6 +16,11 @@ name: Lockfile diff
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
outputs:
changed:
description: Whether package-lock.json changed relative to the target branch.
@@ -43,6 +48,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0 # need history for the merge base
- name: Generate semantic lockfile diff
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index 8a2a65fad67..d04e17431e4 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -16,6 +16,10 @@ on:
branches: [main]
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
release:
description: 'Stable-release candidate run: force the flake-check lane regardless of the classifier.'
required: false
@@ -56,9 +60,8 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- # github.sha is the exact candidate commit on a stable tag-dispatched
- # caller and the head SHA on every other event.
- ref: ${{ github.sha }}
+ # A stable run passes the claim commit. Every other event tests its own head SHA.
+ ref: ${{ inputs.commit || github.sha }}
- name: Detect affected areas
id: classify
@@ -82,9 +85,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- # github.sha is the exact candidate commit on a stable tag-dispatched
- # caller and the head SHA on every other event.
- ref: ${{ github.sha }}
+ # A stable run passes the claim commit. Every other event tests its own head SHA.
+ ref: ${{ inputs.commit || github.sha }}
- name: Install Nix
uses: cachix/install-nix-action@630ae543ea3a38a9a4166f03376c02c50f408342 # v31.11.0
diff --git a/.github/workflows/profile-artifact-check.yml b/.github/workflows/profile-artifact-check.yml
index e444b18e31e..eceb1944622 100644
--- a/.github/workflows/profile-artifact-check.yml
+++ b/.github/workflows/profile-artifact-check.yml
@@ -6,6 +6,11 @@ name: Profile Artifact Boundary
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -17,5 +22,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Reject profile exports in the checkout
run: python3 scripts/ci/check_profile_archive_boundary.py
diff --git a/.github/workflows/prompt-surface-diff.yml b/.github/workflows/prompt-surface-diff.yml
index 6f80bdf25ba..bdda7c317d0 100644
--- a/.github/workflows/prompt-surface-diff.yml
+++ b/.github/workflows/prompt-surface-diff.yml
@@ -16,6 +16,11 @@ name: Prompt surface diff
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
outputs:
changed:
description: Whether the prompt-surface snapshot changed relative to the target branch.
@@ -43,6 +48,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0 # need history for the merge base
persist-credentials: false
diff --git a/.github/workflows/remote-backends.yml b/.github/workflows/remote-backends.yml
index d7ad38b8a83..89164e1d3d5 100644
--- a/.github/workflows/remote-backends.yml
+++ b/.github/workflows/remote-backends.yml
@@ -15,6 +15,11 @@ name: Remote terminal backends
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -36,6 +41,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Pull the test image
uses: ./.github/actions/retry
diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml
index 0c4c4e79fcc..63239ae734b 100644
--- a/.github/workflows/rust-tests.yml
+++ b/.github/workflows/rust-tests.yml
@@ -16,6 +16,11 @@ name: Rust tests
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
permissions:
contents: read
@@ -37,6 +42,8 @@ jobs:
working-directory: apps/bootstrap-installer/src-tauri
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
# Tauri links against the system webkit2gtk on Linux, so the crate does
# not compile without these even for `cargo test --lib`.
diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml
index 7cdb7447be0..06b48c63f39 100644
--- a/.github/workflows/stable-release.yml
+++ b/.github/workflows/stable-release.yml
@@ -1,12 +1,14 @@
name: Stable Release
run-name: Stable release ${{ inputs.tag }}
-# Dispatch on the tag so reusable workflows and github.sha identify the same tree.
+# Dispatch on the default branch, like canary: workflows and scripts come from main and
+# Actions caches live in main's scope. The claim tag is an input. Admission resolves it to
+# a commit and every lane that tests or builds the payload is passed that commit.
on:
workflow_dispatch:
inputs:
tag:
- description: Exact annotated claim tag, matching the selected workflow ref
+ description: Exact annotated claim tag. Admission resolves it to the commit under test
required: true
type: string
baseline-manifest:
@@ -76,6 +78,7 @@ jobs:
security-events: write
uses: ./.github/workflows/ci.yaml
with:
+ commit: ${{ needs.admit.outputs.commit }}
release: true
docker:
@@ -89,6 +92,7 @@ jobs:
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
+ commit: ${{ needs.admit.outputs.commit }}
release-phase: test
skip-tests: ${{ needs.admit.outputs.skip-tests == 'true' }}
tag: ${{ needs.admit.outputs.claim-tag }}
@@ -100,6 +104,7 @@ jobs:
if: needs.admit.outputs.skip-tests != 'true'
uses: ./.github/workflows/nix.yml
with:
+ commit: ${{ needs.admit.outputs.commit }}
release: true
version: ${{ needs.admit.outputs.version }}
@@ -112,7 +117,7 @@ jobs:
uses: ./.github/workflows/pm-bundle.yml
with:
release: true
- ref: ${{ github.sha }}
+ ref: ${{ needs.admit.outputs.commit }}
termux-checks:
needs: admit
@@ -123,6 +128,7 @@ jobs:
uses: ./.github/workflows/termux-verify.yml
secrets: inherit
with:
+ commit: ${{ needs.admit.outputs.commit }}
release: true
windows-live:
@@ -130,6 +136,7 @@ jobs:
if: needs.admit.outputs.skip-tests != 'true'
uses: ./.github/workflows/windows-venv-e2e.yml
with:
+ commit: ${{ needs.admit.outputs.commit }}
release: true
install-e2e:
@@ -141,6 +148,7 @@ jobs:
actions: read
uses: ./.github/workflows/install-e2e.yml
with:
+ commit: ${{ needs.admit.outputs.commit }}
release: true
route: all
tag-count: '3'
@@ -423,7 +431,7 @@ jobs:
windows-packaged:
name: Windows signed-package acceptance
- needs: transitions-win32
+ needs: [admit, transitions-win32]
# Without a published stable baseline there is no OLD package to upgrade from.
if: needs.transitions-win32.outputs.baseline != 'none'
strategy:
@@ -431,6 +439,7 @@ jobs:
matrix: ${{ fromJSON(needs.transitions-win32.outputs.windows) }}
uses: ./.github/workflows/install-e2e-windows-run.yml
with:
+ commit: ${{ needs.admit.outputs.commit }}
install-method: packaged-app
update-method: open-app-update
install-ref: ${{ matrix.old }}
@@ -441,7 +450,7 @@ jobs:
macos-packaged-arm64:
name: macOS arm64 signed-package acceptance
- needs: transitions-darwin-arm64
+ needs: [admit, transitions-darwin-arm64]
# Without a published stable baseline there is no OLD package to upgrade from.
if: needs.transitions-darwin-arm64.outputs.baseline != 'none'
strategy:
@@ -449,6 +458,7 @@ jobs:
matrix: ${{ fromJSON(needs.transitions-darwin-arm64.outputs.macos) }}
uses: ./.github/workflows/install-e2e-macos-run.yml
with:
+ commit: ${{ needs.admit.outputs.commit }}
install-method: packaged-app
update-method: open-app-update
install-ref: ${{ matrix.old }}
@@ -459,7 +469,7 @@ jobs:
macos-packaged-x64:
name: macOS x64 signed-package acceptance
- needs: transitions-darwin-x64
+ needs: [admit, transitions-darwin-x64]
# Without a published stable baseline there is no OLD package to upgrade from.
if: needs.transitions-darwin-x64.outputs.baseline != 'none'
strategy:
@@ -467,6 +477,7 @@ jobs:
matrix: ${{ fromJSON(needs.transitions-darwin-x64.outputs.macos) }}
uses: ./.github/workflows/install-e2e-macos-run.yml
with:
+ commit: ${{ needs.admit.outputs.commit }}
install-method: packaged-app
update-method: open-app-update
install-ref: ${{ matrix.old }}
@@ -542,6 +553,7 @@ jobs:
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
+ commit: ${{ needs.admit.outputs.commit }}
release-phase: publish
tag: ${{ needs.admit.outputs.claim-tag }}
version: ${{ needs.admit.outputs.version }}
diff --git a/.github/workflows/supply-chain-audit.yml b/.github/workflows/supply-chain-audit.yml
index 8f4cd851267..734b8a3434b 100644
--- a/.github/workflows/supply-chain-audit.yml
+++ b/.github/workflows/supply-chain-audit.yml
@@ -26,6 +26,10 @@ name: Supply Chain Audit
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
event_name:
description: The event name from the calling orchestrator.
type: string
@@ -59,6 +63,7 @@ jobs:
- name: Checkout
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0
- name: Scan diff for critical patterns
@@ -162,6 +167,7 @@ jobs:
- name: Checkout
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
fetch-depth: 0
- name: Check for unbounded PyPI deps
diff --git a/.github/workflows/termux-verify.yml b/.github/workflows/termux-verify.yml
index db33deda724..2ae94ebe431 100644
--- a/.github/workflows/termux-verify.yml
+++ b/.github/workflows/termux-verify.yml
@@ -19,6 +19,10 @@ on:
workflow_dispatch:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
release:
description: 'Stable-release candidate run (ignored by the jobs; uniform callable surface).'
required: false
@@ -43,9 +47,8 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- # github.sha is the exact candidate commit on a stable tag-dispatched
- # caller and the head SHA on every other event.
- ref: ${{ github.sha }}
+ # A stable run passes the claim commit. Every other event tests its own head SHA.
+ ref: ${{ inputs.commit || github.sha }}
persist-credentials: false
- name: Install the native linker test prerequisite
run: |
@@ -74,9 +77,8 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- # github.sha is the exact candidate commit on a stable tag-dispatched
- # caller and the head SHA on every other event.
- ref: ${{ github.sha }}
+ # A stable run passes the claim commit. Every other event tests its own head SHA.
+ ref: ${{ inputs.commit || github.sha }}
persist-credentials: false
- uses: ./.github/actions/setup-pm
with:
@@ -129,9 +131,8 @@ jobs:
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
- # github.sha is the exact candidate commit on a stable tag-dispatched
- # caller and the head SHA on every other event.
- ref: ${{ github.sha }}
+ # A stable run passes the claim commit. Every other event tests its own head SHA.
+ ref: ${{ inputs.commit || github.sha }}
persist-credentials: false
- uses: ./.github/actions/setup-pm
with:
diff --git a/.github/workflows/tests-os.yml b/.github/workflows/tests-os.yml
index d38a4a675f8..0a39bbe7885 100644
--- a/.github/workflows/tests-os.yml
+++ b/.github/workflows/tests-os.yml
@@ -29,6 +29,10 @@ name: OS-specific tests
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
desktop_updater:
description: >-
Run the Windows desktop-update hand-off integration tests
@@ -98,6 +102,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
# No arm64 wheels for some of the extras below: PM builds them from sdist.
- name: Set up native ARM64 build dependencies
@@ -211,6 +217,7 @@ jobs:
if: inputs.e2e_upgrade
uses: ./.github/workflows/windows-install-update-e2e.yml
with:
+ commit: ${{ inputs.commit }}
strict_acceptance: ${{ inputs.strict_acceptance }}
e2e-windows:
@@ -236,6 +243,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Set up locked Python and test dependencies
uses: ./.github/actions/setup-pm
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index cf70c79a369..3a51c0fb6e8 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -3,6 +3,10 @@ name: Tests
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
# The E2E jobs below are slow lanes (scripts/ci/classify_changes.py).
# ci.yaml passes the classifier's answer; a caller that passes nothing
# gets every job.
@@ -48,6 +52,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Install ripgrep (prebuilt binary)
run: |
@@ -141,6 +147,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- name: Set up locked Python, Node and test dependencies
# toolchain: all puts PM's locked Node in the runner's PM store, not
@@ -239,6 +247,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
# The clean-worktree step below loads its action from the checkout.
sparse-checkout: |
tests/e2e/core/upgrade
@@ -284,6 +293,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
# N-1 = `git describe --tags --abbrev=0 HEAD~1`.
fetch-depth: 0
fetch-tags: true
diff --git a/.github/workflows/uv-lockfile-check.yml b/.github/workflows/uv-lockfile-check.yml
index 8daaab9c007..7cdd791c962 100644
--- a/.github/workflows/uv-lockfile-check.yml
+++ b/.github/workflows/uv-lockfile-check.yml
@@ -45,6 +45,11 @@ name: uv.lock check
on:
workflow_call:
+ inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
outputs:
review_status:
description: "JSON review status for the review-status aggregator"
@@ -67,6 +72,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
+ with:
+ ref: ${{ inputs.commit }}
- uses: ./.github/actions/setup-pm
with:
diff --git a/.github/workflows/windows-install-update-e2e.yml b/.github/workflows/windows-install-update-e2e.yml
index 8e23e667b37..67cc39c3ad8 100644
--- a/.github/workflows/windows-install-update-e2e.yml
+++ b/.github/workflows/windows-install-update-e2e.yml
@@ -15,6 +15,10 @@ name: Windows install + update E2E
on:
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
strict_acceptance:
description: >-
Acceptance runs only: known_failure owners whose gaps FAIL this run instead of xfailing ('upd-txn', a comma list, or '1' for every gap). Sets HERMES_E2E_STRICT_ACCEPTANCE for the E2E suites (tests/e2e/core/_pending_fixes.py).
@@ -51,6 +55,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7.0.1
with:
+ ref: ${{ inputs.commit }}
# serve.git is a bare clone of this checkout: the installer's treeless clone and
# `hermes update` need real history and release tags (version identity), as on GitHub.
fetch-depth: 0
diff --git a/.github/workflows/windows-venv-e2e.yml b/.github/workflows/windows-venv-e2e.yml
index 2afe5681299..a4d79c89272 100644
--- a/.github/workflows/windows-venv-e2e.yml
+++ b/.github/workflows/windows-venv-e2e.yml
@@ -18,6 +18,10 @@ on:
- 'wine2e/**'
workflow_call:
inputs:
+ commit:
+ description: Commit to test and build. Empty keeps the triggering commit.
+ type: string
+ default: ''
release:
description: 'Stable-release candidate run. Unused by the jobs; the caller passes it for a uniform callable surface.'
required: false
@@ -46,7 +50,7 @@ jobs:
with:
# The stable caller dispatches on the candidate tag; github.sha is
# the exact candidate commit there and the head SHA everywhere else.
- ref: ${{ github.sha }}
+ ref: ${{ inputs.commit || github.sha }}
- name: Set up locked Python and test dependencies
uses: ./.github/actions/setup-pm
diff --git a/tests/ci/test_stable_release_commit_threading.py b/tests/ci/test_stable_release_commit_threading.py
new file mode 100644
index 00000000000..2d499c92497
--- /dev/null
+++ b/tests/ci/test_stable_release_commit_threading.py
@@ -0,0 +1,85 @@
+"""Stable runs on the default branch, so every lane must be told which commit to test."""
+import re
+from pathlib import Path
+
+from ruamel.yaml import YAML
+
+ROOT = Path(__file__).resolve().parents[2]
+WORKFLOWS = ROOT / ".github/workflows"
+LOCAL_CALL = re.compile(r"^\./\.github/workflows/(?P<name>[^/@]+)$")
+
+# Reusable workflows that already named their commit input before this contract.
+EXISTING_INPUT = {"pm-bundle.yml": "ref", "desktop-bundle-smoke.yml": "sha"}
+
+# Checkouts that deliberately follow the controller (default-branch) tree, with the reason.
+CONTROLLER_CHECKOUTS: dict[tuple[str, str], str] = {}
+
+
+def load(name: str) -> dict:
+ return YAML(typ="base").load((WORKFLOWS / name).read_text(encoding="utf-8"))
+
+
+def local_calls(doc: dict):
+ for job_name, job in (doc.get("jobs") or {}).items():
+ match = LOCAL_CALL.match(job.get("uses", ""))
+ if match:
+ yield job_name, job, match["name"]
+
+
+def reachable(root: str = "stable-release.yml") -> dict[str, dict]:
+ seen: dict[str, dict] = {}
+ pending = [root]
+ while pending:
+ name = pending.pop()
+ if name in seen:
+ continue
+ seen[name] = load(name)
+ pending.extend(called for _, _, called in local_calls(seen[name]))
+ return seen
+
+
+def commit_input(name: str) -> str:
+ return EXISTING_INPUT.get(name, "commit")
+
+
+def test_every_reusable_lane_accepts_a_commit():
+ for name, doc in reachable().items():
+ if name in {"stable-release.yml", "desktop-bundled-release.yml"}:
+ continue # The controller, and the workflow that admits the claim itself.
+ inputs = (doc["on"]["workflow_call"] or {}).get("inputs") or {}
+ assert commit_input(name) in inputs, f"{name} cannot be told which commit to test"
+
+
+def test_every_call_forwards_the_commit():
+ for name, doc in reachable().items():
+ for job_name, job, called in local_calls(doc):
+ if called == "desktop-bundled-release.yml":
+ continue # Admits the claim itself and checks out the admitted SHA.
+ key = commit_input(called)
+ assert key in (job.get("with") or {}), f"{name}:{job_name} does not pass {key} to {called}"
+
+
+def test_every_checkout_follows_the_commit_input():
+ for name, doc in reachable().items():
+ if name in {"stable-release.yml", "desktop-bundled-release.yml"}:
+ continue
+ key = commit_input(name)
+ for job_name, job in (doc.get("jobs") or {}).items():
+ for index, step in enumerate(job.get("steps") or []):
+ if not step.get("uses", "").startswith("actions/checkout"):
+ continue
+ if (name, f"{job_name}[{index}]") in CONTROLLER_CHECKOUTS:
+ continue
+ ref = (step.get("with") or {}).get("ref", "")
+ assert f"inputs.{key}" in ref, f"{name}:{job_name}[{index}] checks out {ref or 'the default sha'}"
+
+
+def test_stable_release_calls_pass_the_admitted_commit():
+ jobs = load("stable-release.yml")["jobs"]
+ for job_name, job, called in local_calls({"jobs": jobs}):
+ if called == "desktop-bundled-release.yml":
+ continue
+ value = job["with"][commit_input(called)]
+ assert value == "${{ needs.admit.outputs.commit }}", f"{job_name}: {value}"
+ needs = job.get("needs", [])
+ assert "admit" in ([needs] if isinstance(needs, str) else needs), f"{job_name} reads admit without needing it"
diff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.py
index 50b0f33c67e..9c7f2c943f4 100644
--- a/tests/ci/test_stable_release_graph.py
+++ b/tests/ci/test_stable_release_graph.py
@@ -81,7 +81,8 @@ def test_release_reuses_whole_ci_and_docker_before_publication():
("transitions-darwin-x64", "candidates-darwin-x64", "macos-packaged-x64", "macos"),
("transitions-win32", "candidates-win32-bundle", "windows-packaged", "windows")):
assert jobs[receipt]["needs"] == ["admit", call]
- assert jobs[packaged]["needs"] == receipt
+ # The packaged leg names the claim commit, so it reads admit directly.
+ assert jobs[packaged]["needs"] == ["admit", receipt]
assert jobs[packaged]["strategy"]["matrix"] == \
"${{ fromJSON(needs." + receipt + ".outputs." + matrix + ") }}"
# B5: publish-docker starts when the docker tests pass; it does not wait