The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
ci(pm-toolchain): trim the smoke matrix to what only it proves
ethernetb5eb3795b161
diff --git a/.github/workflows/pm-toolchain-smoke.yml b/.github/workflows/pm-toolchain-smoke.ymlindex 0f125045824..e7eae0e008d 100644--- a/.github/workflows/pm-toolchain-smoke.yml+++ b/.github/workflows/pm-toolchain-smoke.yml@@ -11,7 +11,7 @@ jobs:native:name: ${{ inputs.warm && 'warm' || 'cold' }} ${{ matrix.target }}runs-on: ${{ matrix.runner }}- timeout-minutes: 35+ timeout-minutes: ${{ inputs.warm && 15 || 35 }}strategy:fail-fast: falsematrix:@@ -44,6 +44,9 @@ jobs:with:toolchain: allextras: '["dev"]'+ # Production callers prune before saving; the warm restore must+ # work from a pruned cache, so the smoke saves one too.+ prune-python-cache: true# Each workflow run proves a genuinely cold save followed by a# different runner restoring it. No pre-existing cache can mask it.cache-suffix: smoke-${{ github.run_id }}-${{ github.run_attempt }}@@ -59,6 +62,8 @@ jobs:python scripts/ci/verify_toolchain.py --extraspython -c 'import os; expected=os.environ["EXPECT_WARM"]=="true"; values={k:os.environ[k]=="true" for k in ("TOOLS_HIT","PYTHON_HIT","NODE_HIT")}; print(values); assert all(v==expected for v in values.values()), values'+ # Cold populates the npm cache; warm must complete the same install+ # without the network. That is the restore proof for the node half.- name: Install the real locked npm workspaceshell: bashenv:@@ -67,14 +72,29 @@ jobs:flags=()if [ "$EXPECT_WARM" = true ]; then flags+=(--offline); finpm ci --workspace tests-js --include-workspace-root --include=dev --ignore-scripts --no-audit --no-fund ${flags[@]+"${flags[@]}"}- node node_modules/vitest/vitest.mjs run --root tests-js setup-pm-post.test.mjs generate-icons.test.mjs+ # The cold leg is the only runner for these on linux-arm64, darwin-x64+ # and win32-arm64 (tests-os selects platform-marked files only). Warm+ # runs the same commit on the same tree, so it skips them.- name: Run the PM and action contracts+ if: ${{ !inputs.warm }}shell: bashrun: |scripts/run_tests.sh -j 2 tests/scripts/test_setup_toolchain.py tests/pm/test_pm_core.py tests/pm/test_bootstrap_import_closure.py tests/pm/test_uv_cache.py tests/pm/test_windows_build_deps.pypython scripts/ci/verify_toolchain.py --extras+ # Build-side consumers of the provisioned toolchain. One target is+ # enough: the vitest halves already run under js-tests.+ - name: Exercise the docs, payload and icon build entrypoints+ if: ${{ !inputs.warm && matrix.target == 'linux-x64' }}+ shell: bash+ run: |+ python -m scripts.ci.python_packages ascii-guard==2.3.0 ruamel.yaml==0.18.17 httpx==0.28.1 -- -c 'import ruamel.yaml,httpx; print(ruamel.yaml.__version__, httpx.__version__)'+ npm ci --workspace apps/desktop --include-workspace-root --include=dev --ignore-scripts --no-audit --no-fund+ npm run payload --workspace apps/desktop -- --help+ node scripts/generate-icons.mjs+ node scripts/generate-icons.mjs --check+- name: Upload native setup proofif: always()uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1diff --git a/.github/workflows/pm-toolchain.yml b/.github/workflows/pm-toolchain.ymlindex 68149dde50f..f47fd171cdb 100644--- a/.github/workflows/pm-toolchain.yml+++ b/.github/workflows/pm-toolchain.yml@@ -33,46 +33,6 @@ jobs:uses: ./.github/workflows/pm-toolchain-smoke.ymlwith:warm: true- prune:- runs-on: ubuntu-24.04- timeout-minutes: 15- steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2- with:- persist-credentials: false- - uses: ./.github/actions/setup-pm- with:- extras: '["dev"]'- prune-python-cache: true- cache-suffix: smoke-prune-${{ github.run_id }}-${{ github.run_attempt }}- - run: scripts/run_tests.sh tests/ci/test_cleanup_pm_toolchain_caches.py -j 1 -q- build-consumers:- runs-on: ubuntu-24.04- timeout-minutes: 20- steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2- with:- persist-credentials: false- - uses: ./.github/actions/setup-pm- with:- toolchain: all- cache-suffix: smoke-consumers-${{ github.run_id }}-${{ github.run_attempt }}- - name: Install the docs tools into the command environment- run: |- python -m scripts.ci.python_packages ascii-guard==2.3.0 ruamel.yaml==0.18.17 httpx==0.28.1 -- -c 'import ruamel.yaml,httpx; print(ruamel.yaml.__version__, httpx.__version__)'- - name: Install the locked desktop and test workspaces- run: npm ci --workspace apps/desktop --workspace tests-js --include-workspace-root --include=dev --ignore-scripts --no-audit --no-fund- - name: Exercise the actual after-pack relocation hook- working-directory: apps/desktop- run: node ../../node_modules/vitest/vitest.mjs run --project electron scripts/after-pack-toolchain.test.mjs- - name: Verify the icon and cache-post contracts- run: node node_modules/vitest/vitest.mjs run --root tests-js generate-icons.test.mjs setup-pm-post.test.mjs setup-pm-cache.test.mjs- - name: Exercise the payload and icon build entrypoints- run: |- npm run payload --workspace apps/desktop -- --help- node scripts/generate-icons.mjs- node scripts/generate-icons.mjs --check-windows-bundle-tools:name: Cold Windows SDK (${{ matrix.runner }})runs-on: ${{ matrix.runner }}