From 75d5a52fc127df54bf9e44a4e633edc6d338b306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 31 Oct 2026 16:30:26 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20SOURCE=5FDATE=5FEPOCH=20is?= =?UTF-8?q?=20set=20in=20both=20jobs,=20so=20turso=5Fcore=20stops=20rebuil?= =?UTF-8?q?ding=20on=20every=20run:=20with=20CARGO=5FHOME=20in=20the=20wor?= =?UTF-8?q?kspace=20its=20build.rs=20found=20our=20repo=20and=20watched=20?= =?UTF-8?q?.git/HEAD,=20which=20is=20new=20in=20every=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forge/ci.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forge/ci.toml b/.forge/ci.toml index d08af2f..81c28d0 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -19,7 +19,9 @@ tags = ["v*"] image = "docker.io/library/rust:1" # Build parallelism comes from the runner (CARGO_BUILD_JOBS follows its CPU limit). Drops debuginfo. # CARGO_HOME in the workspace puts the downloaded crates in the cache, so a run downloads only new ones. -env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home" } +# 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. +env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0" } # main.rs holds the whole forge-web crate, so `cargo test` compiles it twice: the `forge` binary # (the e2e tests run it) and its unit-test harness, ~3.4 GB of rustc each. Built in parallel they # hit the runner's box cap and got OOM-killed now and then. The e2e build makes the binary first, @@ -35,7 +37,7 @@ timeout_minutes = 120 image = "docker.io/library/rust:1" needs = ["test"] # Build parallelism comes from the runner (CARGO_BUILD_JOBS follows its CPU limit). -env = { CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home" } +env = { CARGO_INCREMENTAL = "0", CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0" } run = """ cargo build --profile dist -p forge-web -p forge-runner ARCH=$(uname -m)