From cab3430e64b0f6683fefeed3e3fe2e99c33dfc59 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 15 Jul 2026 10:00:50 +0200 Subject: [PATCH] ci: link backend integration tests with mold to fix OOM (exit 143) (#10103) Co-authored-by: Claude Opus 4.8 (1M context) --- .github/workflows/backend-test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index 58905b0b1b..e6fb389e56 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -239,6 +239,16 @@ jobs: - name: cargo test timeout-minutes: 30 env: + # setup-rust-toolchain exports RUSTFLAGS=-D warnings, and the RUSTFLAGS env + # var fully REPLACES (never merges with) target.*.rustflags in + # backend/.cargo/config.toml. That silently drops the config's + # `-C link-arg=-fuse-ld=mold`, so CI links the many large integration-test + # binaries (v8 + duckdb + every language runtime, statically linked) with the + # default bfd linker. Its peak memory across ~12 parallel links OOM-kills the + # runner mid-link (SIGTERM => exit 143, before any test runs). Re-add the mold + # link arg here so CI links with mold like local dev, keeping -D warnings. + # (config.toml's `linker = "clang"` still applies; env only overrides rustflags.) + RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=mold" SQLX_OFFLINE: true DATABASE_URL: postgres://postgres:changeme@localhost:5432/windmill DISABLE_EMBEDDING: true