Skip to content

Skip building the Rust boltstub when TEST_RUSTY_STUB isn't set - #728

Merged
RichardIrons-neo4j merged 1 commit into
6.xfrom
fix/skip-rust-boltstub-build
Aug 8, 2026
Merged

Skip building the Rust boltstub when TEST_RUSTY_STUB isn't set#728
RichardIrons-neo4j merged 1 commit into
6.xfrom
fix/skip-rust-boltstub-build

Conversation

@RichardIrons-neo4j

@RichardIrons-neo4j RichardIrons-neo4j commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

The runner image unconditionally installed the Rust toolchain and ran cargo build --release regardless of which stub server the run actually uses, using disk and time on every non-rusty-stub job. This was traced back as the root cause of several disk-space CI failures: non-rusty-stub builds only requested 3gb of space, but the toolchain install, apt-get packages, and the compile itself happened every time.

Verified on PR #727's full CI run: the javascript composite, which had failed four times in a row on disk exhaustion, passed cleanly once this fix was in place, and all 14 checks on that PR went green.

The runner image unconditionally installed the Rust toolchain and ran
cargo build --release regardless of which stub server the run actually
uses, wasting disk and time on every non-rusty-stub job. This is the
root cause behind several disk-space CI failures on this PR: jobs that
never touch the Rust stub were still paying its full build cost.

BUILD_RUST_STUB defaults to true (safe for a manual docker build with
no extra args); runner.py now derives it from TEST_RUSTY_STUB using the
same truthy check already used in tests/stub/shared.py.

Verified locally: both branches build cleanly, the real path still
produces a working boltstub binary, the skipped path installs no Rust
toolchain at all.
@RichardIrons-neo4j

Copy link
Copy Markdown
Contributor Author

I'm self-merging this since it is a cause of flaky builds across the team.

@RichardIrons-neo4j
RichardIrons-neo4j merged commit f4a338e into 6.x Aug 8, 2026
14 checks passed
@RichardIrons-neo4j
RichardIrons-neo4j deleted the fix/skip-rust-boltstub-build branch August 8, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant