Files
Pulse/scripts
pulse-triage[bot] bf396dfc60 Fix NAS live teardown race and parallelize slow monitoring tests
1. Keep TestInstallSHNASBootOwnersQuiesceBeforeRecoveryErasure serial at
   the top level in scripts/installtests/install_sh_test.go. Commit
   63023ca8e3 mistakenly added top-level t.Parallel(), violating the
   documented invariant that AgentNASLiveTeardown runs serially before
   parallel fixtures. Because AgentNASLiveTeardown inspects the real
   machine-wide process table (ps -ax), overlapping with parallel
   sibling tests that spawn pulse-agent or shell commands mentioning
   start-pulse-agent.sh, autorun.sh, or /boot/config/go caused
   read_nas_agent_removal_processes to classify them as unknown and fail
   quiesce_nas_agent_for_removal with exit code 1 (Build and Test run
   46146982565, job 140987777407). The 22 modelled AgentNASTeardown
   subtests remain parallel.

2. Cut Backend tests (rest-0 and rest-1) wall time — the slowest Go
   package in Build and Test (~452s in rest-0 and ~379s in rest-1 on
   main run 46149511431) — by adding top-level t.Parallel() to 43
   audited, global-free slow tests across 17 unclaimed
   internal/monitoring/*_test.go files (~345+ serial root test-seconds).
   - Many already used t.Parallel() on their subtests (guest agent and
     Windows polling contracts, PVE/PBS storage/inventory budget and
     response tests, severity delivery, archive writer, and alert replay
     tests) without top-level t.Parallel().
   - Parallelize the four 15-17s notification restart continuity tests
     using isolated t.TempDir() and httptest servers while keeping the
     two t.Setenv("PULSE_DATA_DIR") tests serial.
   - Parallelize TestPMGBackupReadsAvoidUnrelatedFleetCopy only when
     raceEnabled is true (isolated go test -race=false subprocess),
     keeping non-race testing.AllocsPerRun strictly serial.

Zero production code, test assertions, or timeout budgets changed.

Contract-Neutral: Test-only scheduling fix for scripts/installtests live NAS teardown and parallelization of isolated internal/monitoring tests; no production or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-28 14:36:44 +00:00
..
…
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
…
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-11-28 00:28:19 +00:00
2025-10-22 10:46:18 +00:00
2026-03-18 16:06:30 +00:00