diff --git a/.github/ci-policy.md b/.github/ci-policy.md index 8eec491857..bc3ed46d15 100644 --- a/.github/ci-policy.md +++ b/.github/ci-policy.md @@ -257,7 +257,6 @@ stale waiver whose leg now agrees. | ------------------------------------------------- | ------------------------------------------------------- | ----------- | | opencode-config-guard | main tier (`push`); venue `disabled_manually` | Phase 2 — #6953 | | production-line-guard | PR tier (`pull_request`) | Phase 3 — #6959 | -| go-modules-build, identity-build, map-build, mcpx-nixbuild | PR tier (`pull_request`) and main tier (`push`); venues `disabled_manually` | Phase 3 — #6981 | ## Coverage rule diff --git a/.github/scripts/check-ci-policy-agreement.sh b/.github/scripts/check-ci-policy-agreement.sh index 812f3ede45..cdd849cd09 100755 --- a/.github/scripts/check-ci-policy-agreement.sh +++ b/.github/scripts/check-ci-policy-agreement.sh @@ -60,16 +60,6 @@ WAIVERS=( # Phase 3 (#6959): dispatch-only; the guard's ci-policy row is new # in Phase 1 and its PR leg awaits the Phase 3 disposition. "production-line-guard.yml|pr|6959" - # Phase 3 (#6981): all four dispatch-only AND disabled_manually; - # neither tier leg declared. - "go-modules-build.yml|pr|6981" - "go-modules-build.yml|main|6981" - "identity-build.yml|pr|6981" - "identity-build.yml|main|6981" - "map-build.yml|pr|6981" - "map-build.yml|main|6981" - "mcpx-nixbuild.yml|pr|6981" - "mcpx-nixbuild.yml|main|6981" ) required_trigger() { diff --git a/.github/scripts/check-ci-policy-agreement.test.sh b/.github/scripts/check-ci-policy-agreement.test.sh index 0ebc2e89c1..e7e89c1c49 100755 --- a/.github/scripts/check-ci-policy-agreement.test.sh +++ b/.github/scripts/check-ci-policy-agreement.test.sh @@ -46,10 +46,10 @@ build_tree() { # build_tree : the current-main shape wf "$root" opencode-config-guard.yml pull_request workflow_dispatch wf "$root" mcpx-fix-test-guard.yml pull_request push workflow_dispatch wf "$root" production-line-guard.yml workflow_dispatch - wf "$root" go-modules-build.yml workflow_dispatch - wf "$root" identity-build.yml workflow_dispatch - wf "$root" map-build.yml workflow_dispatch - wf "$root" mcpx-nixbuild.yml workflow_dispatch + wf "$root" go-modules-build.yml pull_request push workflow_dispatch + wf "$root" identity-build.yml pull_request push workflow_dispatch + wf "$root" map-build.yml pull_request push workflow_dispatch + wf "$root" mcpx-nixbuild.yml pull_request push workflow_dispatch } # Agreeing-with-waivers tree: exactly the recorded Phase 2-3 @@ -58,8 +58,8 @@ build_tree() { # build_tree : the current-main shape build_tree "$TMP/ok" bash "$SCRIPT" "$TMP/ok" >"$TMP/ok.out" grep -q "ci-policy-agreement: OK" "$TMP/ok.out" -grep -q "WAIVED go-modules-build.yml: main tier" "$TMP/ok.out" -grep -q "issue #6981" "$TMP/ok.out" +grep -q "WAIVED opencode-config-guard.yml: main tier" "$TMP/ok.out" +grep -q "issue #6953" "$TMP/ok.out" echo "pass: tree with exactly the waived disagreement set passes" # Unwaived disagreement: workflow-lint loses its pull_request leg. @@ -72,15 +72,15 @@ fi grep -q "DISAGREEMENT workflow-lint.yml: pr tier requires trigger 'pull_request'" "$TMP/bad.out" echo "pass: unwaived disagreement fails naming the workflow and leg" -# Stale waiver: mcpx-nixbuild gains its main-tier push leg, so the -# #6981 main waiver for it must be deleted, not left behind. +# Stale waiver: opencode-config-guard gains its main-tier push leg, so the +# #6953 main waiver for it must be deleted, not left behind. build_tree "$TMP/stale" -wf "$TMP/stale" mcpx-nixbuild.yml workflow_dispatch push +wf "$TMP/stale" opencode-config-guard.yml pull_request workflow_dispatch push if bash "$SCRIPT" "$TMP/stale" >"$TMP/stale.out" 2>&1; then echo "FAIL: checker accepted a stale waiver" >&2 exit 1 fi -grep -q "STALE WAIVER mcpx-nixbuild.yml: main leg now agrees" "$TMP/stale.out" +grep -q "STALE WAIVER opencode-config-guard.yml: main leg now agrees" "$TMP/stale.out" echo "pass: a waiver whose leg now agrees fails as stale" # Missing policy row: production-line guard's row vanishes. diff --git a/.github/workflows/go-modules-build.yml b/.github/workflows/go-modules-build.yml index 1b3f9ec093..07d9b6ab58 100644 --- a/.github/workflows/go-modules-build.yml +++ b/.github/workflows/go-modules-build.yml @@ -29,6 +29,25 @@ name: go modules build # pgx/cockroach indirects) with nothing noticing. on: + push: + branches: [main] + paths: + - "pkgs/chat/**" + - "pkgs/database/**" + - "pkgs/graph/**" + - "pkgs/import/**" + - "pkgs/launcher/**" + - "pkgs/tea/**" + - ".github/workflows/go-modules-build.yml" + pull_request: + paths: + - "pkgs/chat/**" + - "pkgs/database/**" + - "pkgs/graph/**" + - "pkgs/import/**" + - "pkgs/launcher/**" + - "pkgs/tea/**" + - ".github/workflows/go-modules-build.yml" workflow_dispatch: permissions: diff --git a/.github/workflows/identity-build.yml b/.github/workflows/identity-build.yml index 9d47b18a42..63e8816645 100644 --- a/.github/workflows/identity-build.yml +++ b/.github/workflows/identity-build.yml @@ -12,6 +12,15 @@ name: identity build # vets both variants whenever the module changes. on: + push: + branches: [main] + paths: + - "pkgs/identity/**" + - ".github/workflows/identity-build.yml" + pull_request: + paths: + - "pkgs/identity/**" + - ".github/workflows/identity-build.yml" workflow_dispatch: permissions: diff --git a/.github/workflows/map-build.yml b/.github/workflows/map-build.yml index 1941977b9b..2d2f3f6138 100644 --- a/.github/workflows/map-build.yml +++ b/.github/workflows/map-build.yml @@ -12,6 +12,15 @@ name: map build # go-modules-build.yml since that fix landed, so it is not added here.) on: + push: + branches: [main] + paths: + - "pkgs/map/**" + - ".github/workflows/map-build.yml" + pull_request: + paths: + - "pkgs/map/**" + - ".github/workflows/map-build.yml" workflow_dispatch: permissions: diff --git a/.github/workflows/mcpx-nixbuild.yml b/.github/workflows/mcpx-nixbuild.yml index ac85e88d30..942e1545fa 100644 --- a/.github/workflows/mcpx-nixbuild.yml +++ b/.github/workflows/mcpx-nixbuild.yml @@ -18,6 +18,15 @@ name: mcpx nix build # changes to this workflow are exercised by it, like mcpx.yml does. on: + push: + branches: [main] + paths: + - "pkgs/mcpx/**" + - ".github/workflows/mcpx-nixbuild.yml" + pull_request: + paths: + - "pkgs/mcpx/**" + - ".github/workflows/mcpx-nixbuild.yml" workflow_dispatch: permissions: