Public: anyone can read this; the crew can change it.
A studio page spawns one git process per row to decide the word "shipped" #319
Check · Review · Land · Live done — Landed and live in production.
mason/forge:mason/285-a-studio-page-spawns-one-git-process-per → main 1 commit fork
13 files
changed +158
−18
docs/STUDIO.md +4 −1
| @@ -42,7 +42,10 @@ state, and once it is over, from what it produced: a pull, judged by | ||
| 42 | 42 | (`checkRunWord`), closed without a merge is *stopped*, and merged is |
| 43 | 43 | *shipped* only once production's live commit is at or past the one the |
| 44 | 44 | merge carried (an ancestry check in git, not equality — a later merge |
| 45 | already deploying it still counts). Between a merge and production | |
| 45 | already deploying it still counts). That check is one `git rev-list` of | |
| 46 | production's commit per repository per page, memoised on the page's | |
| 47 | `WordCtx` (`servingHistory`) and read by every row — never one git process | |
| 48 | per row, and never kept past the render. Between a merge and production | |
| 46 | 49 | catching up, the word is its own honest one — *working* while production |
| 47 | 50 | deploys it, *stopped* if that deploy failed, *waiting* if production has |
| 48 | 51 | not started on it yet — and it becomes *shipped* on the next render or |
src/git/merge.ts +14
| @@ -173,6 +173,20 @@ export async function mergeBase( | ||
| 173 | 173 | return result.ok ? result.value.trim() : undefined; |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | /** | |
| 177 | * Every commit reachable from `oid`, itself included — the whole ancestry in | |
| 178 | * one spawn, so a page asking "is this at or behind that" of many commits | |
| 179 | * reads a set instead of running `mergeBase` once per commit. | |
| 180 | */ | |
| 181 | export async function ancestorsOf( | |
| 182 | dir: string, | |
| 183 | oid: string, | |
| 184 | ): Promise<ReadonlySet<string> | undefined> { | |
| 185 | if (!isSafeOid(oid)) return undefined; | |
| 186 | const result = await runGit(["rev-list", oid], { cwd: dir }); | |
| 187 | return result.ok ? new Set(result.value.split("\n")) : undefined; | |
| 188 | } | |
| 189 | ||
| 176 | 190 | /** Count commits reachable from head but not base (the PR's commit count). */ |
| 177 | 191 | export async function aheadCount( |
| 178 | 192 | dir: string, |
src/web/pages/studio.ts +6 −1
| @@ -10,4 +10,9 @@ | ||
| 10 | 10 | |
| 11 | 11 | export { decisionsFor } from "../studio/asks.ts"; |
| 12 | 12 | export { pendingLeans, withLikely } from "../studio/leans.ts"; |
| 13 | export { pullWord, runWord, type WordCtx } from "../studio/words.ts"; | |
| 13 | export { | |
| 14 | pullWord, | |
| 15 | runWord, | |
| 16 | servingHistory, | |
| 17 | type WordCtx, | |
| 18 | } from "../studio/words.ts"; |
src/web/studio/app.ts +2 −1
| @@ -58,7 +58,7 @@ import { appPanels } from "./previews.ts"; | ||
| 58 | 58 | import { stopForm } from "./run.ts"; |
| 59 | 59 | import { tellWord } from "./tell.ts"; |
| 60 | 60 | import { voiceFor, type Actor } from "./voice.ts"; |
| 61 | import { pullWord, runWord, wordBadge, type WordCtx } from "./words.ts"; | |
| 61 | import { pullWord, runWord, servingHistory, wordBadge, type WordCtx } from "./words.ts"; | |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * The week's decisions in one line: how many, how many the decider took |
| @@ -164,6 +164,7 @@ export async function studioApp( | ||
| 164 | 164 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 165 | 165 | runtime: appsRuntime(ctx.app), |
| 166 | 166 | record, |
| 167 | history: servingHistory(), | |
| 167 | 168 | }; |
| 168 | 169 | const crew = listCrewRoles(db, repo.id); |
| 169 | 170 | const builders = crew.filter((c) => c.role === "builder").map((c) => c.agent); |
src/web/studio/change.ts +2 −1
| @@ -38,7 +38,7 @@ import { | ||
| 38 | 38 | decisionsFor, |
| 39 | 39 | type Decision, |
| 40 | 40 | } from "./asks.ts"; |
| 41 | import { pullWord, wordBadge, type WordCtx } from "./words.ts"; | |
| 41 | import { pullWord, servingHistory, wordBadge, type WordCtx } from "./words.ts"; | |
| 42 | 42 | |
| 43 | 43 | /** What a conflicted change's own page says: the base it no longer merges |
| 44 | 44 | * into, the first few files (bounded, so a huge conflict never floods the |
| @@ -76,6 +76,7 @@ export async function studioPull( | ||
| 76 | 76 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 77 | 77 | runtime: appsRuntime(ctx.app), |
| 78 | 78 | record, |
| 79 | history: servingHistory(), | |
| 79 | 80 | }; |
| 80 | 81 | const { word, note: checkNote } = await pullWord(wordCtx, pull); |
| 81 | 82 | // Whether this change still merges into its base is asked here, on its own |
src/web/studio/home.ts +10 −2
| @@ -27,7 +27,7 @@ import { withLikely } from "./leans.ts"; | ||
| 27 | 27 | import { changeHref } from "./nouns.ts"; |
| 28 | 28 | import { stopForm } from "./run.ts"; |
| 29 | 29 | import { productionFactsForRepos, shelfRows } from "./shelf.ts"; |
| 30 | import { pullWord, wordBadge, type WordCtx } from "./words.ts"; | |
| 30 | import { pullWord, servingHistory, wordBadge, type WordCtx } from "./words.ts"; | |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * The home in the studio: what asks you first, then your apps as a shelf of |
| @@ -48,7 +48,14 @@ export async function studioHome(ctx: Ctx, user: User): Promise<Response> { | ||
| 48 | 48 | // Read once, shown twice again: a shipped or failed deploy is a row's own |
| 49 | 49 | // word, and — when nothing is running and no change waits — the rail's. |
| 50 | 50 | const productionFacts = productionFactsForRepos(ctx, appRepos); |
| 51 | const appRows = await shelfRows(ctx, appRepos, { decisions, productionFacts }); | |
| 51 | // One memo of production's history for every word on this page: the | |
| 52 | // shelf's rows and the Now list below ask it once per repository. | |
| 53 | const history = servingHistory(); | |
| 54 | const appRows = await shelfRows(ctx, appRepos, { | |
| 55 | decisions, | |
| 56 | productionFacts, | |
| 57 | history, | |
| 58 | }); | |
| 52 | 59 | |
| 53 | 60 | // What the crew cost today across every app on the shelf, and how many |
| 54 | 61 | // are paused at their ceiling right now — the owner's first question at |
| @@ -179,6 +186,7 @@ export async function studioHome(ctx: Ctx, user: User): Promise<Response> { | ||
| 179 | 186 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 180 | 187 | runtime, |
| 181 | 188 | record: records.get(repo.id), |
| 189 | history, | |
| 182 | 190 | }, |
| 183 | 191 | pull, |
| 184 | 192 | ); |
src/web/studio/lists.ts +4
| @@ -49,6 +49,7 @@ import { | ||
| 49 | 49 | runWord, |
| 50 | 50 | wordBadge, |
| 51 | 51 | type Word, |
| 52 | servingHistory, | |
| 52 | 53 | type WordCtx, |
| 53 | 54 | } from "./words.ts"; |
| 54 | 55 | |
| @@ -148,6 +149,7 @@ export async function studioTells( | ||
| 148 | 149 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 149 | 150 | runtime: appsRuntime(ctx.app), |
| 150 | 151 | record, |
| 152 | history: servingHistory(), | |
| 151 | 153 | }; |
| 152 | 154 | const closingPulls = openPullsClosing(db, repo.id); |
| 153 | 155 | const words = await Promise.all( |
| @@ -243,6 +245,7 @@ export async function studioChanges( | ||
| 243 | 245 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 244 | 246 | runtime: appsRuntime(ctx.app), |
| 245 | 247 | record, |
| 248 | history: servingHistory(), | |
| 246 | 249 | }; |
| 247 | 250 | const words = await Promise.all( |
| 248 | 251 | fetched.map((pull) => pullWord(wordCtx, pull)), |
| @@ -357,6 +360,7 @@ export async function studioRuns( | ||
| 357 | 360 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 358 | 361 | runtime: appsRuntime(ctx.app), |
| 359 | 362 | record, |
| 363 | history: servingHistory(), | |
| 360 | 364 | }; |
| 361 | 365 | const actors = actorsFor(ctx, fetched); |
| 362 | 366 | const issues = issuesFor(ctx, fetched); |
src/web/studio/run.ts +2 −1
| @@ -31,7 +31,7 @@ import { costText, durationText, runTitle } from "../pages/runs.ts"; | ||
| 31 | 31 | import { logBox, runVoice, RUN_TRANSCRIPT_CAP } from "./log.ts"; |
| 32 | 32 | import { changeHref, tellHref } from "./nouns.ts"; |
| 33 | 33 | import { unnamedRun, voiceFor, type Actor } from "./voice.ts"; |
| 34 | import { runWord, wordBadge, type WordCtx } from "./words.ts"; | |
| 34 | import { runWord, servingHistory, wordBadge, type WordCtx } from "./words.ts"; | |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * The one control a live run has: a person who can write here stops a |
| @@ -94,6 +94,7 @@ export async function studioRun( | ||
| 94 | 94 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 95 | 95 | runtime: appsRuntime(ctx.app), |
| 96 | 96 | record: getAppByRepo(db, repo.id), |
| 97 | history: servingHistory(), | |
| 97 | 98 | }; |
| 98 | 99 | const { word } = await runWord(wordCtx, run); |
| 99 | 100 | const unfinished = !isTerminal(run.state); |
src/web/studio/shelf.ts +7
| @@ -47,7 +47,9 @@ import { | ||
| 47 | 47 | productionFact, |
| 48 | 48 | pullWord, |
| 49 | 49 | runWord, |
| 50 | servingHistory, | |
| 50 | 51 | type ProductionFact, |
| 52 | type ServingHistory, | |
| 51 | 53 | type WordCtx, |
| 52 | 54 | } from "./words.ts"; |
| 53 | 55 | |
| @@ -58,6 +60,9 @@ export interface ShelfReads { | ||
| 58 | 60 | /** Production's own fact for each app — a deploy that just landed or just |
| 59 | 61 | * failed. The home rail reads the same map for its own rows. */ |
| 60 | 62 | readonly productionFacts?: ReadonlyMap<string, ProductionFact> | undefined; |
| 63 | /** The page's memo of production's history, when the page words more | |
| 64 | * than the shelf — the home's own rows ask the same question. */ | |
| 65 | readonly history?: ServingHistory | undefined; | |
| 61 | 66 | } |
| 62 | 67 | |
| 63 | 68 | /** |
| @@ -109,6 +114,7 @@ export async function shelfRows( | ||
| 109 | 114 | const db = ctx.app.db; |
| 110 | 115 | const user = ctx.auth.user; |
| 111 | 116 | const runtime = appsRuntime(ctx.app); |
| 117 | const history = reads.history ?? servingHistory(); | |
| 112 | 118 | const records = appsForRepos( |
| 113 | 119 | db, |
| 114 | 120 | repos.map((r) => r.id), |
| @@ -177,6 +183,7 @@ export async function shelfRows( | ||
| 177 | 183 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 178 | 184 | runtime, |
| 179 | 185 | record, |
| 186 | history, | |
| 180 | 187 | }; |
| 181 | 188 | const agentWord = |
| 182 | 189 | useOpenPull || latest === undefined |
src/web/studio/tell.ts +2
| @@ -43,6 +43,7 @@ import { | ||
| 43 | 43 | runWord, |
| 44 | 44 | wordBadge, |
| 45 | 45 | type Word, |
| 46 | servingHistory, | |
| 46 | 47 | type WordCtx, |
| 47 | 48 | } from "./words.ts"; |
| 48 | 49 | |
| @@ -232,6 +233,7 @@ export async function studioTell( | ||
| 232 | 233 | dir: repoDir(ctx.app.reposRoot, repo.ownerName, repo.name), |
| 233 | 234 | runtime: appsRuntime(ctx.app), |
| 234 | 235 | record: getAppByRepo(db, repo.id), |
| 236 | history: servingHistory(), | |
| 235 | 237 | }; |
| 236 | 238 | const [wordInfo, runsCard, closingCard] = await Promise.all([ |
| 237 | 239 | direction ? undefined : tellWord(wordCtx, repo, issue, closingPull), |
src/web/studio/words.ts +34 −8
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | import type { Database } from "bun:sqlite"; |
| 12 | import { mergeBase } from "../../git/merge.ts"; | |
| 12 | import { ancestorsOf } from "../../git/merge.ts"; | |
| 13 | 13 | import type { AppsRuntime, EnvStatus } from "../../apps/runtime.ts"; |
| 14 | 14 | import type { AppRecord } from "../../core/apps.ts"; |
| 15 | 15 | import { getIssueById } from "../../core/issues.ts"; |
| @@ -35,17 +35,36 @@ export type Word = | ||
| 35 | 35 | | "done" |
| 36 | 36 | | "cancelled"; |
| 37 | 37 | |
| 38 | /** | |
| 39 | * Production's history as one page has asked it: the ancestry of each | |
| 40 | * distinct (git directory, production commit) it met, read from git once | |
| 41 | * and shared by every row after — a page of N merged changes is one spawn | |
| 42 | * per repository, not N. Made fresh for each render (`servingHistory`) and | |
| 43 | * dropped with it, so a deploy that lands is seen on the very next page. | |
| 44 | */ | |
| 45 | export type ServingHistory = Map< | |
| 46 | string, | |
| 47 | Promise<ReadonlySet<string> | undefined> | |
| 48 | >; | |
| 49 | ||
| 50 | /** An empty memo for one page's render. */ | |
| 51 | export function servingHistory(): ServingHistory { | |
| 52 | return new Map(); | |
| 53 | } | |
| 54 | ||
| 38 | 55 | /** |
| 39 | 56 | * Everything the word functions below need to see production: the repo's |
| 40 | * git directory (an ancestry check reads it), and the runtime plus the | |
| 41 | * app record, when the repository runs one. Built once per page and | |
| 42 | * threaded through — never a second way to ask what is serving. | |
| 57 | * git directory (an ancestry check reads it), the runtime plus the app | |
| 58 | * record, when the repository runs one, and the page's memo of what | |
| 59 | * production's history holds. Built once per page and threaded through — | |
| 60 | * never a second way to ask what is serving. | |
| 43 | 61 | */ |
| 44 | 62 | export interface WordCtx { |
| 45 | 63 | readonly db: Database; |
| 46 | 64 | readonly dir: string; |
| 47 | 65 | readonly runtime: AppsRuntime | undefined; |
| 48 | 66 | readonly record: AppRecord | undefined; |
| 67 | readonly history: ServingHistory; | |
| 49 | 68 | } |
| 50 | 69 | |
| 51 | 70 | /** |
| @@ -64,15 +83,22 @@ function pullFromRun(db: Database, run: Run): Pull | undefined { | ||
| 64 | 83 | return pullForBranch(db, run.repoId, run.branch); |
| 65 | 84 | } |
| 66 | 85 | |
| 67 | /** Whether production is serving this commit, or something later than it. */ | |
| 86 | /** Whether production is serving this commit, or something later than it: | |
| 87 | * ancestry, never equality, asked of git once per page and repository. */ | |
| 68 | 88 | async function caughtUp( |
| 69 | dir: string, | |
| 89 | ctx: WordCtx, | |
| 70 | 90 | production: EnvStatus | undefined, |
| 71 | 91 | commitOid: string, |
| 72 | 92 | ): Promise<boolean> { |
| 73 | 93 | if (production === undefined || production.commitOid === "") return false; |
| 74 | 94 | if (production.commitOid === commitOid) return true; |
| 75 | return (await mergeBase(dir, commitOid, production.commitOid)) === commitOid; | |
| 95 | const key = `${ctx.dir}\0${production.commitOid}`; | |
| 96 | let ancestry = ctx.history.get(key); | |
| 97 | if (ancestry === undefined) { | |
| 98 | ancestry = ancestorsOf(ctx.dir, production.commitOid); | |
| 99 | ctx.history.set(key, ancestry); | |
| 100 | } | |
| 101 | return (await ancestry)?.has(commitOid) ?? false; | |
| 76 | 102 | } |
| 77 | 103 | |
| 78 | 104 | /** A merged pull production has not caught up to yet: its own honest word. */ |
| @@ -149,7 +175,7 @@ export async function pullWord( | ||
| 149 | 175 | const production = ctx.runtime |
| 150 | 176 | .status(ctx.record) |
| 151 | 177 | .find((e) => e.env === "production"); |
| 152 | if (await caughtUp(ctx.dir, production, commitOid)) | |
| 178 | if (await caughtUp(ctx, production, commitOid)) | |
| 153 | 179 | return { word: "shipped", note: "production is serving it" }; |
| 154 | 180 | return mergedPullWord(production, commitOid); |
| 155 | 181 | } |
test/apps.test.ts +2 −1
| @@ -48,7 +48,7 @@ import { | ||
| 48 | 48 | STOPPED_SUMMARY, |
| 49 | 49 | type Run, |
| 50 | 50 | } from "../src/core/runs.ts"; |
| 51 | import { runWord } from "../src/web/studio/words.ts"; | |
| 51 | import { runWord, servingHistory } from "../src/web/studio/words.ts"; | |
| 52 | 52 | import { createToken } from "../src/core/tokens.ts"; |
| 53 | 53 | import { createUser, type User } from "../src/core/users.ts"; |
| 54 | 54 | import { serve, type Servers } from "../src/http/server.ts"; |
| @@ -1929,6 +1929,7 @@ describe("the forge's own restart never reads as this deploy's failure (issue #2 | ||
| 1929 | 1929 | dir: repoDir(app.reposRoot, repo.ownerName, repo.name), |
| 1930 | 1930 | runtime: undefined, |
| 1931 | 1931 | record: undefined, |
| 1932 | history: servingHistory(), | |
| 1932 | 1933 | }, |
| 1933 | 1934 | finished!, |
| 1934 | 1935 | ); |
test/studio.test.ts +69 −2
| @@ -2,7 +2,7 @@ | ||
| 2 | 2 | * The studio: apps as the unit, three verbs, and a switch to dev. The same |
| 3 | 3 | * URLs answer in both modes; the cookie decides which face they show. |
| 4 | 4 | */ |
| 5 | import { afterAll, beforeAll, describe, expect, test } from "bun:test"; | |
| 5 | import { afterAll, beforeAll, describe, expect, spyOn, test } from "bun:test"; | |
| 6 | 6 | import { mkdirSync, writeFileSync } from "node:fs"; |
| 7 | 7 | import { mkdtemp, rm } from "node:fs/promises"; |
| 8 | 8 | import { tmpdir } from "node:os"; |
| @@ -49,7 +49,13 @@ import { createUser, getUserByName, type User } from "../src/core/users.ts"; | ||
| 49 | 49 | import type { Decider } from "../src/crew/decide.ts"; |
| 50 | 50 | import { CHECK_FAILED_LIMIT } from "../src/crew/dispatch.ts"; |
| 51 | 51 | import { serve, type Servers } from "../src/http/server.ts"; |
| 52 | import { pendingLeans, pullWord, runWord, type WordCtx } from "../src/web/pages/studio.ts"; | |
| 52 | import { | |
| 53 | pendingLeans, | |
| 54 | pullWord, | |
| 55 | runWord, | |
| 56 | servingHistory, | |
| 57 | type WordCtx, | |
| 58 | } from "../src/web/pages/studio.ts"; | |
| 53 | 59 | import { servedPhrase } from "../src/web/ui.ts"; |
| 54 | 60 | import { repoDir } from "../src/git/repos.ts"; |
| 55 | 61 | import { appendRunLog } from "../src/runs/log.ts"; |
| @@ -3480,6 +3486,7 @@ describe("words come from facts, not from run.summary", () => { | ||
| 3480 | 3486 | dir: repoDir(app.reposRoot, repo.ownerName, repo.name), |
| 3481 | 3487 | runtime, |
| 3482 | 3488 | record, |
| 3489 | history: servingHistory(), | |
| 3483 | 3490 | }; |
| 3484 | 3491 | }); |
| 3485 | 3492 | |
| @@ -3520,6 +3527,66 @@ describe("words come from facts, not from run.summary", () => { | ||
| 3520 | 3527 | expect(now.word).toBe("shipped"); |
| 3521 | 3528 | }); |
| 3522 | 3529 | |
| 3530 | test("a page of merged pulls asks git about production once, however many rows (#285)", async () => { | |
| 3531 | const pulls: Pull[] = []; | |
| 3532 | for (let i = 0; i < 5; i++) { | |
| 3533 | const branch = await commitToBranch(app, alice, repo, { | |
| 3534 | branch: `feature/many-${i}`, | |
| 3535 | base: "main", | |
| 3536 | message: `Many ${i}`, | |
| 3537 | files: [{ path: `MANY-${i}.md`, content: `${i}\n` }], | |
| 3538 | }); | |
| 3539 | if (!branch.ok) throw new Error(JSON.stringify(branch.error)); | |
| 3540 | const opened = await openPull(app, alice, repo, { | |
| 3541 | title: `Many ${i}`, | |
| 3542 | body: "", | |
| 3543 | baseBranch: "main", | |
| 3544 | headBranch: `feature/many-${i}`, | |
| 3545 | }); | |
| 3546 | if (!opened.ok) throw new Error(String(opened.error)); | |
| 3547 | const merged = await mergePull(app, alice, repo, opened.value, "squash"); | |
| 3548 | if (!merged.ok) throw new Error(String(merged.error)); | |
| 3549 | pulls.push(getPull(app.db, repo.id, opened.value.number)!); | |
| 3550 | } | |
| 3551 | ||
| 3552 | // Every git process spawned while one page's words are decided. | |
| 3553 | const spawned: string[] = []; | |
| 3554 | const original = Bun.spawn.bind(Bun); | |
| 3555 | const spy = spyOn(Bun, "spawn").mockImplementation((( | |
| 3556 | cmd: string[], | |
| 3557 | options: never, | |
| 3558 | ) => { | |
| 3559 | if (cmd[0] === "git") spawned.push(cmd.slice(1).join(" ")); | |
| 3560 | return original(cmd, options); | |
| 3561 | }) as unknown as typeof Bun.spawn); | |
| 3562 | const wordsOfOnePage = async (): Promise<string[]> => { | |
| 3563 | const page: WordCtx = { ...wordCtx, history: servingHistory() }; | |
| 3564 | const words = await Promise.all(pulls.map((p) => pullWord(page, p))); | |
| 3565 | return words.map((w) => w.word); | |
| 3566 | }; | |
| 3567 | try { | |
| 3568 | // Production at the second merge: that one and the one before it are | |
| 3569 | // shipped (ancestry, not equality), the three after it are not. | |
| 3570 | put({ commitOid: pulls[1]!.mergedOid! }); | |
| 3571 | expect(await wordsOfOnePage()).toEqual([ | |
| 3572 | "shipped", | |
| 3573 | "shipped", | |
| 3574 | "waiting", | |
| 3575 | "waiting", | |
| 3576 | "waiting", | |
| 3577 | ]); | |
| 3578 | expect(spawned).toHaveLength(1); | |
| 3579 | ||
| 3580 | // A new page is a new question: the deploy that just landed is seen. | |
| 3581 | spawned.length = 0; | |
| 3582 | put({ commitOid: pulls[4]!.mergedOid! }); | |
| 3583 | expect(new Set(await wordsOfOnePage())).toEqual(new Set(["shipped"])); | |
| 3584 | expect(spawned).toHaveLength(1); | |
| 3585 | } finally { | |
| 3586 | spy.mockRestore(); | |
| 3587 | } | |
| 3588 | }); | |
| 3589 | ||
| 3523 | 3590 | test('an agent run that opened no pull and pushed nothing is not shipped', async () => { |
| 3524 | 3591 | const told = await openIssue(app, alice, repo, { |
| 3525 | 3592 | title: "Write a plan", |
new above
offline