diff --git a/.forge/ci.toml b/.forge/ci.toml index dcc8cd4..eb85025 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -5,7 +5,7 @@ # (two runners, or one runner with concurrency = 2). Capacity includes memory: each job declares its # peak in `memory`, and a runner admits a job only while the declared memory of its running jobs # fits its budget. On the 7.6 GiB runner host the budget is about 6.5 GiB, and test plus build -# declare 4g each, so they do NOT run together there: one heavy job at a time is the point. An +# declare 5g each, so they do NOT run together there: one heavy job at a time is the point. An # earlier run with concurrency 4 hit a host-wide OOM and the kernel killed rustc mid-build. # The build job's artifacts are still only used # once the whole run is green: a tag push matching "v*" publishes a release with the build job's @@ -21,8 +21,8 @@ tags = ["v*"] [jobs.test] image = "docker.io/library/rust:1" # Runner has a few GB RAM and 2 CPUs: rustc runs one crate at a time because a single forge-web compile needs several GB. Also drops debuginfo. -# memory: rustc peaked at 3.1 to 3.6 GB RSS in the OOM data, so 4g is the expected peak, and the job's cgroup is capped at 4g plus slack. -memory = "4g" +# memory: rustc peaked at 3.1 to 3.6 GB RSS in the OOM data. Jobs cannot swap, so 5g leaves room for cargo and the linker on top; only one heavy job fits the budget either way. +memory = "5g" env = { CARGO_BUILD_JOBS = "1", CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0" } run = """ cargo test --workspace @@ -33,8 +33,8 @@ timeout_minutes = 120 [jobs.build] image = "docker.io/library/rust:1" # Runner has a few GB RAM and 2 CPUs: rustc runs one crate at a time because a single forge-web compile needs several GB. -# memory: the dist profile uses thin LTO, whose link step peaks like the test build (3.1 to 3.6 GB RSS seen), so 4g. -memory = "4g" +# memory: the dist profile uses thin LTO, whose link step peaks like the test build (3.1 to 3.6 GB RSS seen). 5g for the same headroom reason. +memory = "5g" env = { CARGO_BUILD_JOBS = "1", CARGO_INCREMENTAL = "0" } run = """ cargo build --profile dist -p forge-web -p forge-runner