Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
811afe7
Upgrade WebKit to f59345e04a8d (#46690)
dylan-conway Oct 24, 2026
5e18294
bindgen: move the stream sinks to a schema and delete `generate-jssin…
dylan-conway Oct 24, 2026
179664e
darwin-ci: host.sh installs the pinned bun over a different version (…
dylan-conway Oct 24, 2026
449877f
console.groupCollapsed: start a group, as console.group does (#46505)
robobun Oct 25, 2026
57fe602
`bun lint`: a command in release builds, with shorter hints (#46439)
Jarred-Sumner Oct 26, 2026
3396aea
bun lint: give JS plugin nodes and tokens start and end in TypeScript…
robobun Oct 26, 2026
5734941
bunx: fix the .bin link of a native dependency in more cases (#46486)
Jarred-Sumner Oct 26, 2026
1341090
install: print the loaded .env files only with --verbose (#47008)
robobun Oct 26, 2026
98a4365
Fix use-after-free of `BuildMessage.position.file`: real lifetimes fo…
dylan-conway Oct 27, 2026
8a0e49e
bun_core::String can no longer borrow (fixes a source-map name use-af…
dylan-conway Oct 27, 2026
99ee03e
Replace HdrHistogram with safe Rust and fix `node:perf_hooks` histogr…
dylan-conway Oct 27, 2026
a0cc096
Upgrade WebKit to 982277c9dd3e (#47035)
dylan-conway Oct 27, 2026
c643ea8
Replace libarchive with a tar reader and writer in safe Rust (#46638)
dylan-conway Oct 27, 2026
92e819d
Replace bytemuck with an in-tree crate, bun_pod (#47037)
dylan-conway Oct 27, 2026
9b8347a
Upgrade WebKit to 191c6a41380b (#47057)
dylan-conway Oct 27, 2026
7942008
css: consolidate the open CSS parser fixes (#47025)
Jarred-Sumner Oct 27, 2026
8d5672c
Compile TypeScript to machine code ahead of time: `bun build --compil…
Jarred-Sumner Oct 27, 2026
11c3671
Upgrade WebKit to fcc1ea0973a4 (#47125)
Jarred-Sumner Oct 28, 2026
6c3d1bf
Keep `Bun.Archive.extract()` and directory routes inside their direct…
Jarred-Sumner Oct 28, 2026
60ca742
crash handler: give `CrashReason` the lifetime of its panic message (…
dylan-conway Oct 28, 2026
2871f0c
shell: reference-count IO objects with `Rc` instead of `Arc` (#47238)
dylan-conway Oct 28, 2026
73b5310
uws: put `Loop`'s fields in `Cell`s so its methods take `&self` (#47231)
dylan-conway Oct 28, 2026
c49cc85
Drop `detach_lifetime` where the data already has the lifetime (#47247)
dylan-conway Oct 28, 2026
3e2d53c
js_printer: give `RequireOrImportMetaCallback` the lifetime of its co…
dylan-conway Oct 28, 2026
563272e
sha: drop the unused `ENGINE` argument of the EVP hashers' `hash` (#4…
dylan-conway Oct 28, 2026
d472c5b
resolver: `Entry::kind` and `Entry::symlink` take `&RealFS` and are s…
dylan-conway Oct 28, 2026
37a5e3a
Zero-initialize plain C structs with the safe `ffi::zeroed()` (#47249)
dylan-conway Oct 28, 2026
bf80135
Remove 70 `unsafe` blocks by borrowing instead of holding raw pointer…
dylan-conway Oct 29, 2026
3a9ea00
AOT: fixes for modules, classes and Workers, WebKit upgrade, shorter …
Jarred-Sumner Oct 29, 2026
e64b59d
Fix the build of bun_bundler with the test_support feature (#47299)
Jarred-Sumner Oct 29, 2026
57f4f19
Remove 166 `unsafe` blocks by borrowing and by naming the lifetimes t…
dylan-conway Oct 29, 2026
081ace7
Remove the address space ballast and the mimalloc patches, upgrade mi…
Jarred-Sumner Oct 29, 2026
377e942
Fix false alarms in the scan behind `compile-trim-capabilities.test.t…
dylan-conway Oct 29, 2026
000ef50
test: the floor of the ICU version takes a version with more parts th…
Jarred-Sumner Oct 29, 2026
da867c6
Remove 74 `unsafe` blocks from the css parser, the bundler and the JS…
dylan-conway Oct 29, 2026
e084c83
Remove 118 `unsafe` blocks from the syscall wrappers and the shell (#…
dylan-conway Oct 29, 2026
69f4077
TextDecoder: throw when the result cannot be allocated or is too long…
dylan-conway Oct 29, 2026
73a2043
fs: add windowsHandle option to file streams (#47087)
ig-ant Oct 29, 2026
9fe1cd6
Remove 128 `unsafe` blocks from the test runner and the CLI (#47382)
dylan-conway Oct 29, 2026
f7607a3
Remove 146 `unsafe` blocks from the dev server and the `Bun.*` APIs (…
dylan-conway Oct 29, 2026
8971677
Upgrade WebKit to e8f704815e94 (#47112)
robobun Oct 30, 2026
204d701
Shrink defaultGlobalObject's inline part and use putDirectNamed at 11…
dylan-conway Oct 31, 2026
77b380d
Compile four cold paths in lint, the type checker and error conversio…
dylan-conway Oct 31, 2026
d7d941c
Put the small hot fields of the checker, parser and formatter structs…
dylan-conway Oct 31, 2026
34cbc70
Instantiate BunGlobWalker's methods once, in bun_glob (#47513)
dylan-conway Oct 31, 2026
bace183
chore(sync): merge upstream Bun through 34cbc70fa1
vincentkoc Oct 31, 2026
b691e0e
chore(sync): retain landed fork decorator fix
vincentkoc Oct 31, 2026
fbe53ea
fix(sync): repair source checks and pin fork engine sources
vincentkoc Oct 31, 2026
a357004
style(sync): apply canonical formatter output
vincentkoc Oct 31, 2026
2f741a3
fix(build): accept inlined fortified copies in hardened GNU links
steipete Oct 25, 2026
dd5eed7
test(build): isolate hardened import verifier cases
vincentkoc Oct 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
103 changes: 88 additions & 15 deletions .buildkite/ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function getBuildkiteEmoji(emoji: Emoji): string {
type Abi = Exclude<HostAbi, "gnu">;
type Distro = "debian" | "ubuntu" | "alpine";
type Tier = "latest" | "previous" | "oldest" | "beta";
type Profile = "release" | "assert" | "debug" | "asan";
type Profile = "release" | "assert" | "debug" | "asan" | "hardened";

interface Target {
os: Os;
Expand Down Expand Up @@ -223,6 +223,8 @@ type Platform = Target & {
distro?: Distro;
release: string;
tier?: Tier;
/** What a test platform runs in place of every test, in one shard. */
tests?: string[];
};

type AzureVmTier = "build" | "test";
Expand Down Expand Up @@ -267,6 +269,9 @@ const buildPlatforms: Platform[] = [
// asan x64 cross-builds from the arm64 host too, with the amd64 compiler-rt
// that the `crossCompilerRt` tool of scripts/build/ci-images/spec.ts installs there.
{ os: "linux", arch: "x64", profile: "asan", distro: "debian", release: "13" },
// In no release either. The build checks the layout of the file that it links and of the one that it strips
// (scripts/build/verify-binary.ts).
{ os: "linux", arch: "x64", profile: "hardened", distro: "debian", release: "13" },
{ os: "linux", arch: "aarch64", abi: "musl", distro: "debian", release: "13" },
{ os: "linux", arch: "x64", abi: "musl", distro: "debian", release: "13" },
// Android: cross-compiled from the debian-13 aarch64 host via NDK sysroot.
Expand Down Expand Up @@ -308,6 +313,25 @@ const testPlatforms: Platform[] = [
{ os: "linux", arch: "aarch64", distro: "debian", release: "13", tier: "latest" },
{ os: "linux", arch: "x64", distro: "debian", release: "13", tier: "latest" },
{ os: "linux", arch: "x64", profile: "asan", distro: "debian", release: "13", tier: "latest" },
// A Bun built with --hardened=on never reads the environment variables that tests steer Bun with, so it runs the tests
// that are written for it. On any other build they skip themselves. The last never does.
{
os: "linux",
arch: "x64",
profile: "hardened",
distro: "debian",
release: "13",
tier: "latest",
tests: [
"aot/hardened",
"aot/a-hardened-build",
"aot/an-executable-that-cannot-read-its-own-file",
"aot/compiled-code-mapping",
"aot/executable-memory-filter",
"aot/texts-that-tell-builds-apart",
"aot/the-build-under-test",
],
},
{ os: "linux", arch: "aarch64", distro: "ubuntu", release: "25.04", tier: "latest" },
{ os: "linux", arch: "x64", distro: "ubuntu", release: "25.04", tier: "latest" },
{ os: "linux", arch: "aarch64", abi: "musl", distro: "alpine", release: "3.23", tier: "latest" },
Expand All @@ -316,6 +340,9 @@ const testPlatforms: Platform[] = [
{ os: "windows", arch: "aarch64", release: "11", tier: "latest" },
];

/** Pull requests build and test the other profiles. main does not: nothing ships them. */
const isInRelease = ({ profile }: Target) => profile !== "asan" && profile !== "hardened";

function getPlatformKey(platform: Platform): string {
const { distro, release } = platform;
const target = getTargetKey(platform);
Expand Down Expand Up @@ -586,6 +613,7 @@ function getBuildArgs(target: Target, options: PipelineOptions): string {

if (baseline) args.push("--baseline=on");
if (profile === "asan") args.push("--asan=on");
if (profile === "hardened") args.push("--hardened=on");

// canary: options.canary can be number (revision count) or undefined
// (default on). Old system used CANARY_REVISION as a counter; build.ts
Expand Down Expand Up @@ -640,7 +668,7 @@ function getBuildBunStep(platform: Platform, options: PipelineOptions): CommandS
* Matches the naming convention in cmake/targets/BuildBun.cmake.
*/
function getTargetTriplet(platform: Target): string {
const { os, arch, abi, baseline } = platform;
const { os, arch, abi, baseline, profile } = platform;
let triplet = `bun-${os}-${arch}`;
if (abi === "musl") {
triplet += "-musl";
Expand All @@ -651,6 +679,9 @@ function getTargetTriplet(platform: Target): string {
if (baseline) {
triplet += "-baseline";
}
if (profile === "hardened") {
triplet += "-hardened";
}
return triplet;
}

Expand All @@ -660,10 +691,10 @@ function getTargetTriplet(platform: Target): string {
* aarch64 builds verify no LSE/SVE instructions snuck in.
*/
function needsBaselineVerification(platform: Platform): boolean {
const { os, arch, abi, profile } = platform;
const { os, arch, abi } = platform;
// asan never ships. x64-android is emulator-only; aarch64-android keeps its
// static LSE/SVE scan via --skip-emulation in getVerifyBaselineStep().
if (profile === "asan") return false;
if (!isInRelease(platform)) return false;
if (os === "linux") return (arch === "x64" && abi !== "android") || arch === "aarch64";
if (os === "windows") return arch === "x64";
return false;
Expand Down Expand Up @@ -866,6 +897,34 @@ function getTraceOrderStep(target: Target, tracePlatform: Platform, options: Pip
};
}

/** Where `cargo test` runs. An entry of `testPlatforms`, so the step runs on an image that exists. */
const cargoTestPlatform: Platform = { os: "linux", arch: "x64", distro: "debian", release: "13" };

/**
* The unit tests of the Rust crates that link without JavaScriptCore and Bun's C++ (scripts/rust-test.ts). Some hand what the
* front end writes to the engine, which is `testaot` of the build.
*/
function getCargoTestStep(buildId: string | undefined): CommandStep {
const buildStep = `${getTargetKey(cargoTestPlatform)}-build-bun`;
const profileDir = `${getTargetTriplet(cargoTestPlatform)}-profile`;
return {
key: `${getPlatformKey(cargoTestPlatform)}-cargo-test`,
label: `${getPlatformLabel(cargoTestPlatform)} - cargo-test`,
depends_on: buildId ? [] : [buildStep],
agents: getEc2Agent(cargoTestPlatform, { instanceType: "c7i.4xlarge" }),
retry: getRetry(),
cancel_on_build_failing: isMergeQueue(),
timeout_in_minutes: 30,
command: [
`buildkite-agent artifact download '${profileDir}.zip' . --step ${buildStep}${buildId ? ` --build ${buildId}` : ""}`,
`unzip -o '${profileDir}.zip' '${profileDir}/testaot' '${profileDir}/bun-profile'`,
`chmod +x ${profileDir}/testaot ${profileDir}/bun-profile`,
// ($$ is a literal $ after pipeline-upload interpolation.)
`TESTAOT="$$PWD/${profileDir}/testaot" BUN_UNDER_TEST="$$PWD/${profileDir}/bun-profile" bun run rust:test`,
],
};
}

interface TestOptions {
buildId?: string | undefined;
testFiles?: string[] | undefined;
Expand All @@ -882,6 +941,8 @@ function getTestBunStep(platform: Platform, options: PipelineOptions, testOption

if (testFiles?.length) {
args.push(...testFiles.map(testFile => `--include=${testFile}`));
} else if (platform.tests) {
args.push(...platform.tests.map(test => `--include=${test}`), "--vendor=false");
} else {
// platform-independent tsc check; runs in .github/workflows/bun-types.yml instead
args.push("--exclude=integration/bun-types");
Expand Down Expand Up @@ -912,7 +973,7 @@ function getTestBunStep(platform: Platform, options: PipelineOptions, testOption
// connected at upload but drops off during the build wait, so the
// step sits `scheduled` with nobody to take it. That holds only this
// PR's own build, and a cancel clears it.
parallelism: platform.tier === "beta" ? 1 : os === "darwin" ? 2 : os === "windows" ? 8 : 20,
parallelism: platform.tier === "beta" || platform.tests ? 1 : os === "darwin" ? 4 : os === "windows" ? 8 : 20,
...(platform.tier === "beta" ? { soft_fail: true } : {}),
// The beta lane runs the whole suite as one shard on one box (~35 min).
timeout_in_minutes:
Expand All @@ -933,6 +994,10 @@ function getTestBunStep(platform: Platform, options: PipelineOptions, testOption
(platform.os === "darwin" && platform.arch === "aarch64" && platform.tier === "latest")
? { EXPECTED_PLATFORM_RELEASE: platform.release }
: {}),
// The build, which test/aot/the-build-under-test-is-the-one-its-step-names.test.ts asks the Bun about. Whether the
// build behind `buildId` is a canary is not known here.
...(profile ? { EXPECTED_PLATFORM_PROFILE: profile } : {}),
...(options.canary && !buildId ? { EXPECTED_PLATFORM_CANARY: "1" } : {}),
},
command:
os === "windows"
Expand Down Expand Up @@ -1456,7 +1521,7 @@ async function getPipelineOptions(): Promise<PipelineOptions | undefined> {

let filteredBuildPlatforms = buildPlatforms;
if (isMainBranch()) {
filteredBuildPlatforms = buildPlatforms.filter(({ profile }) => profile !== "asan");
filteredBuildPlatforms = buildPlatforms.filter(isInRelease);
}

const canary = await getCanaryRevision();
Expand Down Expand Up @@ -1711,7 +1776,7 @@ async function getPipeline(options: PipelineOptions = {}): Promise<Pipeline | un
}
}

const includeASAN = !isMainBranch();
const includeEveryProfile = !isMainBranch();

// verify-baseline / trace-order: checks that run on a built binary on a
// test-fleet host. They are drawn in that host's test group (or a
Expand Down Expand Up @@ -1751,9 +1816,7 @@ async function getPipeline(options: PipelineOptions = {}): Promise<Pipeline | un
};

if (!buildId) {
let relevantBuildPlatforms = includeASAN
? buildPlatforms
: buildPlatforms.filter(({ profile }) => profile !== "asan");
const relevantBuildPlatforms = includeEveryProfile ? buildPlatforms : buildPlatforms.filter(isInRelease);

steps.push(
...relevantBuildPlatforms.flatMap(target => {
Expand Down Expand Up @@ -1811,8 +1874,8 @@ async function getPipeline(options: PipelineOptions = {}): Promise<Pipeline | un
}

// Tests run on main too so the canary release step below can gate on them.
// ASAN is PR-only (see includeASAN above), so the asan test lane is dropped
// on main along with its build.
// The asan and hardened profiles are PR-only (see includeEveryProfile above),
// so their test lanes are dropped on main along with their builds.
// Untiered: any arm64 mac agent, whatever macOS it runs, can take it.
const prDarwinTestPlatforms: Platform[] = [
{ os: "darwin", arch: "aarch64", release: "any" },
Expand All @@ -1830,10 +1893,10 @@ async function getPipeline(options: PipelineOptions = {}): Promise<Pipeline | un
!darwinTestsEnabled && !isMergeQueue() && (await darwinBetaQueueIdle())
? [{ os: "darwin", arch: "aarch64", release: "27", tier: "beta" }]
: [];
const relevantTestPlatforms = (
includeASAN ? testPlatforms : testPlatforms.filter(({ profile }) => profile !== "asan")
)
const relevantTestPlatforms = (includeEveryProfile ? testPlatforms : testPlatforms.filter(isInRelease))
.filter(({ os }) => os !== "darwin" || darwinTestsEnabled)
// The files that a manual build asks for are not written for a platform that names its own.
.filter(({ tests }) => !tests || !options.testFiles?.length)
.concat(darwinTestsEnabled ? [] : prDarwinTestPlatforms)
.concat(darwinTestsEnabled ? [] : betaDarwinTestPlatforms);
const testStepKeys: string[] = [];
Expand All @@ -1857,6 +1920,16 @@ async function getPipeline(options: PipelineOptions = {}): Promise<Pipeline | un
);
}),
);
if (!testFiles?.length) {
const step = getCargoTestStep(buildId);
testStepKeys.push(step.key);
steps.push(
getStepWithDependsOn(
{ key: getPlatformKey(cargoTestPlatform), group: getPlatformLabel(cargoTestPlatform), steps: [step] },
...getImageDependsOn(cargoTestPlatform, baking),
),
);
}
}
}

Expand Down
14 changes: 14 additions & 0 deletions .buildkite/hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# `git fetch` may leave `git gc --auto` packing the repository in the background
# ("Auto packing the repository in background for optimum performance"). The
# darwin agents copy the checkout, .git included, into a guest next, and rsync
# exits 23 when .git/gc.pid or .git/gc.log.lock goes away under the copy: the
# job ends with status 1 before a test has run, and nothing retries it. So the
# packing is waited for here, five minutes at most. Never exits non-zero.

git_directory="${BUILDKITE_BUILD_CHECKOUT_PATH:-.}/.git"
for _ in $(seq 1 300); do
[ -e "$git_directory/gc.pid" ] || [ -e "$git_directory/gc.log.lock" ] || break
sleep 1
done
exit 0
4 changes: 2 additions & 2 deletions .claude/commands/upgrade-webkit.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ To do that:
- Preview mode: create a working branch (e.g. `bun/upgrade-to-<upstream-short-sha>`) instead of staying on main
- git merge upstream/main
- Fix the merge conflicts (preserve the fork's Bun-specific changes)
- bun run jsc:build:debug — from the bun repo root, builds just JSC
- bun run jsc:build:debug — from the bun repo root, builds just JSC (and its `jsc` shell), in bun's own build graph. File lists come from the checkout, but `scripts/build/deps/webkit.ts` restates WebKit's generator commands, compiler flags and option values by hand, and nothing checks them. Read `git diff $OLD_BASE upstream/main -- Source/cmake Source/JavaScriptCore/CMakeLists.txt Source/WTF/wtf/CMakeLists.txt Source/bmalloc/CMakeLists.txt` for changed `add_custom_command`s (→ `gen()`), compiler flags (→ `webkitFlags()`) and `WEBKIT_OPTION_*` / `SET_AND_EXPOSE_TO_BUILD` (→ `rows`), and carry them over in the bun PR
- While it compiles, in another task review the JSC commits between $OLD_BASE and upstream/main (Source/JavaScriptCore, Source/WTF, Source/bmalloc). Write up a summary in a file called "webkit-changes.md"
- bun run build:local — full Bun build against the local WebKit (reuses the JSC build above)
- bun run build:local — full Bun build with the local WebKit (same build directory and objects as the JSC build above)
- After it compiles, run some code to make sure things work: `bun run build:local -p '42'`
- Publish the new WebKit:
- Direct: cd vendor/WebKit, commit, `git push origin main`. The push triggers a release tagged `autobuild-<full-sha>`.
Expand Down
7 changes: 7 additions & 0 deletions .github/actions/rust-lint-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ inputs:
ninja-targets:
description: "Space-separated build targets (`bun scripts/build.ts --target=…`)."
default: "clone-lolhtml clone-rust-argon2"
webkit-generators-only:
description: >
"1" fetches the code generators of the prebuilt WebKit (half a megabyte)
in place of its tarball (440 MB). For a job whose targets compile and
link no C++: `codegen` reads nothing else of it.
default: "0"

runs:
using: composite
Expand Down Expand Up @@ -72,6 +78,7 @@ runs:
shell: bash
env:
NINJA_TARGETS: ${{ inputs.ninja-targets }}
BUN_WEBKIT_GENERATORS_ONLY: ${{ inputs.webkit-generators-only }}
run: |
bun install --frozen-lockfile
bun scripts/build.ts $(printf -- '--target=%s ' $NINJA_TARGETS)
3 changes: 2 additions & 1 deletion .github/workflows/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export LLVM_VERSION_MAJOR=23

## rust-lints.yml Workflow

Four independent jobs over the Rust workspace. They share `.github/actions/rust-lint-setup`, a composite action that installs LLVM from apt.llvm.org (configure resolves a clang even though nothing here compiles C++), Bun, optionally a pinned Rust toolchain plus components, runs `bun install`, then `bun scripts/build.ts --configure-only` and the ninja targets a job asks for: `clone-lolhtml clone-rust-argon2` (cargo cannot resolve the workspace until the vendored `lol_html` and `rust-argon2` path dependencies exist) and, for jobs that check `bun_runtime`/`bun_jsc`/`bun_core`, `codegen` (their `include!()`d sources under `build/debug/codegen`).
Four independent jobs over the Rust workspace. They share `.github/actions/rust-lint-setup`, a composite action that installs LLVM from apt.llvm.org (configure resolves a clang even though nothing here compiles C++), Bun, optionally a pinned Rust toolchain plus components, runs `bun install`, then `bun scripts/build.ts --configure-only` and the ninja targets a job asks for: `clone-lolhtml clone-rust-argon2` (cargo cannot resolve the workspace until the vendored `lol_html` and `rust-argon2` path dependencies exist) and, for jobs that check `bun_runtime`/`bun_jsc`/`bun_core`, `codegen` (their `include!()`d sources under `build/debug/codegen`). `codegen` reads the code generators of the prebuilt WebKit and nothing else of it: a job that links no C++ passes `webkit-generators-only: "1"`, and the build fetches the release's `bun-webkit-aot-sources.tar.gz` (half a megabyte) in place of the tarball (440 MB).

| Job | Check name | Runs | Blocking |
| --------- | --------------------- | ------------------------------------------------------------------- | ------------------------------ |
Expand All @@ -128,6 +128,7 @@ Four independent jobs over the Rust workspace. They share `.github/actions/rust-
- `clippy` lints the default targets only (lib and bin): test code was never held to the clippy lint set. Its second step, `cargo check --workspace --all-targets`, type-checks `#[cfg(test)]` code, `tests/` and `benches/` so they keep compiling. Nothing else builds them except the crates `rust:miri` runs.
- `clippy`, `miri` and `lolhtml` pin `RUSTUP_TOOLCHAIN` at the workflow level (kept in sync with `channel` in `rust-toolchain.toml`) so rustup does not install that file's cross-target list; the action installs the toolchain with `--profile minimal` plus the components the job names (`clippy`, `miri rust-src`, none).
- `lolhtml` exists because the vendored lol-html is a fork (oven-sh/lol-html, `bun` branch) whose own test suite is the only thing guarding the fork's invariants. It used to trigger only on `scripts/build/deps/lolhtml.ts`; it now shares the workflow's wider path filter.
- `cargo test` is not here: Buildkite runs it on every pull request (`getCargoTestStep()` in `.buildkite/ci.ts`, `bun run rust:test`, `scripts/rust-test.ts`), for the crates whose tests link without JavaScriptCore. `bun test test/internal/aot-schema-generator.test.ts` runs in `lint.yml`, which fetches the engine's code generators anyway: it skips itself without `AOT_SCHEMA`, as on Buildkite's test machines. The Rust files that the schema gives are written by the `codegen` target, by the generator and from the schema of the **pinned** WebKit. The schema, its generator and its C++ output belong to WebKit, so a schema change is made with `--webkit=local`; it lands in WebKit first, then in Bun as one change: the new `WEBKIT_VERSION` (`scripts/build/deps/webkit.ts`) and the hand-written Rust that follows it.
- `mordant` runs the [mordant](https://github.com/scarletindustries/mordant) lint pack as an advisory (`continue-on-error`) job. Mordant ships its own runner, the way clippy does. `cargo mordant` is `cargo check` with `mordant-driver` (rustc with the lints linked in) as `RUSTC_WORKSPACE_WRAPPER`, and it builds into `target/mordant/check`. The shared action installs mordant's nightly (`MORDANT_TOOLCHAIN`) with `rustc-dev` and `llvm-tools-preview`, and every cargo call in the job names it (`cargo +"$MORDANT_TOOLCHAIN" …`): `cargo install --locked --git … --rev "$MORDANT_REV"` builds the two binaries with it, and `scripts/rust-mordant.ts` runs `cargo mordant` under it. It is not spelled `RUSTUP_TOOLCHAIN` because `test/internal/source-lints/ci-image-pins.test.ts` holds every `RUSTUP_TOOLCHAIN: nightly-…` in a workflow to the channel in `rust-toolchain.toml`, and this one moves with mordant instead. One cache covers them: `~/.cargo/bin/{cargo-mordant,mordant-driver}`, keyed on the nightly and the rev. The job restores it with `actions/cache/restore` and saves it with `actions/cache/save` right after the build, because the post step of `actions/cache` does not run in a job that failed, and a pull request with a finding over the baseline would then build mordant again on every push. Because that nightly is older than ours, the script passes `-A unknown_lints` through `MORDANT_RUSTFLAGS`. It is skipped on `merge_group`.
- Mordant's nightly is the compiler that checks this workspace while the lints run, so it must still be able to compile it. When a `rust-toolchain.toml` bump brings in an API that nightly lacks, the job fails on every PR until mordant moves to a newer nightly and the pin here follows. #42851 was one: the job was off from then until mordant moved to 2026-09-01.

Expand Down
Loading
Loading