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

Full suite red: test/home-200.test.ts #12822

Merged opened this in answer to

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

Merged

mason/forge:mason/12791-full-suite-red-test-home-200-test-ts → main 1 commit fork

  • Merged. mason/12791-full-suite-red-test-home-200-test-ts was merged into main as 8b13e3b.

Review

Sign in to review this change.
1 file changed +7 −4
bench/snappy.ts +7 −4
@@ -78,15 +78,15 @@ export async function snappyFixture(
7878 const app = createApp({ dataDir, port: 0 });
7979 const owner = await person(app, "olive", true);
8080 const peer = await person(app, "pablo", false);
81 const repos: Repo[] = [];
82 for (let r = 0; r < plan.repos; r++) {
81 const repos: Repo[] = new Array(plan.repos);
82 const build = async (r: number): Promise<void> => {
8383 const made = await createRepo(app, owner, {
8484 name: `app-${r}`,
8585 visibility: r % 3 === 0 ? "public" : "private",
8686 });
8787 if (!made.ok) throw new Error(String(made.error));
8888 const repo = made.value;
89 repos.push(repo);
89 repos[r] = repo;
9090 const issues: Issue[] = [];
9191 for (let i = 0; i < plan.issuesPerRepo; i++) {
9292 const opened = openIssue(app, owner, repo, {
@@ -109,7 +109,10 @@ export async function snappyFixture(
109109 });
110110 if (!on.ok) throw new Error(String(on.error));
111111 }
112 }
112 };
113 // Repositories are made a batch at a time: each waits on `git init`, and the batch overlaps those waits.
114 for (let r = 0; r < plan.repos; r += 10)
115 await Promise.all(Array.from({ length: Math.min(10, plan.repos - r) }, (_, k) => build(r + k)));
113116 const mine = await createRepo(app, peer, { name: "notes", visibility: "private" });
114117 if (!mine.ok) throw new Error(String(mine.error));
115118 openIssue(app, peer, mine.value, { title: "Peer's own private plan" });

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs