From f18674dfd957bfd5f30e18b293242960e2d260cd Mon Sep 17 00:00:00 2001 From: Marcus Kainth Date: Fri, 25 Sep 2026 11:14:59 +0100 Subject: [PATCH] ci: build the test archives without debug info The workspace archive was 2.63 GB (2,631,156,768 bytes), almost all of it DWARF: a driver test binary is about 465 MB with full debug info and about 9 MB without. Uploading it took 78 to 83 s and a test job's download took 33 to 363 s. With CARGO_PROFILE_TEST_DEBUG=0 the same archive is 187 MB. Line tables only (line-tables-only) would keep 860 MB. A panic's message and its file and line come from the panic location, which does not depend on debug info, so a failing test reports the same thing it reports now. The variable is set on the job so rust-cache includes it in its key; the dependencies it restores were built under the same setting. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9679ce..8b558d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,6 +110,11 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + env: + # The test binaries carry no debug info. A failing test still reports + # its panic message with the file and line; a backtrace names + # functions only. Set for the job so rust-cache keys on it. + CARGO_PROFILE_TEST_DEBUG: "0" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: