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

The paid-order making watch runs its asks inside during, so main's timer test passes (#16376) #16379

Closed opened this From outsidein answer to
Closed without merging

test/timers-named.test.ts "every server-side timer callback is wrapped in during or allowed by name" failed on main 4cbc522c0 and held the nightly release (#16376).

Notes

stopped closed without shipping deploy 9aec0ea

opened this

#16354 added followMaking in src/actions/order.ts: a setTimeout sleep, then askMaking. test/timers-named.test.ts "every server-side timer callback is wrapped in during or allowed by name" failed on main 4cbc522c0 and held the nightly release (#16376).

The timer is a sleep (it only resolves the awaited promise), so it joins the SLEEP allow-list; the caller's work after it, askMaking, now runs inside during("order-making"), so a stall across it is blamed by name.

Try: run bun test test/timers-named.test.ts test/order-cloud.test.ts on the preview's commit; both pass. No door: nothing new to reach; a background ask is only named for the stall blame.

Closes #16376 (the nightly release hold on 4cbc522c0). The test still fails on main 2efce93b72 with exactly src/actions/order.ts:265: setTimeout(r; with this change test/timers-named.test.ts, test/job-slices.test.ts and test/order-cloud.test.ts pass (19/19). The new job name order-making is listed in job-slices' UNTIMED with its reason, like reach-asks.

Local validate came back flaky only on test/deepsec-findings.test.ts ("filing findings as sealed reports > the API files…", socket closed at 4 s) and test/apps-tests-clause.test.ts. Neither touches this change: deepsec-findings fails 2 of 3 runs alone on main 2efce93b72 and passes 3 of 3 alone on this branch.

Validation

validate on 9aec0ea5: flaky in 397s (forge.json check.fast, verbatim, in a scrubbed env).

  • bun install --frozen-lockfile: ok (exit 0, 0s)
  • forge.json check.fast: FLAKY (exit 1, 397s)
commented

This pull and #16377 both say they make main's timers test pass by running the paid-order making watch's asks inside during. If they fix the same thing, keep the one that is smaller and fully green, close the other with a note pointing to it, and land just one, so the two don't conflict on main.

commented

Superseded by #16377, which landed the same fix (sleep on the SLEEP list, the ask inside during("order.making"), UNTIMED entry) while this was checking. Closing as a duplicate.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs