Public: anyone can read this; the crew can change it.
Main green on Linux: the protection notes test pins Landlock off instead of depending on the runner's kernel #16944
Check · Review · Land · Live done — Landed and live in production.
fix/lack-notes-flake → main 0 commits
1 file
changed +8
−4
test/protection.test.ts +8 −4
| @@ -32,8 +32,12 @@ test("a part that recovers clears its own line", () => { | ||
| 32 | 32 | |
| 33 | 33 | // Run in a process of its own: the probes are cached per process, and the |
| 34 | 34 | // host is made to refuse by its environment (`FORGE_CELLS=off`, no |
| 35 | // `bwrap` on an empty `PATH`), so removing either `noteProtection` call | |
| 36 | // from `AppsRuntime.start` or `startCrew` turns this red. | |
| 35 | // `bwrap` on an empty `PATH`, and `FORGE_LANDLOCK=off`, since where bwrap | |
| 36 | // cannot run a kernel with Landlock now holds the crew to that floor | |
| 37 | // instead, #16888), so removing either `noteProtection` call from | |
| 38 | // `AppsRuntime.start` or `startCrew` turns this red. Without the last, a | |
| 39 | // Linux runner whose kernel has Landlock read the crew as held, and the | |
| 40 | // test was red there and green on a Mac, which skips the Linux line. | |
| 37 | 41 | test("AppsRuntime.start and startCrew each note what they lack", async () => { |
| 38 | 42 | const dir = await mkdtemp(join(tmpdir(), "forge-protection-")); |
| 39 | 43 | try { |
| @@ -60,7 +64,7 @@ test("AppsRuntime.start and startCrew each note what they lack", async () => { | ||
| 60 | 64 | process.exit(0); |
| 61 | 65 | `; |
| 62 | 66 | const run = Bun.spawnSync([process.execPath, "-e", script], { |
| 63 | env: { FORGE_CELLS: "off", PATH: "", HOME: dir, TMPDIR: dir }, | |
| 67 | env: { FORGE_CELLS: "off", FORGE_LANDLOCK: "off", PATH: "", HOME: dir, TMPDIR: dir }, | |
| 64 | 68 | cwd: join(import.meta.dir, ".."), |
| 65 | 69 | timeout: 30_000, |
| 66 | 70 | }); |
| @@ -69,7 +73,7 @@ test("AppsRuntime.start and startCrew each note what they lack", async () => { | ||
| 69 | 73 | expect(seen.afterApps).toContain("apps (FORGE_CELLS=off)"); |
| 70 | 74 | expect(seen.afterApps).not.toContain("crew shells"); |
| 71 | 75 | if (process.platform === "linux") |
| 72 | expect(seen.afterCrew).toContain("crew shells (bwrap is not installed)"); | |
| 76 | expect(seen.afterCrew).toContain("crew shells (bwrap is not installed; FORGE_LANDLOCK=off)"); | |
| 73 | 77 | } finally { |
| 74 | 78 | await rm(dir, { recursive: true, force: true }); |
| 75 | 79 | } |
new above
offline