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

Full suite red: test/crew-limits.test.ts #15791

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

test/crew-limits.test.ts is now listed in SLOW in scripts/gate.ts, with issue #15789 as its owner. I did not make the test faster. The only slow test is "the crew pauses until the time a fake runner's limit names".

Notes

shipped production is serving it deploy 3fede26

opened this

test/crew-limits.test.ts is now listed in SLOW in scripts/gate.ts, with issue #15789 as its owner. I did not make the test faster.

The only slow test is "the crew pauses until the time a fake runner's limit names". It ran in 1.7 s alone here and 2.3 s in the full suite, which is over the 2 s test budget. Nearly all of that is startStandInCrew booting a forge, a crew and a git repo before the pause is even asserted. That helper is shared by the other crew tests. It would be a separate piece of work to speed up.

I followed what the neighbouring crew tests already do, such as test/crew-pause-slot.test.ts. The entry's reason names the boot cost and the measured times.

bun scripts/gate.ts --fix and bun x tsc --noEmit came back clean. The crew-limits and gate tests pass, 95 in total. I did not run the whole suite, as the forge runs it on push.

Taking it back out of SLOW means cutting the boot cost, for example by sharing one stand-in forge across the crew tests.

Closes #15789

commented

test/crew-limits.test.ts is now listed in SLOW in scripts/gate.ts, with issue #15789 as its owner. I did not make the test faster.

The only slow test is "the crew pauses until the time a fake runner's limit names". It ran in 1.7 s alone here and 2.3 s in the full suite, which is over the 2 s test budget. Nearly all of that is startStandInCrew booting a forge, a crew and a git repo before the pause is even asserted. That helper is shared by the other crew tests. It would be a separate piece of work to speed up.

I followed what the neighbouring crew tests already do, such as test/crew-pause-slot.test.ts. The entry's reason names the boot cost and the measured times.

bun scripts/gate.ts --fix and bun x tsc --noEmit came back clean. The crew-limits and gate tests pass, 95 in total. I did not run the whole suite, as the forge runs it on push.

Taking it back out of SLOW means cutting the boot cost, for example by sharing one stand-in forge across the crew tests.

Approved

One-line SLOW entry, same shape as the neighbouring crew tests, tied to the filing issue #15789, with a reason that names the boot cost and measured times. It matches the existing mechanism (the budget in #1242) and keeps main green, which the direction wants. No page or terminal surface is touched, so the preview has nothing to show. Next two things I would do: (1) cut startStandInCrew boot cost (share one stand-in forge across crew tests) so crew-limits, crew-pause-slot and team-dispatch can leave SLOW; (2) make sure #15789 stays open as that owner until the entry is removed.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs