PR #5419 (run 46167305741) failed Backend tests (rest-1) twice on
attempts 141049444349 and 141057010855 with:
install_sh_test.go:9828: build pulse-agent lifecycle binary: signal: killed
context deadline exceeded (180.04s)
Backend CI restores -race build objects, not plain non-race objects.
Cold plain compilation of ./cmd/pulse-agent needs ~250 CPU-seconds
(scripts/run-release-backend-tests.sh), which exceeds 3 minutes when
rest-1 runs internal/monitoring, internal/alerts, cmd/pulse-agent, and
scripts/installtests concurrently on a 4-vCPU runner. Because
newLifecycleBinaryFixture caches the first build result via
sync.OnceValues, that timeout failed every subsequent lifecycle test in
the shard.
Raise lifecycleAgentFixture's bounded build deadline from 3 minutes to
10 minutes while preserving the real exact-source compilation, per-test
executable copies, and fail-closed caching.
Contract-Neutral: Test-only fixture build deadline adjustment in scripts/installtests; production code, installer behavior, and test assertions are unchanged.
Change-source: pulse-maintainer
The same required installer race slice builds an identical runner for
atomic cancellation, self-revocation and recovered transport trust. Reuse one
source build per test process with a private executable copy for each caller.
Keep the real binary, original trust assertions and existing collector build
deadline; do not share state, trust configuration or earlier verdicts.
Contract-Neutral: Installer test fixture build reuse only; product behavior, coverage, required CI, and runtime contracts are unchanged.
Change-source: pulse-maintainer
Build the exact checkout's agent once per installer test process via the existing lifecycle fixture. Give the URL and saved-transport tests their own executable copies and retain their three-minute build bound and existing assertions. No application code, test cases or CI check selection changes.
Change-source: pulse-maintainer
Keep the exact-source build and a private executable for every test while avoiding repeated compilation and linking. Cache failures, clean the build directory, and test concurrent reuse, copy isolation and fail-stop behaviour.
Contract-Neutral: test-only lifecycle binary fixture reuse; product behaviour and safety assertions are unchanged.
Change-source: pulse-maintainer