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

opened this

Merged 29h 46m ago, live in production

runtime/bun-1.4.5 → main 0 commits

  • Merged. runtime/bun-1.4.5 was merged into main as 24cd3eb.

Review

Sign in to review this change.
3 files changed +19 −3
Dockerfile +6 −2
@@ -6,8 +6,12 @@
66 # as a browser does. package.json's dependency list is empty, so there is
77 # nothing to install.
88 # 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
1115 # jq: the game box agent's tests run on check runners from this image, and skip without it (#17157).
1216 RUN apt-get update \
1317 && 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
1616 x64: "sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==",
1717 aarch64: "sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==",
1818 },
19 "1.4.5": {
20 x64: "sha512-IWX9BELoGHAUtMonkeSaNaZwXzRk+oDw6Mk+HBFXd3KHYIBNBsIGRupMZPcgNoDbJpLu6gAJjIoIVPZtt1aJ1g==",
21 aarch64: "sha512-4BXmsSKnjOrlGWqZV4x/oWa7AVoR+B6lCXddMzOAXBIm3t50eslg9wb66gmtW1AamEQ1l1CDvmmruysEhqOWMg==",
22 },
1923 };
2024
2125 /** Where the boot script is written on the machine. */
test/bun-pin.test.ts +9 −1
@@ -1,4 +1,5 @@
11 import { expect, test } from "bun:test";
2 import { BUN_INTEGRITY } from "../src/cloud/bun_install.ts";
23 import { readFileSync } from "node:fs";
34 import { BUN_PIN, requireBun, wrongBun } from "../src/kernel/bun_pin.ts";
45 import { BUN_VERSION } from "../src/cloud/machine.ts";
@@ -21,7 +22,14 @@ test("the pinned Bun and newer pass", () => {
2122 test("the machine and the image read the one pin", () => {
2223 expect(BUN_PIN).not.toBeNull();
2324 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!]));
2533 expect(JSON.parse(readFileSync("package.json", "utf8")).engines.bun).toBe(`>=${BUN_PIN}`);
2634 });
2735

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs