Public: anyone can read this; the crew can change it.
The forge image runs Bun 1.4.5, its security release (SQLite 3.54.1); the pin follows once it is live #17390
Merged 29h 46m ago, live in production
runtime/bun-1.4.5 → main 0 commits
3 files
changed +19
−3
Dockerfile +6 −2
| @@ -6,8 +6,12 @@ | ||
| 6 | 6 | # as a browser does. package.json's dependency list is empty, so there is |
| 7 | 7 | # nothing to install. |
| 8 | 8 | # The Bun version is chosen, not floated: a rebuild must not change the |
| 9 | # runtime unasked. 1.4.4 is the first with a per-thread bun:sqlite handle table (#12538). | |
| 10 | FROM oven/bun:1.4.4-debian | |
| 9 | # runtime unasked. 1.4.4 is the first with a per-thread bun:sqlite handle table (#12538); | |
| 10 | # 1.4.5 is its security release (SQLite 3.54.1, BoringSSL, lsquic, c-ares, llhttp). The image | |
| 11 | # moves first: `.bun-version` names the oldest Bun a check may run on, and checks run on the | |
| 12 | # image that is live, so the pin follows once this image is (a newer pin on an older image | |
| 13 | # stops every check at its preload). | |
| 14 | FROM oven/bun:1.4.5-debian | |
| 11 | 15 | # jq: the game box agent's tests run on check runners from this image, and skip without it (#17157). |
| 12 | 16 | RUN apt-get update \ |
| 13 | 17 | && apt-get -y upgrade \ |
src/cloud/bun_install.ts +4
| @@ -16,6 +16,10 @@ export const BUN_INTEGRITY: Readonly<Record<string, { readonly x64: string; read | ||
| 16 | 16 | x64: "sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==", |
| 17 | 17 | aarch64: "sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==", |
| 18 | 18 | }, |
| 19 | "1.4.5": { | |
| 20 | x64: "sha512-IWX9BELoGHAUtMonkeSaNaZwXzRk+oDw6Mk+HBFXd3KHYIBNBsIGRupMZPcgNoDbJpLu6gAJjIoIVPZtt1aJ1g==", | |
| 21 | aarch64: "sha512-4BXmsSKnjOrlGWqZV4x/oWa7AVoR+B6lCXddMzOAXBIm3t50eslg9wb66gmtW1AamEQ1l1CDvmmruysEhqOWMg==", | |
| 22 | }, | |
| 19 | 23 | }; |
| 20 | 24 | |
| 21 | 25 | /** Where the boot script is written on the machine. */ |
test/bun-pin.test.ts +9 −1
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | import { expect, test } from "bun:test"; |
| 2 | import { BUN_INTEGRITY } from "../src/cloud/bun_install.ts"; | |
| 2 | 3 | import { readFileSync } from "node:fs"; |
| 3 | 4 | import { BUN_PIN, requireBun, wrongBun } from "../src/kernel/bun_pin.ts"; |
| 4 | 5 | import { BUN_VERSION } from "../src/cloud/machine.ts"; |
| @@ -21,7 +22,14 @@ test("the pinned Bun and newer pass", () => { | ||
| 21 | 22 | test("the machine and the image read the one pin", () => { |
| 22 | 23 | expect(BUN_PIN).not.toBeNull(); |
| 23 | 24 | expect(BUN_VERSION).toBe(BUN_PIN as string); |
| 24 | expect(readFileSync("Dockerfile", "utf8")).toContain(`FROM oven/bun:${BUN_PIN}-debian`); | |
| 25 | // The image may lead the pin, never trail it: checks run on the live image, so a new Bun reaches | |
| 26 | // the image first and the pin follows once that image is live (a newer pin on an older image | |
| 27 | // stops every check at its preload). | |
| 28 | const image = /^FROM oven\/bun:(\d+\.\d+\.\d+)-debian$/m.exec(readFileSync("Dockerfile", "utf8"))?.[1]; | |
| 29 | expect(image).toBeDefined(); | |
| 30 | expect(wrongBun(image!, BUN_PIN)).toBeNull(); | |
| 31 | // Every Bun a machine may boot has its checksum pinned: the pin's and the image's. | |
| 32 | expect(Object.keys(BUN_INTEGRITY)).toEqual(expect.arrayContaining([BUN_PIN as string, image!])); | |
| 25 | 33 | expect(JSON.parse(readFileSync("package.json", "utf8")).engines.bun).toBe(`>=${BUN_PIN}`); |
| 26 | 34 | }); |
| 27 | 35 |
new above
offline