Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Revert "Merge pull request #7858 from senamakel/ci-tinymold-wrapper"

Steven Enamakel5187db6d0d9a
diff --git a/.github/workflows/ci-lanes.yml b/.github/workflows/ci-lanes.yml
index 6488e975b8..a91809834b 100644
--- a/.github/workflows/ci-lanes.yml
+++ b/.github/workflows/ci-lanes.yml
@@ -10,10 +10,6 @@
# `openhuman-ex63`, host code in tinyhumansai/gh-hosted-runner). All
# lanes run at once; target dirs live on the per-job scratch disk;
# sccache, cargo and pnpm caches live on a 10 GB capped cache disk.
-# Rust compiles go through tinymold (a per-job local store on scratch
-# plus the host's shared, signed remote) when the guest provides
-# both, and through sccache otherwise (rustWrapperFor in
-# lanes-plan.mjs).
# hosted the same lanes split over a few GitHub-hosted jobs sized to fit
# those runners, with GitHub's Actions cache.
#
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjs
index d9520376ea..e961a0f427 100644
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@ -13,7 +13,6 @@ import {
areasFromEnv,
buildPlan,
hostedMatrix,
- rustWrapperFor,
selectLanes,
validatePlan,
} from "../ci/self-hosted/lanes-plan.mjs";
@@ -22,10 +21,6 @@ import {
processTable,
treeRssMiB,
sccacheSummary,
- tinymoldSummary,
- tinymoldOnPath,
- runTinymold,
- finishTinymold,
Runner,
defaultHeavySlots,
foldLine,
@@ -52,48 +47,23 @@ const EX63_ENV = { CI_SCRATCH_DIR: "/scratch" };
test("EX63 installs script dependencies only after changed areas are detected", () => {
const detect = ciLanes.indexOf("- name: Detect changed areas");
- const install = ciLanes.indexOf(
- "- name: Install jq for release-script tests",
- );
- assert.ok(
- detect >= 0 && install > detect,
- "filter outputs must exist before they gate jq installation",
- );
+ const install = ciLanes.indexOf("- name: Install jq for release-script tests");
+ assert.ok(detect >= 0 && install > detect, "filter outputs must exist before they gate jq installation");
const nextStep = ciLanes.indexOf("\n - name:", install + 1);
- const installBlock = ciLanes.slice(
- install,
- nextStep < 0 ? undefined : nextStep,
- );
- assert.match(
- installBlock,
- /import tomllib/,
- "Python 3.11+ already provides TOML parsing",
- );
- assert.match(
- installBlock,
- /command -v sudo/,
- "non-root runners may not have sudo",
- );
- assert.match(
- installBlock,
- /cannot install packages/,
- "the EX63 image may not grant package installation",
- );
+ const installBlock = ciLanes.slice(install, nextStep < 0 ? undefined : nextStep);
+ assert.match(installBlock, /import tomllib/, "Python 3.11+ already provides TOML parsing");
+ assert.match(installBlock, /command -v sudo/, "non-root runners may not have sudo");
+ assert.match(installBlock, /cannot install packages/, "the EX63 image may not grant package installation");
});
test("EX63 provides jq without root and before the lanes start", () => {
- const install = ciLanes.indexOf(
- "- name: Install jq for release-script tests",
- );
+ const install = ciLanes.indexOf("- name: Install jq for release-script tests");
const end = ciLanes.indexOf("\n - name:", install + 1);
const step = ciLanes.slice(install, end);
assert.doesNotMatch(step, /\bsudo\b|apt-get/);
assert.match(step, /sha256sum -c/);
assert.match(step, /GITHUB_PATH/);
- assert.ok(
- install < ciLanes.indexOf("- name: Start lanes"),
- "jq must be on PATH before the lanes spawn",
- );
+ assert.ok(install < ciLanes.indexOf("- name: Start lanes"), "jq must be on PATH before the lanes spawn");
});
const plans = () => [
@@ -417,7 +387,7 @@ test("ex63 needs a scratch dir and gives every Rust lane its own target dir unde
);
});
-test("instrumented coverage uses the compile cache on ex63 and no wrapper on hosted", () => {
+test("instrumented coverage uses sccache on ex63 and no wrapper on hosted", () => {
for (const plan of plans()) {
const ex63 = plan.profile === "ex63";
const cov = plan.lanes.find((l) => l.name === "rust-cov");
@@ -435,206 +405,6 @@ test("instrumented coverage uses the compile cache on ex63 and no wrapper on hos
}
});
-const TINYMOLD_ENV = {
- ...EX63_ENV,
- TINYMOLD_REMOTE_URL: "grpc://172.31.0.1:9092",
-};
-const rustLaneEnvs = (plan) =>
- plan.lanes
- .filter((l) => l.targetDir || l.name === "rust-cov" || l.name === "tauri")
- .flatMap((l) => [
- l.env,
- ...l.checks
- .filter((c) => c.env?.RUSTC_WRAPPER !== undefined)
- .map((c) => ({ ...l.env, ...c.env })),
- ]);
-
-test("ex63 compiles through tinymold when the binary and the shared remote are both there", () => {
- assert.equal(
- rustWrapperFor({
- profile: "ex63",
- env: TINYMOLD_ENV,
- tinymoldOnPath: true,
- }),
- "tinymold",
- );
- const plan = buildPlan({
- profile: "ex63",
- areas: ALL,
- env: TINYMOLD_ENV,
- tinymoldOnPath: true,
- });
- assert.equal(plan.rustWrapper, "tinymold");
- assert.equal(plan.tinymoldLog, "/scratch/tinymold.log");
- const envs = rustLaneEnvs(plan);
- assert.ok(envs.length > 0);
- for (const env of envs) {
- if (env.RUSTC_WRAPPER === undefined) continue; // tauri's lane env
- assert.equal(env.RUSTC_WRAPPER, "tinymold");
- assert.equal(env.TINYMOLD_LOG, "/scratch/tinymold.log");
- }
- // Every compiling lane is covered, coverage included.
- for (const name of [
- "rust-cov",
- "rust-lint",
- "rust-gates-off",
- "storage-drivers",
- ])
- assert.equal(
- plan.lanes.find((l) => l.name === name).env.RUSTC_WRAPPER,
- "tinymold",
- name,
- );
- const tauri = plan.lanes.find((l) => l.name === "tauri").checks;
- for (const c of tauri) assert.equal(c.env.RUSTC_WRAPPER, "tinymold", c.name);
- assert.ok(allRuns(plan).every((r) => !/sccache/.test(r)));
-});
-
-test("ex63 falls back to sccache without the tinymold binary or the shared remote", () => {
- const cases = [
- { env: EX63_ENV, tinymoldOnPath: true }, // remote unreachable: vars absent
- { env: { ...EX63_ENV, TINYMOLD_REMOTE_URL: "" }, tinymoldOnPath: true },
- { env: TINYMOLD_ENV, tinymoldOnPath: false }, // guest not upgraded yet
- { env: TINYMOLD_ENV }, // not probed
- ];
- for (const c of cases) {
- assert.equal(rustWrapperFor({ profile: "ex63", ...c }), "sccache");
- const plan = buildPlan({ profile: "ex63", areas: ALL, ...c });
- assert.equal(plan.rustWrapper, "sccache");
- assert.equal(plan.tinymoldLog, null);
- // Byte-for-byte the plan from before tinymold.
- assert.deepEqual(
- plan,
- buildPlan({ profile: "ex63", areas: ALL, env: EX63_ENV }),
- );
- for (const env of rustLaneEnvs(plan)) {
- if (env.RUSTC_WRAPPER === undefined) continue;
- assert.equal(env.RUSTC_WRAPPER, "sccache");
- assert.equal(env.TINYMOLD_LOG, undefined);
- }
- }
-});
-
-test("hosted never gets a compile-cache wrapper, tinymold or not", () => {
- assert.equal(
- rustWrapperFor({
- profile: "hosted",
- env: TINYMOLD_ENV,
- tinymoldOnPath: true,
- }),
- null,
- );
- const plan = buildPlan({
- profile: "hosted",
- areas: ALL,
- env: { TINYMOLD_REMOTE_URL: "grpc://172.31.0.1:9092" },
- tinymoldOnPath: true,
- });
- assert.equal(plan.rustWrapper, null);
- assert.equal(plan.tinymoldLog, null);
- assert.deepEqual(plan, buildPlan({ profile: "hosted", areas: ALL }));
- for (const lane of plan.lanes) {
- assert.equal(lane.env?.RUSTC_WRAPPER, undefined, lane.name);
- for (const c of lane.checks)
- assert.equal(c.env?.RUSTC_WRAPPER, undefined, `${lane.name}:${c.name}`);
- }
-});
-
-test("tinymold is detected only when its binary runs", () => {
- const calls = [];
- const ok = (cmd, args) => {
- calls.push([cmd, ...args]);
- return { status: 0 };
- };
- assert.equal(tinymoldOnPath(ok), true);
- assert.deepEqual(calls, [["tinymold", "--version"]]);
- assert.equal(
- tinymoldOnPath(() => ({ status: null, error: new Error("ENOENT") })),
- false,
- );
- assert.equal(
- tinymoldOnPath(() => ({ status: 1 })),
- false,
- );
-});
-
-test("tinymold pushes since the job start and a failed push is reported, not thrown", () => {
- const calls = [];
- const run = (cmd, args, opts) => {
- calls.push({ cmd, args, timeout: opts.timeout });
- if (args[0] === "remote")
- return { status: 1, stdout: "", stderr: "error: connection refused\n" };
- return {
- status: 0,
- stdout:
- "75.0% hit rate: 3 of 4 cacheable compiles served from cache\nhits 3 (remote 2), misses 1 (0 not stored), not cacheable 5, errors 0\ntime on hits 0.10s, on misses 9.00s\n",
- stderr: "",
- };
- };
- const result = finishTinymold({
- log: "/scratch/tinymold.log",
- since: 1700000000,
- run,
- });
- assert.deepEqual(
- calls.map((c) => [c.cmd, ...c.args]),
- [
- ["tinymold", "remote", "push", "--since", "1700000000"],
- ["tinymold", "stats", "--log", "/scratch/tinymold.log"],
- ],
- );
- assert.ok(calls[0].timeout > 0, "the push is time-bounded");
- assert.equal(result.push.ok, false);
- assert.equal(result.push.status, 1);
- assert.equal(result.push.output, "error: connection refused");
- assert.match(result.stats, /^75\.0% hit rate/);
- // A binary that cannot even start is a failed run, not an exception.
- const broken = runTinymold(["stats"], {
- run: () => ({
- status: null,
- error: new Error("spawnSync tinymold ENOENT"),
- }),
- });
- assert.deepEqual(broken, {
- ok: false,
- status: null,
- output: "spawnSync tinymold ENOENT",
- });
-});
-
-test("tinymold summary reports the hit rate and the push outcome", () => {
- assert.equal(tinymoldSummary(null), null);
- const stats =
- "75.0% hit rate: 3 of 4 cacheable compiles served from cache\nhits 3 (remote 2), misses 1 (0 not stored), not cacheable 5, errors 0\ntime on hits 0.10s, on misses 9.00s";
- assert.equal(
- tinymoldSummary({
- stats,
- push: {
- ok: true,
- status: 0,
- output: "remote: pushed 1 action, 3 objects",
- },
- }),
- "tinymold (shared remote): 75.0% hit rate: 3 of 4 cacheable compiles served from cache (hits 3 (remote 2), misses 1 (0 not stored), not cacheable 5, errors 0).\n" +
- "tinymold push: remote: pushed 1 action, 3 objects.",
- );
- assert.equal(
- tinymoldSummary({
- stats: null,
- push: { ok: false, status: 1, output: "" },
- }),
- "tinymold (shared remote): no stats (`tinymold stats` failed).\n" +
- "tinymold push failed (warning only): exit 1.",
- );
- const summary = renderSummary({
- lanes: [],
- sccache: null,
- tinymold: { stats, push: { ok: true, status: 0, output: "" } },
- });
- assert.match(summary, /tinymold \(shared remote\): 75\.0% hit rate/);
- assert.doesNotMatch(summary, /sccache/);
-});
-
test("sccache summary reports hit rate and the store in use", () => {
assert.equal(sccacheSummary(null), null);
assert.equal(
diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjs
index 40a04ac38b..8d9d4b5e98 100644
--- a/scripts/ci/self-hosted/lanes-plan.mjs
+++ b/scripts/ci/self-hosted/lanes-plan.mjs
@@ -113,18 +113,9 @@ const STORAGE_LIB_FILTERS = [
* @param {Record<string, boolean>} opts.areas from areasFromEnv()
* @param {object} opts.env process environment (profile paths only)
* @param {boolean} [opts.isPullRequest]
- * @param {boolean} [opts.tinymoldOnPath] whether a `tinymold` binary runs
- * here (lanes.mjs probes it; the plan itself stays pure)
- * @returns {{profile: string, lanes: Lane[], rustWrapper: string|null,
- * tinymoldLog: string|null}}
+ * @returns {{profile: string, lanes: Lane[]}}
*/
-export function buildPlan({
- profile,
- areas,
- env = {},
- isPullRequest = true,
- tinymoldOnPath = false,
-}) {
+export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
if (profile !== "ex63" && profile !== "hosted") {
throw new Error(`unknown profile "${profile}" (expected ex63 or hosted)`);
}
@@ -144,42 +135,28 @@ export function buildPlan({
const core = areas.rustCore;
// ex63: one throwaway target dir per lane so lanes never queue on cargo's
- // build-dir lock, warmed by a compile cache (rustWrapperFor): tinymold over
- // the slot's /cache disk and the host's shared remote when the guest has
- // both, sccache otherwise. sccache keys include the target dir, so under
- // sccache a lane shares with the same lane of every earlier job on any VM,
- // not with the other lanes.
+ // build-dir lock; sccache warms the build from the host's shared, capped
+ // store (or the slot's /cache disk when the store is down). sccache keys
+ // include the target dir, so a lane shares with the same lane of every
+ // earlier job on any VM, not with the other lanes.
// hosted: cargo's default target dirs, which Swatinem/rust-cache restores.
const targetDir = (lane) => (ex63 ? `${scratch}/target/${lane}` : null);
- const rustWrapper = rustWrapperFor({ profile, env, tinymoldOnPath });
- // tinymold appends one line per compile to TINYMOLD_LOG (a single write per
- // line, so the parallel lanes can share one file); lanes.mjs reads it back
- // with `tinymold stats` for the job summary.
- const tinymoldLog =
- rustWrapper === "tinymold" ? `${scratch}/tinymold.log` : null;
- const wrapperEnv =
- rustWrapper === "tinymold"
- ? { RUSTC_WRAPPER: "tinymold", TINYMOLD_LOG: tinymoldLog }
- : rustWrapper
- ? { RUSTC_WRAPPER: rustWrapper }
- : {};
+ const sccache = ex63 ? { RUSTC_WRAPPER: "sccache" } : {};
const rustEnv = {
CARGO_INCREMENTAL: "0",
RUSTFLAGS: "-C link-arg=-fuse-ld=mold",
};
// Instrumented builds: no DWARF, a large test stack, and on hosted the
// serialized build ci-lite needs to fit the runner's disk. On ex63 they go
- // through the compile cache too: cargo-llvm-cov chains an existing
- // RUSTC_WRAPPER in both its wrapper and RUSTFLAGS modes, and cache hits
- // give byte-identical lcov (checked with cargo-llvm-cov 0.8 and sccache
- // 0.10; tinymold keys instrumented compiles on the real checkout path, so
- // their coverage mappings always point at this checkout). Hosted keeps
+ // through sccache too: cargo-llvm-cov chains an existing RUSTC_WRAPPER in
+ // both its wrapper and RUSTFLAGS modes, and cache hits give byte-identical
+ // lcov (checked with cargo-llvm-cov 0.8 and sccache 0.10). Hosted keeps
// ci-lite's wrapper-free setup.
const covEnv = {
...rustEnv,
CARGO_PROFILE_DEV_DEBUG: "0",
RUST_MIN_STACK: "67108864",
- ...(ex63 ? wrapperEnv : { CARGO_BUILD_JOBS: "1" }),
+ ...(ex63 ? sccache : { CARGO_BUILD_JOBS: "1" }),
};
const modulesDir = ex63
? `${scratch}/test-modules`
@@ -208,11 +185,7 @@ export function buildPlan({
{
name: "static",
checks: [
- {
- name: "rust-fmt",
- when: rust,
- run: "cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check",
- },
+ { name: "rust-fmt", when: rust, run: "cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check" },
{
name: "rust-layout",
when: core,
@@ -431,7 +404,7 @@ export function buildPlan({
// (lanes.mjs). Lower number = served first.
heavy: 1,
targetDir: targetDir("lint"),
- env: { ...rustEnv, ...wrapperEnv },
+ env: { ...rustEnv, ...sccache },
checks: [
// `--features` is load-bearing: `default` is the contributor set.
{
@@ -482,7 +455,7 @@ export function buildPlan({
// (lanes.mjs). Lower number = served first.
heavy: 1,
targetDir: targetDir("gatesoff"),
- env: { ...rustEnv, ...wrapperEnv, RUST_MIN_STACK: "67108864" },
+ env: { ...rustEnv, ...sccache, RUST_MIN_STACK: "67108864" },
checks: [
{
name: "gate-contract-tests",
@@ -534,13 +507,13 @@ export function buildPlan({
{
name: "clippy-tauri",
when: areas.rustTauri,
- env: wrapperEnv,
+ env: sccache,
run: "cargo clippy --manifest-path crates/openhuman-app/Cargo.toml -- -D warnings",
},
{
// llvm-cov's RUSTFLAGS mode with the linker flag cleared, as in
// ci-lite. ci-lite also clears RUSTC_WRAPPER because its container
- // config installs sccache; on ex63 covEnv sets the wrapper on purpose.
+ // config installs sccache; on ex63 covEnv sets sccache on purpose.
name: "tauri-coverage",
when: areas.rustTauri,
env: { ...covEnv },
@@ -564,7 +537,7 @@ export function buildPlan({
// VM's heavy-compile slots (lanes.mjs). Lower number = served first.
heavy: 2,
targetDir: targetDir("storage"),
- env: { ...rustEnv, ...wrapperEnv, RUST_MIN_STACK: "16777216" },
+ env: { ...rustEnv, ...sccache, RUST_MIN_STACK: "16777216" },
checks: [
{
name: "storage-e2e",
@@ -607,28 +580,7 @@ export function buildPlan({
}));
lane.active = lane.checks.some((c) => c.when);
}
- return { profile, lanes, rustWrapper, tinymoldLog };
-}
-
-/**
- * The RUSTC_WRAPPER the Rust lanes compile through.
- *
- * - hosted: none (ci-lite's wrapper-free setup; rust-cache restores target/).
- * - ex63 with a `tinymold` binary and TINYMOLD_REMOTE_URL: tinymold. The
- * microVM guest (tinyhumansai/gh-hosted-runner) exports the TINYMOLD_REMOTE_*
- * variables only while the host's shared cache answers, and TINYMOLD_STORE
- * points at the slot's persistent /cache disk.
- * - ex63 otherwise: sccache, exactly as before tinymold.
- *
- * @param {object} opts
- * @param {"ex63"|"hosted"} opts.profile
- * @param {object} [opts.env]
- * @param {boolean} [opts.tinymoldOnPath]
- * @returns {"tinymold"|"sccache"|null}
- */
-export function rustWrapperFor({ profile, env = {}, tinymoldOnPath = false }) {
- if (profile !== "ex63") return null;
- return tinymoldOnPath && env.TINYMOLD_REMOTE_URL ? "tinymold" : "sccache";
+ return { profile, lanes };
}
/** Restrict a plan to the named lanes (hosted groups run a subset each). */
diff --git a/scripts/ci/self-hosted/lanes.mjs b/scripts/ci/self-hosted/lanes.mjs
index f9e78ec5ab..682a991b87 100644
--- a/scripts/ci/self-hosted/lanes.mjs
+++ b/scripts/ci/self-hosted/lanes.mjs
@@ -21,8 +21,7 @@
// Area flags come from CI_AREA_* (see AREA_ENV). Outputs, under --out:
// logs/<lane>.log full output of each lane
// lcov/*.info coverage written by the coverage checks
-// ci-timings.json per-check outcome, timings, target-dir sizes, and
-// the compile cache's stats (tinymold or sccache)
+// ci-timings.json per-check outcome, timings, target-dir sizes, sccache
// and a per-check outcome table in $GITHUB_STEP_SUMMARY.
//
// Exit status is non-zero when any gating check failed or was blocked by a
@@ -140,32 +139,6 @@ export function sccacheSummary(sccache) {
return `sccache (${where}): ${hits} Rust hits, ${misses} misses${rate}.`;
}
-/**
- * Lines on tinymold's hit rate and its push to the shared remote, or null.
- *
- * `stats` is `tinymold stats` output: a headline ("87.5% hit rate: 7 of 8
- * cacheable compiles served from cache") and a line of counts.
- */
-export function tinymoldSummary(tinymold) {
- if (!tinymold) return null;
- const lines = (tinymold.stats ?? "")
- .split("\n")
- .map((l) => l.trim())
- .filter(Boolean);
- const stats =
- lines.length > 0
- ? `${lines[0]}${lines[1] ? ` (${lines[1]})` : ""}`
- : "no stats (`tinymold stats` failed)";
- const rows = [`tinymold (shared remote): ${stats}.`];
- const push = tinymold.push;
- if (push?.ok) rows.push(`tinymold push: ${push.output || "done"}.`);
- else if (push)
- rows.push(
- `tinymold push failed (warning only): ${push.output || `exit ${push.status}`}.`,
- );
- return rows.join("\n");
-}
-
/** Render the per-check outcome table for $GITHUB_STEP_SUMMARY. */
export function renderSummary(results) {
const rows = [
@@ -198,8 +171,6 @@ export function renderSummary(results) {
);
const sc = sccacheSummary(results.sccache);
if (sc) rows.push("", sc);
- const tm = tinymoldSummary(results.tinymold);
- if (tm) rows.push("", tm);
rows.push(
"",
"`skipped` = area untouched; `blocked` = a check it needs did not succeed. Neither is a pass for the check itself.",
@@ -246,55 +217,6 @@ function sccacheStats() {
}
}
-/** Whether a runnable `tinymold` binary is on PATH. */
-export function tinymoldOnPath(run = spawnSync) {
- const r = run("tinymold", ["--version"], { stdio: "ignore" });
- return !r.error && r.status === 0;
-}
-
-/**
- * Run a tinymold subcommand and capture its output. Never throws: the cache
- * is an accelerator, so its failures are reported, not fatal.
- */
-export function runTinymold(
- args,
- { run = spawnSync, env = process.env, timeoutMs = 60_000 } = {},
-) {
- const r = run("tinymold", args, {
- encoding: "utf8",
- env,
- timeout: timeoutMs,
- });
- const output = `${r.stdout ?? ""}${r.stderr ?? ""}`.trim();
- return {
- ok: !r.error && r.status === 0,
- status: r.status ?? null,
- output: r.error ? r.error.message : output,
- };
-}
-
-/**
- * After the lanes: push what this job compiled to the shared remote (only
- * successful compiles are ever stored, so a failed lane's entries are as
- * sound as a passing one's) and read the wrapper log's stats. A failed push
- * never fails the job; the summary step turns it into a warning.
- */
-export function finishTinymold({
- log,
- since,
- run = spawnSync,
- env = process.env,
-}) {
- // Bounded: an unreachable server must not hold the job to its timeout.
- const push = runTinymold(["remote", "push", "--since", String(since)], {
- run,
- env,
- timeoutMs: 10 * 60_000,
- });
- const stats = runTinymold(["stats", "--log", log], { run, env });
- return { log, push, stats: stats.ok ? stats.output : null };
-}
-
/**
* Counting semaphore with priorities (lower first, then FIFO). Heavy lanes
* each compile the whole core crate, several GB of rustc apiece, so the VM
@@ -767,11 +689,6 @@ async function waitAll(out) {
appendFileSync(process.env.GITHUB_STEP_SUMMARY, summary);
for (const f of gatingFailures(results))
console.log(`::error::[ci][lanes] ${f} did not pass`);
- const push = results.tinymold?.push;
- if (push && !push.ok)
- console.log(
- `::warning::[ci][lanes] tinymold remote push failed: ${push.output || `exit ${push.status}`}`,
- );
}
return code;
}
@@ -789,9 +706,6 @@ async function main() {
areas,
env: process.env,
isPullRequest,
- // Probed here, in the job that runs the lanes: the microVM guest puts
- // the binary and the TINYMOLD_* variables in this job's environment.
- tinymoldOnPath: args.profile === "ex63" && tinymoldOnPath(),
});
if (args.printMatrix) {
@@ -807,7 +721,6 @@ async function main() {
return 2;
}
- if (plan.rustWrapper) log(`Rust compile cache: ${plan.rustWrapper}`);
log(
`profile=${args.profile} areas=${
Object.entries(areas)
@@ -862,9 +775,8 @@ async function main() {
log(`detached runner pid=${child.pid} lanes=${lanesJson}`);
return 0;
}
- if (plan.rustWrapper === "sccache")
+ if (args.profile === "ex63")
spawnSync("sccache", ["--start-server"], { stdio: "ignore" });
- const jobStart = Math.floor(Date.now() / 1000);
const envHeavy = Number.parseInt(process.env.OH_LANES_MAX_HEAVY ?? "", 10);
const maxHeavy =
@@ -884,13 +796,6 @@ async function main() {
const started = new Date().toISOString();
const lanes = await runner.run();
- let tinymold = null;
- if (plan.rustWrapper === "tinymold" && !runner.cancelled) {
- tinymold = finishTinymold({ log: plan.tinymoldLog, since: jobStart });
- log(
- `tinymold push: ${tinymold.push.ok ? "ok" : `failed (exit ${tinymold.push.status})`} ${tinymold.push.output}`,
- );
- }
const results = {
profile: args.profile,
started,
@@ -898,9 +803,7 @@ async function main() {
runner: process.env.RUNNER_NAME ?? null,
areas,
lanes,
- rustWrapper: plan.rustWrapper ?? null,
- sccache: plan.rustWrapper === "sccache" ? sccacheStats() : null,
- tinymold,
+ sccache: args.profile === "ex63" ? sccacheStats() : null,
heavySlots: Number.isFinite(maxHeavy) ? maxHeavy : null,
memory: runner.memory,
cacheBytes: du(process.env.CI_CACHE_DIR),