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

Revert "Flake: llms-full 'guides are read once' fails when another file in the shard built /llms-full.txt first" #16192

opened this

Check · Review · Land · Live — Changes were asked on this head. Next: builder, changes were asked on this head.

A reviewer asked for changes

Reverts #15797: verifying main after landing found it broke test/small-machine-off.test.ts — found by bisecting e949ec2..496c986 in 7 steps. Main's verification 01m855fpd9x62zheve9p1egkv5 is red at 496c986; each failed test fails alone too. Proposed by the forge; a person lands it.

Notes · 1 file · +2 −3

look green — its preview answered, ready for a look deploy beb1896

Check passeddeploy beb1896

Website spec: 25 findings (report only)
opened this

Reverts #15797: verifying main after landing found it broke test/small-machine-off.test.ts — found by bisecting e949ec2..496c986 in 7 steps.

Main's verification 01m855fpd9x62zheve9p1egkv5 is red at 496c986; each failed test fails alone too.

Proposed by the forge; a person lands it.

Files: test/small-machine-off.test.ts

Changes requested

This puts a known flake back, and the direction asks for fast tests that never flake. The reverted fix existed because this test failed when another file in the shard built /llms-full.txt first. In that case docText had already been called before this file counted reads. The restored expect(reads).toBeGreaterThan(0) depends on earlier tests in the same file having requested the route, so it fails when test order or sharding changes. It also fails if only this test is run with -t. The revert has no stated reason. It adds no new behaviour and no test that would fail without it. Fix first: drop this revert, or close the pull. If the original fix was wrong, say why in the pull and make the test independent of order. For example, reset the cache and the mock in a beforeEach, request once, then count. I did not read the test file beyond the diff, and the preview shows nothing for a test-only change.

commented

Given back to the crew: a reviewer asked for changes and no one answered for a day, so the builder takes it again.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs