The test job builds the forge binary alone before the full test run, so the binary and its unit-test harness (the whole forge-web crate each, ~3.4 GB of rustc) no longer compile at once and hit the runner's 6.5 GiB box, which OOM-killed the job now and then
Browse files at this commitd136d195f9ec002af235614485f0a5acfdfaec12Parent: 05f3e02- ci
- the test job builds the forge binary alone before the full test run, so the binary and its unit-test harness (the whole forge-web crate each, ~3.4 GB of rustc) no longer compile at once and hit the runner's 6.5 GiB box, which OOM-killed the job now and then
1 changed file +5 -0
- .forge/ci.toml +5 -0
.forge/ci.tomlmodified+5 -0
| @@ -19,7 +19,12 @@ tags = ["v*"] | |||
| 19 | image = "docker.io/library/rust:1" | 19 | image = "docker.io/library/rust:1" |
| 20 | # Build parallelism comes from the runner (CARGO_BUILD_JOBS follows its CPU limit). Drops debuginfo. | 20 | # Build parallelism comes from the runner (CARGO_BUILD_JOBS follows its CPU limit). Drops debuginfo. |
| 21 | env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0" } | 21 | env = { CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0" } |
| 22 | +# main.rs holds the whole forge-web crate, so `cargo test` compiles it twice: the `forge` binary | ||
| 23 | +# (the e2e tests run it) and its unit-test harness, ~3.4 GB of rustc each. Built in parallel they | ||
| 24 | +# hit the runner's box cap and got OOM-killed now and then. The e2e build makes the binary first, | ||
| 25 | +# alone; the full run reuses it and compiles only the harness. | ||
| 22 | run = """ | 26 | run = """ |
| 27 | +cargo test --workspace --no-run --test e2e | ||
| 23 | cargo test --workspace | 28 | cargo test --workspace |
| 24 | """ | 29 | """ |
| 25 | cache = ["target"] | 30 | cache = ["target"] |