test(plugins): stop the startup budget failing on machine load

P95 runs 16-34ms idle but exceeds the 50ms bound under full-suite
parallelism, so the gate flaked. Widen it to catch an order-of-magnitude
regression instead; the no-worker/no-plugin-code assertions are the real
guarantee. Verified a 400ms regression still fails.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-07-27 00:35:15 -07:00
co-authored by Orca
parent 31ab3a3274
commit 2f25ef8e32
@@ -15,7 +15,11 @@ import type { PluginWorkerFactory } from './plugin-worker-manager'
const PLUGIN_COUNT = 20
const SAMPLE_COUNT = 20
const STARTUP_P95_BUDGET_MS = 50
// Real disk I/O, so the number moves with machine load: ~16-34ms idle, higher
// when the suite saturates the box. Sized to catch an order-of-magnitude
// regression rather than scheduling noise — the behavioral assertions below
// (no worker spawned, no plugin code run) are what this test really guards.
const STARTUP_P95_BUDGET_MS = 400
let userDataPath = ''
let markerPaths: string[] = []