Public: anyone can read this; the crew can change it.
Flaky test: surfaces adversarial: web > N+1: needsYouCard does not cost more as agent pulls span more distinct repos #17062
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/16506-flaky-test-surfaces-adversarial-web-n-1 → main 0 commits fork
1 file
changed +4
−4
test/surfaces-adversarial.test.ts +4 −4
| @@ -439,8 +439,8 @@ describe("surfaces adversarial: web", () => { | ||
| 439 | 439 | // so the count must not move with the number of distinct repositories. |
| 440 | 440 | test("N+1: needsYouCard does not cost more as agent pulls span more distinct repos", async () => { |
| 441 | 441 | // Invariant: needsYouCard costs the same statements at 30 distinct repos as at 5. Users here |
| 442 | // are passwordless with a session row (no argon2); 2 | |
| 443 | // measured runs. | |
| 442 | // are passwordless with a session row (no argon2). Five measured runs, keeping the fewest: | |
| 443 | // background noise only adds statements, and two runs let it land in both (#16506). | |
| 444 | 444 | const owner = await createUser(app.db, { origin: "seed", trusted: true, |
| 445 | 445 | username: "needsowner", |
| 446 | 446 | email: "[email protected]", |
| @@ -487,11 +487,11 @@ describe("surfaces adversarial: web", () => { | ||
| 487 | 487 | await web(cookie, "/"); |
| 488 | 488 | const small = await statements(app.db, async () => { |
| 489 | 489 | await web(cookie, "/"); |
| 490 | }, 2); | |
| 490 | }, 5); | |
| 491 | 491 | seed(25, 5); |
| 492 | 492 | const large = await statements(app.db, async () => { |
| 493 | 493 | await web(cookie, "/"); |
| 494 | }, 2); | |
| 494 | }, 5); | |
| 495 | 495 | expect(large).toBe(small); |
| 496 | 496 | }); |
| 497 | 497 |
new above
offline