forge
Explore
Log in

Don't you dare go Hollow

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 commit

d136d195f9ec002af235614485f0a5acfdfaec12Ahmet Kaan GümüşParent: 05f3e02
All checks have passed
Show checks
  • 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
Show full message
💚 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
.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 --workspace28 cargo test --workspace
24 """29 """
25 cache = ["target"]30 cache = ["target"]