mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 09:10:58 +01:00
Go reports a parent test's Elapsed before waiting for parallel subtests, causing .github/scripts/record-internal-api-test-seconds.py to record parents that spawn t.Parallel() subtests near 0.00s even when their subtests consume tens of seconds of package wall time. In scripts/installtests, 22 such roots accounted for +132.6s to +158.0s of unrecorded wall time on rest-2 (3-way) and rest-1 (2-way), skewing hosted installtests wall times to 183.7/208.7/347.0s (3-way) and 225.9/471.9s (2-way). Meanwhile, #5239 eliminated the 240s TrueNAS poller close stall (0.05-0.08s across four post-#5239 runs), leaving the stale 240.03s monitoring weight skewing internal/monitoring by 170.6s (366.4/377.8/207.2s 3-way; 541.3/410.1s 2-way). Track fractional active leaf-test execution slots across Go JSON event timestamps whenever a root test has paused subtests, clamping to package-seconds against clock steps and preserving Go's exact monotonic Elapsed for roots without paused subtests. Add unit and real Go -race -json regression tests in scripts/tests/test_api_failure_index.py. Refresh scripts/release_control/monitoring-test-seconds.txt, scripts/release_control/installtests-test-seconds.txt, and the two sliced whole-package hints in .github/scripts/go-package-test-seconds.txt from four complete post-#5239 Build and Test runs (45940742093, 45942566161, 45942829787, 45944948230) plus scaled -race GOMAXPROCS=2 active-slot timings for the 22 parallel-subtest installtests roots. On unseen holdout 45944013795: - internal/monitoring 3-way: 366.39/377.82/207.21s -> 317.70/317.28/316.44s (-60.12s max, spread 170.61s -> 1.26s) - internal/monitoring 2-way: 541.34/410.08s -> 475.89/475.53s (-65.45s max, spread 131.26s -> 0.36s) - scripts/installtests 3-way: 184.03/193.51/356.73s -> 235.89/267.00/231.38s (-89.73s max, spread 172.70s -> 35.62s) - scripts/installtests 2-way: 264.48/469.79s -> 381.86/352.41s (-87.93s max, spread 205.31s -> 29.45s) Contract-Neutral: Fixes parallel-subtest duration accounting in the CI timing recorder and refreshes backend test-shard scheduling weights; timing output format, failure-index schema, privacy bounds, source-derived coverage admission, required checks, and product behavior are unchanged. Change-source: pulse-maintainer