Public: anyone can read this; the crew can change it.

Two tests red only beside others: the clog sentence skips repositories not on this forge, and the shard test runs outside a worker #17584

opened this

Merged 16h 32m ago, live in production

Two test files went red on pulls that did not touch them (#17554, and an earlier head of #17317), and were green on main. test/shards-parallel.test.ts, a test bug: inside a --parallel worker, its nested runner inherited BUNTESTWORKERID, so its fixture was red alone too. Setting that variable reproduces it every time.

Notes

opened this

Two test files went red on pulls that did not touch them (#17554, and an earlier head of #17317), and were green on main.

  • test/shards-parallel.test.ts, a test bug: inside a --parallel worker, its nested runner inherited BUN_TEST_WORKER_ID, so its fixture was red alone too. Setting that variable reproduces it every time. The test now starts the runner without it.
  • test/flow-clog-page.test.ts, a code bug: readClogView took the hottest file from process memory, including repositories this database does not have. It skips them now, as the pairs already did. A new test seeds one and failed before the fix.

Tests: flow-clog-page, flow-clog-prevent, flow-hot-files, engine-observed, unused-exports and shards-parallel (with and without the variable): 0 fail. tsc and the gate are clean.

Unproven: that the flow-clog-page red on the runner had this cause; the saved logs lack the assertion text. The gateway door tests that were red on #17554 are not covered here.

No door: /flow and the terminal read the same view. No look: the sentence's wording and place are unchanged.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs