diff --git a/.forge/ci.toml b/.forge/ci.toml index 0b0d860..de74939 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -19,7 +19,12 @@ tags = ["v*"] image = "docker.io/library/rust:1" # Build parallelism comes from the runner (CARGO_BUILD_JOBS follows its CPU limit). Drops debuginfo. env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "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, +# alone; the full run reuses it and compiles only the harness. run = """ +cargo test --workspace --no-run --test e2e cargo test --workspace """ cache = ["target"]