Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/ci-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 0 additions & 10 deletions .github/scripts/check-ci-policy-agreement.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Comment on lines 62 to 63

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the contract-test fixtures when removing the build waivers

Removing these waivers breaks .github/scripts/check-ci-policy-agreement.test.sh: its build_tree() fixture still creates all four build workflows as dispatch-only, so the first positive-case checker invocation at line 59 now exits with unwaived disagreements. The test also still asserts that #6981 waivers exist and uses one for its stale-waiver case. .github/workflows/workflow-lint.yml explicitly runs this test at lines 62–63, so PRs triggering that basic-tier check will fail even though the checker passes against the real repository. Update the fixtures and waiver assertions alongside this removal.

AGENTS.md reference: AGENTS.md:L34-L34

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 640b386: the contract-test fixtures now declare pull_request push workflow_dispatch for all four build workflows (matching the restored triggers), the positive case asserts the remaining recorded waivers (opencode-config-guard main tier, issue #6953), and the stale-waiver case now exercises opencode-config-guard gaining its push leg. Verified: check-ci-policy-agreement.test.sh passes 5/5 and check-ci-policy-agreement.sh passes against the real tree (2 waived disagreements remaining, both pre-existing Phase 2-3).


required_trigger() {
Expand Down
20 changes: 10 additions & 10 deletions .github/scripts/check-ci-policy-agreement.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ build_tree() { # build_tree <root>: 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
Expand All @@ -58,8 +58,8 @@ build_tree() { # build_tree <root>: 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.
Expand All @@ -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.
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/go-modules-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/identity-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/map-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/mcpx-nixbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Comment on lines +23 to +25

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore unfiltered main-tier build triggers

For merges touching only shared build inputs, these new path filters skip the restored main-tier checks, although .github/ci-policy.md explicitly assigns all four build workflows “always (push to main, no path filter).” For example, changing lib/default.nix, which defines mcpx-packaging, will not trigger this workflow—the only workflow invoking that check. The container-image build is not equivalent because it disables checks and runtime wrapping. Remove the push.paths restrictions from the four restored workflows so the main tier retains its promised coverage.

AGENTS.md reference: AGENTS.md:L34-L34

Useful? React with 👍 / 👎.

pull_request:
paths:
- "pkgs/mcpx/**"
- ".github/workflows/mcpx-nixbuild.yml"
workflow_dispatch:

permissions:
Expand Down
Loading