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

Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:32cb1ovnai was degraded 56 minutes today: trevato/forge: "a big repository over smart http > --filter=blob:none over protocol v2 clones and checks out" failed on… #4865

Merged opened this

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

Merged

mason/forge:mason/4785-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork 1 thread · 1 unresolved

  • Merged. mason/4785-sentinel-shared-01m23vygyffx5hg2f5vm8r74 was merged into main as 66e3b2d.

Review

Sign in to review this change.
1 file changed +7 −3
test/big-clone.test.ts +7 −3
@@ -32,6 +32,10 @@ import { unwrap } from "../src/kernel/result.ts";
3232 import { seedAdmin } from "./helpers/admin.ts";
3333 import { gitClientEnv } from "./helpers/git-client.ts";
3434
35 /**

The comment is accurate and short. It is the only place that explains why the whole Run is matched, so keep it.

36 * One git client run. A clone expected to succeed is matched whole
37 * (`toMatchObject({ code: 0 })`), so a red prints git's stderr, not a bare 128.
38 */
3539 interface Run {
3640 code: number;
3741 out: string;
@@ -291,7 +295,7 @@ describe("a big repository over smart http", () => {
291295 link = (body) => pausing(body, 64 * 1024, stall.windowMs / 3);
292296 try {
293297 const run = await git(["clone", "-q", base, "paused"], work);
294 expect(run.code).toBe(0);
298 expect(run).toMatchObject({ code: 0 });
295299 } finally {
296300 fetchOptions = PATIENT;
297301 link = (body) => body;
@@ -306,7 +310,7 @@ describe("a big repository over smart http", () => {
306310 work,
307311 );
308312 expect(run.err).not.toContain("filtering not recognized");
309 expect(run.code).toBe(0);
313 expect(run).toMatchObject({ code: 0 });
310314 const clone = join(work, dir);
311315 const bigOid = await ok(["rev-parse", "HEAD:base.step"], clone);
312316 const readmeOid = await ok(["rev-parse", "HEAD:README.md"], clone);
@@ -327,7 +331,7 @@ describe("a big repository over smart http", () => {
327331 work,
328332 );
329333 expect(run.err).not.toContain("filtering not recognized");
330 expect(run.code).toBe(0);
334 expect(run).toMatchObject({ code: 0 });
331335 expect(await Bun.file(join(work, dir, "README.md")).text()).toBe("# arm\n");
332336 expect((await Bun.file(join(work, dir, "base.step")).arrayBuffer()).byteLength).toBe(BIG);
333337 }, 180_000);

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs