Peter Steinberger
883995f08d
test: stabilize flaky tests at root cause (batch 2) and fix the isolate:false cleanup hole ( #109653 )
...
* test: stabilize four flaky tests at root cause
- test/non-isolated-runner.ts: move shared-worker cleanup from onAfterRunSuite
to onAfterRunFiles. Vitest early-returns runSuite for files that fail during
collection, skipping onAfterRunSuite, so a crashed sibling left its evaluated
real modules cached and the next file's vi.mock factories silently never
applied — the "res.setHeader is not a function" failures in
http-utils.authorize-request.test.ts. onAfterRunFiles fires per file
regardless of collect/run outcome. Regression meta-test spawns a child
vitest run (collect-crash sibling + mock-dependent file) and fails on the
old runner with flavor:real vs flavor:mocked.
- src/gateway/http-utils.authorize-request.test.ts: export every http-common
binding http-auth-utils imports so the factory stays isolate:false-safe.
- src/gateway/session-message-events.test.ts: drop the beforeAll 60s override;
the suite harness cold-imports the full gateway server graph, which can
legitimately exceed 60s under contention. Sibling suites use the shared
project hookTimeout (120s/180s) for the same boot.
- src/gateway/server-methods/agent.sessions-and-models.test-utils.ts: the
finalize-throw test polled a 2s waitForAssertion for an off-turn background
run; signal finalize via a promise resolved from the spy (event-driven,
bounded by the test timeout) and keep the bounded poll for the follow-up
respond/warn observations.
- ui/src/pages/chat/chat-responsive.browser.test.ts: budget cold-app first
renders at 30s (real-app cases boot a cold Vite dev server whose first
transform can starve past 10s under 6-worker contention) and replace
one-shot isVisible reads with bounded locator waits for the state-driven
hover reveal.
Proof: focused runs green; 5x repeats of the three gateway files and 5x
repeats of chat-responsive with OPENCLAW_VITEST_MAX_WORKERS=6 all green;
runner regression test fails pre-fix, passes post-fix.
* test: isolate runner meta-test child env from GitHub Actions
The child vitest inherited GITHUB_ACTIONS/CI from the runner job, which
turned on ANSI colors (breaking the plain-substring assertions) and let
the child's github-actions reporter emit ::error annotations the parent
job rendered as its own failures. Drop GITHUB_ACTIONS/FORCE_COLOR and set
NO_COLOR, which overrides every tinyrainbow enable path.
* test: wait for parseable pid in tsdown-build pid-file polls
waitForFile existence polling can catch writeFileSync's open-truncate
0-byte window, yielding NaN pids and false isProcessAlive failures (the
same class as #109140 ). Poll until the file parses to a positive pid;
covers all three sibling pid-read sites in the suite.
2026-07-16 22:18:16 -07:00
..
2026-07-12 13:26:39 +02:00
2026-06-20 03:29:15 +02:00
2026-07-16 20:59:29 -07:00
2026-07-16 20:59:29 -07:00
2026-07-07 00:39:59 +01:00
2026-06-21 18:19:07 +02:00
2026-07-13 18:26:59 -05:00
2026-06-17 11:05:53 +02:00
2026-06-21 22:33:59 +02:00
2026-07-13 19:12:21 -05:00
2026-07-10 10:42:36 +01:00
2026-07-12 17:24:45 -07:00
2026-07-16 00:57:19 -07:00
2026-07-12 10:42:07 +01:00
2026-07-05 08:00:23 -04:00
2026-07-11 06:15:41 -07:00
2026-07-07 02:03:36 -04:00
2026-07-12 22:18:10 -07:00
2026-07-14 23:11:28 -07:00
2026-07-13 21:50:36 -07:00
2026-07-13 22:12:21 -07:00
2026-06-23 14:01:29 +02:00
2026-07-04 13:47:14 -07:00
2026-07-16 04:53:43 -07:00
2026-06-20 04:04:40 +08:00
2026-06-07 12:39:48 +02:00
2026-07-16 21:51:06 -07:00
2026-06-20 21:36:42 +02:00
2026-07-12 10:42:07 +01:00
2026-07-16 22:48:03 +01:00
2026-07-15 19:28:37 -07:00
2026-07-13 17:13:16 -07:00
2026-07-16 18:48:20 -07:00
2026-07-12 10:26:32 +08:00
2026-07-06 11:09:49 +02:00
2026-07-15 03:45:37 -07:00
2026-07-16 22:01:34 -07:00
2026-07-16 00:16:20 -07:00
2026-07-16 00:16:20 -07:00
2026-07-11 06:15:41 -07:00
2026-07-14 20:29:18 -07:00
2026-07-11 01:09:51 -07:00
2026-06-21 21:39:41 +02:00
2026-07-16 09:54:49 -07:00
2026-07-11 15:04:25 -07:00
2026-07-11 06:15:41 -07:00
2026-07-15 05:03:43 +01:00
2026-07-04 13:49:20 +02:00
2026-07-14 23:19:48 -07:00
2026-06-23 10:31:05 +02:00
2026-07-11 06:15:41 -07:00
2026-07-12 08:40:22 +08:00
2026-06-23 10:35:28 +02:00
2026-07-13 00:34:57 -07:00
2026-07-01 22:05:26 -05:00
2026-07-16 18:15:58 -07:00
2026-07-14 10:41:36 -07:00
2026-07-16 12:14:06 -07:00
2026-07-16 01:47:37 -07:00
2026-07-16 17:09:56 -07:00
2026-06-20 20:12:30 +02:00
2026-06-21 18:04:47 +02:00
2026-07-15 13:06:24 -07:00
2026-07-16 21:51:06 -07:00
2026-07-16 17:22:28 -07:00
2026-06-22 10:42:21 +00:00
2026-07-16 21:51:06 -07:00
2026-06-10 15:37:15 +09:00
2026-07-10 18:06:06 +01:00
2026-07-15 03:34:08 -07:00
2026-07-16 00:39:08 -07:00
2026-07-12 07:44:25 +08:00
2026-06-06 20:53:08 +02:00
2026-06-16 21:15:55 +02:00
2026-07-12 10:42:07 +01:00
2026-07-12 12:09:17 +08:00
2026-07-16 13:10:41 -07:00
2026-06-18 20:46:11 +02:00
2026-07-11 01:09:51 -07:00
2026-06-21 11:13:13 +02:00
2026-07-12 15:09:23 +08:00
2026-07-16 18:48:20 -07:00
2026-07-13 05:07:18 -07:00
2026-07-15 22:32:29 -07:00
2026-07-16 10:24:02 -07:00
2026-07-13 22:09:36 -07:00
2026-06-16 22:01:44 +02:00
2026-06-23 13:43:44 +02:00
2026-07-16 18:48:20 -07:00
2026-07-12 10:42:07 +01:00
2026-07-11 01:09:51 -07:00
2026-06-20 02:02:37 +02:00
2026-07-16 18:56:18 -07:00
2026-07-15 13:14:35 -07:00
2026-07-16 21:19:06 -07:00
2026-07-15 07:27:10 -07:00
2026-07-12 10:42:07 +01:00
2026-07-11 01:09:51 -07:00
2026-07-15 15:08:52 -07:00
2026-07-11 06:30:57 -07:00
2026-07-16 01:12:40 -07:00
2026-07-10 13:00:50 +01:00
2026-06-18 20:57:55 +02:00
2026-07-06 17:31:23 -04:00
2026-06-22 14:14:20 +08:00
2026-06-21 07:40:06 +02:00
2026-07-16 20:43:06 -04:00
2026-06-21 11:30:45 +02:00
2026-06-20 16:26:00 +02:00
2026-07-16 08:35:51 -07:00
2026-07-16 00:39:08 -07:00
2026-07-15 06:14:54 -07:00
2026-07-05 12:40:31 +02:00
2026-07-15 13:37:53 -07:00
2026-06-21 10:16:09 +02:00
2026-07-11 01:09:51 -07:00
2026-06-24 13:24:43 +08:00
2026-06-07 12:36:13 +02:00
2026-07-15 01:13:44 -07:00
2026-06-21 11:55:25 +02:00
2026-07-12 07:17:48 +02:00
2026-06-21 11:04:38 +02:00
2026-06-07 09:27:18 +02:00
2026-06-16 14:19:01 +08:00
2026-07-13 11:44:28 -07:00
2026-07-16 10:26:29 +01:00
2026-07-15 22:52:59 -07:00
2026-07-14 07:42:17 -07:00
2026-07-12 10:42:07 +01:00
2026-07-03 15:36:11 +00:00
2026-07-13 01:53:28 -07:00
2026-07-16 17:33:35 -07:00
2026-06-22 18:44:21 +08:00
2026-06-21 10:54:09 +02:00
2026-07-16 17:17:07 -07:00
2026-07-16 01:44:30 -07:00
2026-06-18 20:38:29 +08:00
2026-07-16 08:02:31 -07:00
2026-07-15 23:01:31 -07:00
2026-07-14 12:11:25 -07:00
2026-06-22 21:07:57 -04:00
2026-06-21 23:00:30 +02:00
2026-07-13 01:47:43 -07:00
2026-06-07 08:42:16 +02:00
2026-07-14 03:25:56 -07:00
2026-07-01 20:24:38 -05:00
2026-07-12 12:52:38 -07:00
2026-07-10 10:42:36 +01:00
2026-07-01 20:42:25 -07:00
2026-06-15 19:27:55 +02:00
2026-07-13 19:12:21 -05:00
2026-07-01 22:05:26 -05:00
2026-07-10 10:42:36 +01:00
2026-07-05 10:57:19 -07:00
2026-06-21 04:02:14 +02:00
2026-07-12 10:42:07 +01:00
2026-07-12 10:42:07 +01:00
2026-07-11 15:57:55 +08:00
2026-07-10 17:31:42 -07:00
2026-07-10 16:59:10 +01:00
2026-07-10 19:01:30 +01:00
2026-07-10 16:59:10 +01:00
2026-06-21 22:19:54 +02:00
2026-07-16 07:38:14 -07:00
2026-06-15 14:23:57 +08:00
2026-06-19 00:54:57 +02:00
2026-07-12 15:22:37 +08:00
2026-07-11 06:15:41 -07:00
2026-07-14 00:27:34 +01:00
2026-07-15 13:14:35 -07:00
2026-07-15 12:55:00 -07:00
2026-07-15 22:57:36 -07:00
2026-07-16 18:50:57 -07:00
2026-07-07 10:54:35 +01:00
2026-07-07 10:54:35 +01:00
2026-06-23 15:20:29 +02:00
2026-06-23 18:00:53 +02:00
2026-07-16 21:42:12 -07:00
2026-07-11 01:09:51 -07:00
2026-06-26 18:54:45 -05:00
2026-06-21 10:31:00 +02:00
2026-07-16 18:49:36 -07:00
2026-07-16 16:08:16 -07:00
2026-06-20 21:44:09 +02:00
2026-06-16 20:37:36 +02:00
2026-06-21 11:15:14 +02:00
2026-07-16 04:53:43 -07:00
2026-06-20 20:02:45 +01:00
2026-07-11 19:57:54 +08:00
2026-06-21 11:23:08 +02:00
2026-06-07 07:14:37 +02:00
2026-06-29 00:39:06 -07:00
2026-07-12 09:01:33 +01:00
2026-07-16 04:50:53 -07:00
2026-07-16 17:43:56 -07:00
2026-07-12 17:26:04 -07:00
2026-07-12 10:42:07 +01:00
2026-07-14 18:31:00 -07:00
2026-07-11 06:15:41 -07:00
2026-07-11 06:15:41 -07:00
2026-07-10 20:16:19 +01:00
2026-07-07 07:45:55 -07:00
2026-07-15 13:22:31 -07:00
2026-07-13 11:41:27 -07:00
2026-07-16 03:21:08 -07:00
2026-06-21 16:53:49 +02:00
2026-07-17 00:52:44 +01:00
2026-07-14 09:27:02 -07:00
2026-07-17 05:32:47 +01:00
2026-07-10 22:31:42 -07:00
2026-07-05 13:25:36 +02:00
2026-07-11 01:09:51 -07:00
2026-07-04 08:00:15 +02:00
2026-06-21 21:27:57 +02:00
2026-06-21 11:52:46 +02:00
2026-07-16 03:36:20 -07:00
2026-07-17 04:14:39 +01:00
2026-07-04 01:56:21 +02:00
2026-07-16 20:37:45 -07:00
2026-06-22 05:11:25 +02:00
2026-07-16 02:02:09 -07:00
2026-07-13 01:47:43 -07:00
2026-07-15 03:45:37 -07:00
2026-07-15 17:41:54 +01:00
2026-07-11 21:29:40 +08:00
2026-07-15 22:40:00 -07:00
2026-06-20 20:13:24 +01:00
2026-07-14 23:41:24 -04:00
2026-07-15 13:37:53 -07:00
2026-07-16 11:23:01 -07:00
2026-06-20 22:23:30 +02:00
2026-07-08 08:01:00 -07:00
2026-06-21 22:19:54 +02:00
2026-07-11 01:09:51 -07:00
2026-07-16 10:46:44 -07:00
2026-07-17 06:11:20 +01:00
2026-07-11 01:09:51 -07:00
2026-07-16 08:35:10 -07:00
2026-07-12 04:28:22 +02:00
2026-07-16 00:38:44 -07:00
2026-07-16 04:53:43 -07:00
2026-07-16 17:53:09 -07:00
2026-06-21 11:15:14 +02:00
2026-07-16 08:18:44 -07:00
2026-07-14 22:13:37 -07:00
2026-07-13 03:40:53 -07:00
2026-07-16 03:13:44 -07:00
2026-07-16 03:21:08 -07:00
2026-07-16 01:55:33 -07:00
2026-07-13 17:53:10 -07:00
2026-07-15 00:26:41 -07:00
2026-07-16 00:39:08 -07:00
2026-07-14 05:41:24 -07:00
2026-07-15 06:14:54 -07:00
2026-07-12 09:45:30 +01:00
2026-07-11 01:09:51 -07:00
2026-06-23 13:34:20 +02:00
2026-06-24 10:22:56 +08:00
2026-06-23 14:01:29 +02:00
2026-07-16 13:51:18 -07:00
2026-06-19 14:00:38 -06:00
2026-06-16 02:55:19 +02:00
2026-07-15 20:02:53 +01:00
2026-07-17 03:06:39 +01:00
2026-07-10 21:59:59 +01:00
2026-07-14 09:35:58 -04:00
2026-07-16 11:38:19 -07:00
2026-07-16 15:53:00 +01:00
2026-07-16 18:48:20 -07:00
2026-07-12 10:42:07 +01:00
2026-06-16 20:37:36 +02:00
2026-07-15 00:34:38 -07:00
2026-06-21 22:26:44 +02:00
2026-07-05 08:00:23 -04:00
2026-07-10 17:47:32 -07:00
2026-07-16 11:16:29 -07:00
2026-07-15 09:52:01 +01:00
2026-07-10 02:06:53 -07:00
2026-07-16 04:50:41 -04:00
2026-07-11 01:09:51 -07:00
2026-07-11 09:44:19 -07:00
2026-07-15 10:05:02 -07:00
2026-07-15 13:37:53 -07:00
2026-07-16 09:03:15 -07:00
2026-07-11 17:27:01 -07:00
2026-07-14 09:59:20 -07:00
2026-07-16 17:12:50 -07:00
2026-07-07 10:22:07 +01:00
2026-07-11 01:09:51 -07:00
2026-07-16 09:45:47 -07:00
2026-07-11 07:28:20 -07:00
2026-06-21 21:53:58 +02:00
2026-07-16 17:22:28 -07:00
2026-07-16 02:00:15 -07:00
2026-07-04 01:56:21 +02:00
2026-07-15 04:07:46 -07:00
2026-06-24 22:54:00 +08:00
2026-07-15 21:29:48 -07:00
2026-06-22 18:44:21 +08:00
2026-07-11 06:15:41 -07:00
2026-07-01 21:21:31 -05:00
2026-07-11 14:50:37 -07:00
2026-07-15 22:40:39 -07:00
2026-07-12 10:42:07 +01:00
2026-07-03 17:58:15 -07:00
2026-06-07 12:14:09 +02:00
2026-07-16 14:11:33 -07:00
2026-07-11 16:38:37 -07:00
2026-07-11 16:38:37 -07:00
2026-07-11 06:15:41 -07:00
2026-06-21 18:56:26 +02:00
2026-07-14 16:05:14 -07:00
2026-07-16 00:39:08 -07:00
2026-07-15 06:14:54 -07:00
2026-07-11 01:09:51 -07:00
2026-07-05 14:19:13 -04:00
2026-07-16 00:39:08 -07:00
2026-07-16 16:47:30 -07:00
2026-06-10 15:37:15 +09:00
2026-06-07 01:11:24 +02:00
2026-07-16 05:26:00 -07:00
2026-07-11 01:03:30 +01:00
2026-06-18 22:39:43 +02:00
2026-06-18 23:26:21 +02:00
2026-06-18 23:33:44 +02:00
2026-07-16 11:45:31 -07:00
2026-07-16 00:39:08 -07:00
2026-06-23 14:01:29 +02:00
2026-07-16 18:48:20 -07:00
2026-07-12 10:42:07 +01:00
2026-06-20 03:12:16 +02:00
2026-07-05 14:25:57 -04:00
2026-07-11 12:48:27 +08:00
2026-07-16 17:20:47 -07:00
2026-06-20 02:02:37 +02:00
2026-07-12 17:26:04 -07:00
2026-07-16 22:18:16 -07:00
2026-07-16 05:58:53 -07:00
2026-07-14 18:08:33 -07:00
2026-07-15 06:14:54 -07:00
2026-06-20 02:31:40 +08:00
2026-07-15 08:15:13 -07:00
2026-06-21 22:19:54 +02:00
2026-07-14 22:14:11 -07:00
2026-07-05 12:53:06 -07:00
2026-07-13 13:38:19 +08:00
2026-07-10 13:33:20 -07:00
2026-07-11 06:15:41 -07:00
2026-06-21 18:43:05 +02:00
2026-07-05 11:12:55 -07:00
2026-07-16 19:02:52 -07:00
2026-07-15 05:03:43 +01:00
2026-06-21 21:32:17 +02:00
2026-07-05 12:16:41 -07:00
2026-07-11 06:15:41 -07:00
2026-06-20 15:43:04 +02:00
2026-07-10 10:42:36 +01:00
2026-07-14 00:21:36 -07:00
2026-07-12 10:42:07 +01:00