BlueGit

ict rusty-teams

CI: CARGO_BUILD_JOBS=4 voor de Rust-jobs (VM heeft nu 32 GB RAM)

hephaestus

Authored 2026-11-29 · 1 day ago

Hash
cf74c1cb26bd3f4fab35ad82d4841a6ea71e0f5b
Parent
c297ab41
Pipeline
Warning
2 files changed +10 −10
KVT-FORK.md +1 −1
@@ -88,7 +88,7 @@ twee zware compiles tegelijk.
88 88
89 89 | | |
90 90 |---|---|
91 | Wat | `CARGO_BUILD_JOBS=2`, `RUST_TEST_THREADS=2`, `CARGO_INCREMENTAL=0`, `profile.ci` (`debug = 0`). `app_test` (nu handmatig) compileert één keer met `cargo test --no-run` en draait daarna dezelfde tests (kvt-update, updatertests, kvt-sleutels, `cargo check -p app`). `windows_release` wacht op `linux_release`. Tussen runs een Cargo/rustup-tarball: BlueGit cache't geen mappen, en `target/` is te groot voor de jobcache. |
91 | Wat | `CARGO_BUILD_JOBS=4` (Tim, t2333u: de VM heeft 32 GB RAM; was 2), `RUST_TEST_THREADS=2`, `CARGO_INCREMENTAL=0`, `profile.ci` (`debug = 0`). `app_test` (nu handmatig) compileert één keer met `cargo test --no-run` en draait daarna dezelfde tests (kvt-update, updatertests, kvt-sleutels, `cargo check -p app`). `windows_release` wacht op `linux_release`. Tussen runs een Cargo/rustup-tarball: BlueGit cache't geen mappen, en `target/` is te groot voor de jobcache. |
92 92 | Eigen bestanden | `blue-ci-cd.yml`, `packaging/kvt/ci-cache.sh`, `packaging/kvt/ci-setup.sh` (Cargo/rustup in de werkmap onder `CI`) |
93 93 | Upstream aangeraakt | `Cargo.toml` (alleen `[profile.ci]`) |
94 94 | Commits / MR's | branch `kvt/ci-lichter` (MR volgt als de runners conservatief staan) |
@@ -88,7 +88,7 @@ twee zware compiles tegelijk.
88
88
89| | |
89| | |
90|---|---|
90|---|---|
91| Wat | `CARGO_BUILD_JOBS=2`, `RUST_TEST_THREADS=2`, `CARGO_INCREMENTAL=0`, `profile.ci` (`debug = 0`). `app_test` (nu handmatig) compileert één keer met `cargo test --no-run` en draait daarna dezelfde tests (kvt-update, updatertests, kvt-sleutels, `cargo check -p app`). `windows_release` wacht op `linux_release`. Tussen runs een Cargo/rustup-tarball: BlueGit cache't geen mappen, en `target/` is te groot voor de jobcache. |
91| Wat | `CARGO_BUILD_JOBS=4` (Tim, t2333u: de VM heeft 32 GB RAM; was 2), `RUST_TEST_THREADS=2`, `CARGO_INCREMENTAL=0`, `profile.ci` (`debug = 0`). `app_test` (nu handmatig) compileert één keer met `cargo test --no-run` en draait daarna dezelfde tests (kvt-update, updatertests, kvt-sleutels, `cargo check -p app`). `windows_release` wacht op `linux_release`. Tussen runs een Cargo/rustup-tarball: BlueGit cache't geen mappen, en `target/` is te groot voor de jobcache. |
92| Eigen bestanden | `blue-ci-cd.yml`, `packaging/kvt/ci-cache.sh`, `packaging/kvt/ci-setup.sh` (Cargo/rustup in de werkmap onder `CI`) |
92| Eigen bestanden | `blue-ci-cd.yml`, `packaging/kvt/ci-cache.sh`, `packaging/kvt/ci-setup.sh` (Cargo/rustup in de werkmap onder `CI`) |
93| Upstream aangeraakt | `Cargo.toml` (alleen `[profile.ci]`) |
93| Upstream aangeraakt | `Cargo.toml` (alleen `[profile.ci]`) |
94| Commits / MR's | branch `kvt/ci-lichter` (MR volgt als de runners conservatief staan) |
94| Commits / MR's | branch `kvt/ci-lichter` (MR volgt als de runners conservatief staan) |
blue-ci-cd.yml +9 −9
@@ -15,7 +15,7 @@
15 15 # hebben de gedeelde BlueGit-runner herhaaldelijk onderuit gehaald. Draai de
16 16 # volledige tests lokaal (cargo test -p app / -p app-state / -p kvt-sleutels)
17 17 # of start de jobs bewust met "play".
18 # Rust-jobs gebruiken CARGO_BUILD_JOBS=2, RUST_TEST_THREADS=2,
18 # Rust-jobs gebruiken CARGO_BUILD_JOBS=4 (Tim, t2333u; VM heeft 32 GB), RUST_TEST_THREADS=2,
19 19 # CARGO_INCREMENTAL=0 en profile.ci (debug=0). Tussen runs bewaren ze
20 20 # een Cargo/rustup-tarball: BlueGit cache't geen mappen, en target/
21 21 # is te groot voor de jobcache.
@@ -146,7 +146,7 @@ sync-upstream:
146 146 .kvt_rust:
147 147 variables:
148 148 CARGO_INCREMENTAL: "0"
149 CARGO_BUILD_JOBS: "2"
149 CARGO_BUILD_JOBS: "4"
150 150 RUST_TEST_THREADS: "2"
151 151
152 152 # De scripts in packaging/kvt (shell-syntaxis en tests.sh). Geen apt-installs en
@@ -207,13 +207,13 @@ app_test:
207 207 - packaging/kvt/ci-cache.sh restore linux
208 208 - packaging/kvt/ci-setup.sh linux
209 209 - . "${CARGO_HOME:-$HOME/.cargo}/env"
210 - cargo test --locked --profile ci -j2 --no-run -p kvt-update
211 - cargo test --locked --profile ci -j2 --no-run -p kvt-sleutels
212 - cargo test --locked --profile ci -j2 --no-run -p app-base --lib
213 - cargo check --locked --profile ci -j2 -p app
214 - cargo test --locked --profile ci -j2 -p kvt-update
215 - cargo test --locked --profile ci -j2 -p kvt-sleutels
216 - cargo test --locked --profile ci -j2 -p app-base --lib -- release_feed kvt_feed updater
210 - cargo test --locked --profile ci -j4 --no-run -p kvt-update
211 - cargo test --locked --profile ci -j4 --no-run -p kvt-sleutels
212 - cargo test --locked --profile ci -j4 --no-run -p app-base --lib
213 - cargo check --locked --profile ci -j4 -p app
214 - cargo test --locked --profile ci -j4 -p kvt-update
215 - cargo test --locked --profile ci -j4 -p kvt-sleutels
216 - cargo test --locked --profile ci -j4 -p app-base --lib -- release_feed kvt_feed updater
217 217 - packaging/kvt/ci-cache.sh save linux
218 218
219 219 # Linux: release-build met de tag als versie (TEAMS_RELEASE_TAG via build.rs),
@@ -15,7 +15,7 @@
15# hebben de gedeelde BlueGit-runner herhaaldelijk onderuit gehaald. Draai de
15# hebben de gedeelde BlueGit-runner herhaaldelijk onderuit gehaald. Draai de
16# volledige tests lokaal (cargo test -p app / -p app-state / -p kvt-sleutels)
16# volledige tests lokaal (cargo test -p app / -p app-state / -p kvt-sleutels)
17# of start de jobs bewust met "play".
17# of start de jobs bewust met "play".
18# Rust-jobs gebruiken CARGO_BUILD_JOBS=2, RUST_TEST_THREADS=2,
18# Rust-jobs gebruiken CARGO_BUILD_JOBS=4 (Tim, t2333u; VM heeft 32 GB), RUST_TEST_THREADS=2,
19# CARGO_INCREMENTAL=0 en profile.ci (debug=0). Tussen runs bewaren ze
19# CARGO_INCREMENTAL=0 en profile.ci (debug=0). Tussen runs bewaren ze
20# een Cargo/rustup-tarball: BlueGit cache't geen mappen, en target/
20# een Cargo/rustup-tarball: BlueGit cache't geen mappen, en target/
21# is te groot voor de jobcache.
21# is te groot voor de jobcache.
@@ -146,7 +146,7 @@ sync-upstream:
146.kvt_rust:
146.kvt_rust:
147 variables:
147 variables:
148 CARGO_INCREMENTAL: "0"
148 CARGO_INCREMENTAL: "0"
149 CARGO_BUILD_JOBS: "2"
149 CARGO_BUILD_JOBS: "4"
150 RUST_TEST_THREADS: "2"
150 RUST_TEST_THREADS: "2"
151
151
152# De scripts in packaging/kvt (shell-syntaxis en tests.sh). Geen apt-installs en
152# De scripts in packaging/kvt (shell-syntaxis en tests.sh). Geen apt-installs en
@@ -207,13 +207,13 @@ app_test:
207 - packaging/kvt/ci-cache.sh restore linux
207 - packaging/kvt/ci-cache.sh restore linux
208 - packaging/kvt/ci-setup.sh linux
208 - packaging/kvt/ci-setup.sh linux
209 - . "${CARGO_HOME:-$HOME/.cargo}/env"
209 - . "${CARGO_HOME:-$HOME/.cargo}/env"
210 - cargo test --locked --profile ci -j2 --no-run -p kvt-update
210 - cargo test --locked --profile ci -j4 --no-run -p kvt-update
211 - cargo test --locked --profile ci -j2 --no-run -p kvt-sleutels
211 - cargo test --locked --profile ci -j4 --no-run -p kvt-sleutels
212 - cargo test --locked --profile ci -j2 --no-run -p app-base --lib
212 - cargo test --locked --profile ci -j4 --no-run -p app-base --lib
213 - cargo check --locked --profile ci -j2 -p app
213 - cargo check --locked --profile ci -j4 -p app
214 - cargo test --locked --profile ci -j2 -p kvt-update
214 - cargo test --locked --profile ci -j4 -p kvt-update
215 - cargo test --locked --profile ci -j2 -p kvt-sleutels
215 - cargo test --locked --profile ci -j4 -p kvt-sleutels
216 - cargo test --locked --profile ci -j2 -p app-base --lib -- release_feed kvt_feed updater
216 - cargo test --locked --profile ci -j4 -p app-base --lib -- release_feed kvt_feed updater
217 - packaging/kvt/ci-cache.sh save linux
217 - packaging/kvt/ci-cache.sh save linux
218
218
219# Linux: release-build met de tag als versie (TEAMS_RELEASE_TAG via build.rs),
219# Linux: release-build met de tag als versie (TEAMS_RELEASE_TAG via build.rs),