mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
Address the #1 product-repo output constraint (`PR checks (Pulse)`, 18.2m median / 42.1m p90 in `output-constraints.json`) by rebalancing `Backend tests (rest-*)` from five complete post-#5400 hosted runs and parallelizing verified global-free tests in `internal/notifications` and `cmd/pulse-agent`: - `.github/scripts/go-package-test-seconds.txt`: refresh package medians from hosted runs 46158110488, 46158121717, 46160606118, 46161398655 (3-way PR) and 46161509141 (2-way main), and set `REST_SHARD_FIXED_SECONDS_3` (`309.230 191.908 0.000`) to account for consistent fixed-slice asymmetry between rest-0/rest-1 and rest-2. Leave-one-out holdout validation improves every 3-way PR holdout by -88.4s to -320.7s peak combined task-seconds and cuts 4-slot peak wall time by -18.7s to -24.1s on three of four holdouts while holding the fourth at its monitoring floor. - `cmd/pulse-agent/collector_token_ingress_unix_test.go`: add `t.Parallel()` to `TestCollectorTokenReaderInstallerIngress` and its 12 subprocess subtests so they run concurrently and overlap with the three release-identity builds (`14.4s` serial -> `~1.2s` subtests; combined parallel group passes in `24.82s` under `-race`). - `internal/notifications/*_test.go` (15 files): add `t.Parallel()` to 99 verified global-free tests while keeping all `t.Setenv`, `spawnAsync` (`newShutdownAdmissionFixture`), `log.Logger` (`captureWebhookResponseLogs`), `zerolog.SetGlobalLevel`, and `emailAttachmentAllocationProbe` / `testing.AllocsPerRun` tests strictly serial (full `internal/notifications -race` passes in `200.89s` vs `214.13s` baseline on 2 cores). Zero production code or test assertions changed. Contract-Neutral: Test-only parallelization and CI shard weight refresh; no production behavior or subsystem contract changes. Change-source: pulse-maintainer