Commit 4e0e837
ci: add
The local gate must run EXACTLY what CI runs. This session: fix agents
verified work with a partial local gate, and stale-but-green PRs nearly
shipped a broken base.
- Makefile: new `gate` target = `go build ./... && go vet ./... &&
go test ./... -short -count=1` — the exact sequence deploy.yml's test
step runs (build+vet are a fast-fail superset). One command whose
green result == a green CI test step.
- ci.yml: trigger fixed `main` -> `master` (this repo's default branch;
the PR/push triggers never fired before). New `up-to-date-with-base`
job fails a PR whose branch does not contain `origin/<base>` as an
ancestor (git merge-base --is-ancestor), so a stale-green PR goes red
and must update-branch before merge.
Verified: `make gate` runs clean locally (build + vet + all tests pass).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>make gate (local==CI gate) + stale-green PR guard1 parent 02536f5 commit 4e0e837
2 files changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
10 | 32 | | |
11 | 33 | | |
12 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
16 | 26 | | |
17 | 27 | | |
18 | 28 | | |
| |||
0 commit comments