diff --git a/.github/ci-policy.md b/.github/ci-policy.md index 7e0a3c44ad..5ff43d4000 100644 --- a/.github/ci-policy.md +++ b/.github/ci-policy.md @@ -65,6 +65,20 @@ check stays `basic: proxy port fallbacks`, which the dedicated events. `gh pr merge` merges a PR directly; there is no merge-pending queue state. +## Deploy flake checks (#7322) + +`.github/workflows/deploy-flake-checks.yml` is a **basic-tier** check +(job `basic: deploy flake checks (deploy-list + deploy-list-malformed)`): +on pull requests touching `pkgs/deploy/**`, `lib/default.nix`, or the +workflow itself, it builds exactly the two root flake checks +`checks.x86_64-linux.deploy-list` and +`checks.x86_64-linux.deploy-list-malformed`. Before #7322 those checks +ran only in the full flake check on main / the nix-ci schedule, so the +deploy registry validation was unenforced at the merge gate. This is a +targeted build of two `runCommandLocal` checks — never a full flake +check on a PR (class 4 above). No `merge_group` trigger: main has no +merge queue (ruling above). + ## mcpx fix-test guard (#1969) `.github/workflows/mcpx-fix-test-guard.yml` is a **basic-tier** check @@ -167,6 +181,7 @@ main-breakage rate (issues labelled `main-broken`) proves out. | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | nix ci | — (PR proxy check is in the dedicated workflow below) | proxy port fallbacks + full flake-check (formatting auto-fixed on main by the auto-format workflow) | schedule in nix-ci.yml | | proxy-port-fallbacks | `basic: proxy port fallbacks` on `pull_request` | — (main copy remains in nix-ci.yml) | — | +| deploy-flake-checks | `basic: deploy flake checks (deploy-list + deploy-list-malformed)` on `pull_request` (paths `pkgs/deploy/**`, `lib/default.nix`, the workflow itself) | full flake check in nix ci | — | | workflow-lint | `basic: workflow lint` on `pull_request` (paths `.github/workflows/**`, `.github/actions/**`) | — | — | | id | guard + affected-crate matrix (`id-pr-checks.txt`) | + full `nix flake check ./pkgs/id` job | schedule in id-check.yml + id-e2e-nightly.yml (full flake check) | | mcpx conformance | spec-parity leg only (measured 28s exec, run 40801660942, 2026-10-29 — under the 5m fast-leg limit) | all conformance legs + records + spec-parity | — (main covers it) | diff --git a/.github/test-suite-registry.json b/.github/test-suite-registry.json index 5c7388e236..b74ac04dfd 100644 --- a/.github/test-suite-registry.json +++ b/.github/test-suite-registry.json @@ -1024,6 +1024,20 @@ "status": "uncovered", "phase2_issue": 6185, "reason": "Root-level device/connectivity probe has no venue; confirm whether it is a product test suite or a manual diagnostic in Phase 2." + }, + { + "id": "deploy.flake-checks", + "paths": ["pkgs/deploy/**", "lib/default.nix"], + "invocation": "nix build .#checks.x86_64-linux.deploy-list .#checks.x86_64-linux.deploy-list-malformed", + "venue": { + "workflow": ".github/workflows/deploy-flake-checks.yml", + "job_step": "deploy-flake-checks / Build deploy-list and deploy-list-malformed flake checks", + "state": "active", + "dispatchable": true + }, + "status": "mapped", + "related_issues": [7322], + "notes": "Basic-tier PR gate for the deploy registry checks (#7322); before this workflow the two checks ran only in the full flake check on main / the nix-ci schedule." } ], "waivers": [] diff --git a/.github/workflows/deploy-flake-checks.yml b/.github/workflows/deploy-flake-checks.yml new file mode 100644 index 0000000000..3ab1fdd164 --- /dev/null +++ b/.github/workflows/deploy-flake-checks.yml @@ -0,0 +1,42 @@ +name: deploy flake checks + +# CI tier policy: see .github/ci-policy.md +# +# Issue #7322: the deploy-list and deploy-list-malformed flake checks +# (lib/default.nix, root flake checks) were only ever executed by the +# nix-ci schedule / full flake check on main, so a PR touching +# pkgs/deploy/** or lib/default.nix could break them and still merge +# green. This dedicated basic-tier workflow runs exactly those two +# checks on such PRs — a targeted build of two runCommandLocal checks, +# never a full flake check on a PR (ci-policy.md class 4). +# +# No merge_group trigger: main has no merge queue (Drew ruling, +# 2026-11-08; see .github/ci-policy.md). +on: + pull_request: + paths: + - "pkgs/deploy/**" + - "lib/default.nix" + - ".github/workflows/deploy-flake-checks.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + deploy-flake-checks: + name: "basic: deploy flake checks (deploy-list + deploy-list-malformed)" + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v7 + - uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 + - uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 + - name: Build deploy-list and deploy-list-malformed flake checks + run: | + echo "Executing flake checks: deploy-list, deploy-list-malformed" + nix build ".#checks.x86_64-linux.deploy-list" ".#checks.x86_64-linux.deploy-list-malformed" --print-build-logs