ci: test-crates uses all cores (jobs=2 was a Slint-era memory tier)

Measured cold on the 4-vCPU CI VM: CARGO_BUILD_JOBS=4 finishes the
workspace test in 392 s against 589 s at jobs=2, with a 2.7 GB peak on
a 10 GB guest. The throttle protected a 30 GB rustc that no longer
exists in this graph. Leave the job count to cargo in the workflow and
in scripts/cargo-test.sh alike; --no-fail-fast and the 20-minute limit
stay.

cc
This commit is contained in:
vicrodh committed 2026-08-26 20:22:17 -06:00
1 parent f53543d1a4
commit 811f6e978c
2 files changed
+9 -8

No files matched your search

+3 -4
View File
@@ -52,8 +52,9 @@ jobs:
test:
name: cargo test (workspace, no UI)
runs-on: ubuntu-24.04
# The rule: CARGO_BUILD_JOBS=2, --no-fail-fast, 20 minutes. Cold ~10 min
# on the 4-vCPU runner (measured 589 s on an equivalent VM), warm ~2.
# The rule: --no-fail-fast, 20 minutes. All cores: measured cold on an
# equivalent 4-vCPU VM, 392 s (jobs=4) vs 589 s (jobs=2), 2.7 GB peak —
# the old jobs=2 was a Slint-era memory tier with nothing left to protect.
timeout-minutes: 20
steps:
- name: Checkout
@@ -83,7 +84,6 @@ jobs:
- name: cargo test (scripts/cargo-test.sh — the local mirror)
env:
CARGO_TERM_COLOR: always
CARGO_BUILD_JOBS: "2"
run: |
rustc -V; cargo -V
START=$(date +%s)
@@ -171,7 +171,6 @@ jobs:
- name: qt gates (scripts/cargo-test.sh QT=1, without the workspace test)
env:
CARGO_TERM_COLOR: always
CARGO_BUILD_JOBS: "2"
QBZ_QT_QML_DIR: ${{ env.QT_ROOT_DIR }}/qml
run: |
set -euo pipefail