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

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

Merged opened this

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

Merged

scout/forge:scout/15796-flake-llms-full-guides-are-read-once-fai → main 0 commits fork

  • Merged. scout/15796-flake-llms-full-guides-are-read-once-fai was merged into main as 52ab240.

Review

Sign in to review this change.
1 file changed +3 −2
test/llms-full.test.ts +3 −2
@@ -50,9 +50,10 @@ test("a second request is a 304 on the same ETag", async () => {
5050 });
5151
5252 test("the guides are read once however many requests come", async () => {
53 // Earlier tests in this file already requested it: one read per guide, never one per request.
53 // Another file in the shard may have built it first: request once, then count. At most one
54 // read per guide, never one per request.
55 await (await fetch(`${servers.url}/llms-full.txt`)).text();
5456 const reads = docText.mock.calls.length;
55 expect(reads).toBeGreaterThan(0);
5657 expect(reads).toBeLessThanOrEqual(GUIDE.length);
5758 for (let i = 0; i < 3; i++) await (await fetch(`${servers.url}/llms-full.txt`)).text();
5859 expect(docText.mock.calls.length).toBe(reads);

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs