From 810de8325998fc75c6151cb1abca4542cb446b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 1 Dec 2026 00:39:30 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20incremental=20is=20off=20a?= =?UTF-8?q?gain,=20since=20the=20forge-web=20test=20build=20was=20OOM-kill?= =?UTF-8?q?ed=20with=20it=20on=20after=20topcoat=200.12=20(runs=20156,=201?= =?UTF-8?q?58)=20=F0=9F=90=9B=20fix:=20a=20failed=20run=20whose=20job=20wa?= =?UTF-8?q?s=20OOM-killed=20points=20its=20failure=20box=20at=20the=20runn?= =?UTF-8?q?er's=20out-of-memory=20line=20instead=20of=20saying=20"No=20err?= =?UTF-8?q?or=20line"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forge/ci.toml | 6 ++---- crates/forge-web/src/pages/ci_fail.rs | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.forge/ci.toml b/.forge/ci.toml index 8f397dd..9334077 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -20,10 +20,8 @@ image = "docker.io/library/rust:1" # CARGO_HOME in the workspace puts the downloaded crates in the cache, so a run downloads only new ones. # That places turso_core's source inside this repo, and its build.rs then watches our .git/HEAD, which # is new in every job, so it would rebuild on every run. With SOURCE_DATE_EPOCH set it skips git. -# Incremental stays on for the test builds, which `target` in the cache lets them reuse. It is on -# trial: it was turned off in 4c4575a to avoid OOM kills, so set CARGO_INCREMENTAL = "0" if they return. -# The dist profile has incremental off. -env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0" } +# Incremental is off: since topcoat 0.12 the forge-web test build was OOM-killed with it on (runs 156, 158). +env = { CARGO_INCREMENTAL = "0", CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0" } # Unit tests run first, so a failure shows before the release build. The e2e tests then run against # the binary this job ships, so forge is not compiled a third time just for them. # The groups are the job's steps on the run page, and `exec 2>&1` keeps a marker in order with cargo's diff --git a/crates/forge-web/src/pages/ci_fail.rs b/crates/forge-web/src/pages/ci_fail.rs index 3f7f9b9..a9cb766 100644 --- a/crates/forge-web/src/pages/ci_fail.rs +++ b/crates/forge-web/src/pages/ci_fail.rs @@ -19,13 +19,14 @@ use crate::state::AppState; const WINDOW: usize = 30; /// Patterns that mark an error line. Matching is case-sensitive, which keeps prose such as "error /// handling" out. `FAILED` also covers `test result: FAILED`. -const PATTERNS: [&str; 6] = [ +const PATTERNS: [&str; 7] = [ "error:", "error[E", "FAILED", "panicked at", "npm ERR!", "fatal:", + "out of memory killer killed", ]; /// The index of the first line that matches an error pattern.