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

Full suite red: test/flow-cache.test.ts #12662

Merged opened this in answer to

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

Merged

scout/forge:scout/12643-full-suite-red-test-flow-cache-test-ts → main 2 commits fork

  • Merged. scout/12643-full-suite-red-test-flow-cache-test-ts was merged into main as 8701767.

Review

Sign in to review this change.
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
1212 import { countRead, resetTelemetryReads, telemetryReadsFamily } from "../src/system/telemetry_reads.ts";
1313 import { flowSlices } from "../src/system/telemetry.ts";
1414 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 };
1630
1731 let dir = "";
1832 let big: App;
1933 beforeAll(() => {
20 ({ app: big, dir } = bigForge());
34 ({ app: big, dir } = bigForge(TENTH));
2135 }, 120_000);
2236 afterAll(() => {
2337 big.close();
@@ -38,7 +52,7 @@ function manual() {
3852 }
3953 const owner = { kind: "owner" } as const;
4054
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 () => {
4256 const m = manual();
4357 const warming = warmFlow(big, m.deps, () => 1_000);
4458 m.drain();

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs