Public: anyone can read this; the crew can change it.
Full suite red: test/flow-cache.test.ts #12662
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/12643-full-suite-red-test-flow-cache-test-ts → main 2 commits fork
1 file
changed +17
−3
test/flow-cache.test.ts +17 −3
| @@ -12,12 +12,26 @@ import { flowCached, flowEtag, flowMaxAge, warmFlow, FLOW_TTL_MS, type FlowDeps | ||
| 12 | 12 | import { countRead, resetTelemetryReads, telemetryReadsFamily } from "../src/system/telemetry_reads.ts"; |
| 13 | 13 | import { flowSlices } from "../src/system/telemetry.ts"; |
| 14 | 14 | import { openMetrics } from "../src/metrics/openmetrics.ts"; |
| 15 | import { bigForge } from "./helpers/big-forge.ts"; | |
| 15 | import { bigForge, PRODUCTION } from "./helpers/big-forge.ts"; | |
| 16 | ||
| 17 | /** | |
| 18 | * A tenth of production: the cache and the slicing are about shape, not size, | |
| 19 | * and the full size took 23 s to write (#12643). | |
| 20 | */ | |
| 21 | const TENTH = { | |
| 22 | issues: PRODUCTION.issues / 10, | |
| 23 | pulls: PRODUCTION.pulls / 10, | |
| 24 | requested: PRODUCTION.requested / 10, | |
| 25 | runs: PRODUCTION.runs / 10, | |
| 26 | comments: PRODUCTION.comments / 10, | |
| 27 | events: PRODUCTION.events / 10, | |
| 28 | reviewComments: PRODUCTION.reviewComments / 10, | |
| 29 | }; | |
| 16 | 30 | |
| 17 | 31 | let dir = ""; |
| 18 | 32 | let big: App; |
| 19 | 33 | beforeAll(() => { |
| 20 | ({ app: big, dir } = bigForge()); | |
| 34 | ({ app: big, dir } = bigForge(TENTH)); | |
| 21 | 35 | }, 120_000); |
| 22 | 36 | afterAll(() => { |
| 23 | 37 | big.close(); |
| @@ -38,7 +52,7 @@ function manual() { | ||
| 38 | 52 | } |
| 39 | 53 | const owner = { kind: "owner" } as const; |
| 40 | 54 | |
| 41 | test("a warmed cache answers 50 reads from one object, with no slice left queued, on a production-sized forge", async () => { | |
| 55 | test("a warmed cache answers 50 reads from one object, with no slice left queued, on a large forge", async () => { | |
| 42 | 56 | const m = manual(); |
| 43 | 57 | const warming = warmFlow(big, m.deps, () => 1_000); |
| 44 | 58 | m.drain(); |
new above
offline