ci: correct what the race and gitleaks docs claim
45 activator tests shrink the knob, not 46. Only edge and host have one locked log capture in the step; rootaws's synchronous tests keep plain buffers. The census digests are allowed by shape, not by exact value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 files changed,
+12
−10
.amadan/README.md+1 −1.amadan/ci.d/70-race+3 −3.gitleaks.toml+4 −3AGENTS.md+4 −3
CI passed — run details
Intent
diff --git a/.amadan/README.md b/.amadan/README.md| index 93359c0e3..d95bde406 100644 |
| --- a/.amadan/README.md |
| +++ b/.amadan/README.md |
| @@ -135,7 +135,7 @@ several times slower. |
| Three packages are left out. The root package's e2e tests build the CLI |
| many times over and are too slow under `-race`. `internal/activator` has |
| -46 tests that shrink a package-level timing knob and restore it in a |
| +45 tests that shrink a package-level timing knob and restore it in a |
| cleanup while the wake they started is still running, so the restore |
| races the wake's read. Production never changes those knobs; the fix is |
| for the tests to wait for their wakes, or for the knobs to stop being |
diff --git a/.amadan/ci.d/70-race b/.amadan/ci.d/70-race| index 7b23c13b9..f8396bbb4 100755 |
| --- a/.amadan/ci.d/70-race |
| +++ b/.amadan/ci.d/70-race |
| @@ -18,7 +18,7 @@ |
| # Left out, each for a reason: |
| # - the root package: its e2e tests build the CLI many times over, too |
| # slow under -race; |
| -# - internal/activator: 46 tests shrink a package-level timing knob and |
| +# - internal/activator: 45 tests shrink a package-level timing knob and |
| # put it back in a cleanup while the wake they started is still |
| # running, so the restore races the wake's read. The race is in how |
| # the tests end, not in production, where the knobs never change. It |
| @@ -32,8 +32,8 @@ |
| # |
| # Red means a data race (WARNING: DATA RACE, then the test it was found |
| # in), or a test that fails only under the detector's timing. A race in a |
| -# test helper is fixed in the helper; each of these packages has one |
| -# locked log capture (captureLog) for exactly that. |
| +# test helper is fixed in the helper; edge and host each have one locked |
| +# log capture (captureLog) for exactly that. |
| # |
| # -race needs cgo: CGO_ENABLED=1 and a C compiler on the runner. |
| set -eu |
diff --git a/.gitleaks.toml b/.gitleaks.toml| index 8f0f55e77..55e5030e8 100644 |
| --- a/.gitleaks.toml |
| +++ b/.gitleaks.toml |
| @@ -3,7 +3,8 @@ |
| # tree's tracked files with it; the Makefile says why not the history. |
| # |
| # Every allowance names its values, anchored, so a value that merely |
| -# contains one is still found. Where a value only belongs in some files, |
| +# contains one is still found; only the census digests go by their shape, |
| +# and only in their own files. Where a value only belongs in some files, |
| # the allowance is scoped to them (condition AND: a path and a value), so |
| # the same value anywhere else still fails the gate. Nothing is allowed by |
| # fingerprint in .gitleaksignore: a fingerprint names a commit, and this |
| @@ -42,8 +43,8 @@ regexes = ['''^[0-9a-f]{10,64}$'''] |
| # run (0123456789abcdef), a word (SecretValue, SENTINEL, nope), a test's |
| # own label. The Stripe keys exist to test that the console tells a live |
| # key from a test key and a restricted key from a secret one, so they must |
| -# keep Stripe's prefixes. Three are digests the tests derive: 9f86d081... |
| -# is sha256("test"), fd61a03a... a second 64-hex stand-in for an HMAC, and |
| +# keep Stripe's prefixes. Three are 64-hex values: 9f86d081... is |
| +# sha256("test"), fd61a03a... a second stand-in for an HMAC, and |
| # c7aff5eb... the callback signature key derived from the golden vector's |
| # fixed master, "master-fixed-for-the-vector". Test files only: the same |
| # value in production code is still found. |
diff --git a/AGENTS.md b/AGENTS.md| index 7520f8e5d..1576002be 100644 |
| --- a/AGENTS.md |
| +++ b/AGENTS.md |
| @@ -299,15 +299,16 @@ anything. |
| `internal/systemd` and `internal/host`'s tests named for a loop or a |
| lease, under `-race`, sharded by `.amadan/test-gate.sh` (`GATE_RACE=1`, |
| `RACE_SPLIT`, `RACE_ONLY`, `RACE_SKIP`). It needs cgo and a C compiler. A test |
| - in those packages that reads the standard log uses its package's |
| - `captureLog` (one locked buffer per package; host also has |
| + in edge, activator or host that reads the standard log uses its |
| + package's `captureLog` (a locked buffer; host also has |
| `captureLogBuffer`), never a plain `bytes.Buffer`, and a goroutine a |
| test starts ends before the test does. `internal/activator` and |
| `internal/lease` are out for now (`.amadan/README.md` says why). |
| - `80-gitleaks` runs `make gitleaks` (v8.30.1, pinned) over the working |
| tree's tracked files, not the history. A committed fake (a test key, a |
| fixture) is allowed in `.gitleaks.toml` by its exact value, with the |
| - reason; never by a bare path (that file's header says why). |
| + reason (the census's source digests by their shape, in their own |
| + files); never by a bare path (that file's header says why). |
| - `20-cross@5` adds `GOOS=darwin`/`windows`/`linux-arm64` compiles, one |
| per shard. **The gate is not Linux-only**: `internal/host` is linked |
| into the CLI, which people run on Macs, so a Linux-only type assumption |