Skip to content

fix(repo): resolve FreeBSD build disk space issue#35030

Merged
FrozenPandaz merged 2 commits intomasterfrom
fix/freebsd-disk-space
Mar 26, 2026
Merged

fix(repo): resolve FreeBSD build disk space issue#35030
FrozenPandaz merged 2 commits intomasterfrom
fix/freebsd-disk-space

Conversation

@FrozenPandaz
Copy link
Copy Markdown
Contributor

Current Behavior

The FreeBSD native build in the publish workflow runs out of disk space (No space left on device). The VM has an 11G disk and the Rust build fills it completely. The build was already on the edge — the Mar 25 run succeeded with only 11MB to spare, and the Mar 26 run failed after rustc 1.94.1 slightly increased artifact sizes.

A major contributor is OpenJDK17 and its ~30 X11/font dependencies (~500MB) being installed solely for the @nx/gradle plugin's project graph step, which is irrelevant to building native Rust bindings.

Expected Behavior

The FreeBSD build completes successfully with comfortable disk headroom by disabling the Gradle plugin via NX_GRADLE_DISABLE=true, which eliminates the need for Java and its heavy dependency tree.

Related Issue(s)

Fixes the FreeBSD build failure: https://github.com/nrwl/nx/actions/runs/23613960439/job/68776656960

@FrozenPandaz FrozenPandaz requested a review from a team as a code owner March 26, 2026 20:45
@FrozenPandaz FrozenPandaz requested a review from MaxKless March 26, 2026 20:45
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 26, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit d0a26f3
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69c5a6a1dc9101000882b98e
😎 Deploy Preview https://deploy-preview-35030--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 26, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit d0a26f3
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69c5a6a1a5451d0008e08f1e
😎 Deploy Preview https://deploy-preview-35030--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Mar 26, 2026

View your CI Pipeline Execution ↗ for commit d0a26f3

Command Status Duration Result
nx run-many --target=build-native -- --target=x... ✅ Succeeded 6m 44s View ↗
nx run-many --target=build-native -- --target=a... ✅ Succeeded 7m 11s View ↗
nx run-many --verbose --outputStyle stream --ta... ✅ Succeeded 7m 31s View ↗
nx run-many --target=build-native -- --target=a... ✅ Succeeded 4m 33s View ↗
nx run-many --target=build-native -- --target=x... ✅ Succeeded 4m 24s View ↗
nx run-many --target=build-native -- --target=a... ✅ Succeeded 3m 14s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-26 22:39:44 UTC

@FrozenPandaz FrozenPandaz force-pushed the fix/freebsd-disk-space branch from 7f400e6 to f9e3d6d Compare March 26, 2026 20:53
… plugin

The FreeBSD VM only has 11G of disk and the Rust native build was running
out of space. Disabling the Gradle plugin avoids installing OpenJDK17 and
its ~30 X11/font dependencies (~500MB), which aren't needed for the native
bindings build.

Also explicitly install ca_root_nss for CA certificates (previously pulled
in transitively by openjdk17), and stop deleting ~/.cargo/registry and
~/.cargo/git during cleanup since Cargo needs them to resolve dependencies.
@FrozenPandaz FrozenPandaz force-pushed the fix/freebsd-disk-space branch from f9e3d6d to 08bf725 Compare March 26, 2026 21:18
The `creation_flags()` call requires a mutable `Command`, but the variable
was declared immutable. This only manifests on Windows builds since the
call is behind `#[cfg(target_os = "windows")]`. Split into separate cfg
blocks so each platform compiles cleanly.
@FrozenPandaz FrozenPandaz enabled auto-merge (squash) March 26, 2026 21:36
@FrozenPandaz FrozenPandaz merged commit 9747038 into master Mar 26, 2026
42 of 43 checks passed
@FrozenPandaz FrozenPandaz deleted the fix/freebsd-disk-space branch March 26, 2026 22:39
FrozenPandaz added a commit that referenced this pull request Mar 26, 2026
## Current Behavior

The FreeBSD native build in the publish workflow runs out of disk space
(`No space left on device`). The VM has an 11G disk and the Rust build
fills it completely. The build was already on the edge — the Mar 25 run
succeeded with only 11MB to spare, and the Mar 26 run failed after rustc
1.94.1 slightly increased artifact sizes.

A major contributor is OpenJDK17 and its ~30 X11/font dependencies
(~500MB) being installed solely for the `@nx/gradle` plugin's project
graph step, which is irrelevant to building native Rust bindings.

## Expected Behavior

The FreeBSD build completes successfully with comfortable disk headroom
by disabling the Gradle plugin via `NX_GRADLE_DISABLE=true`, which
eliminates the need for Java and its heavy dependency tree.

## Related Issue(s)

Fixes the FreeBSD build failure:
https://github.com/nrwl/nx/actions/runs/23613960439/job/68776656960

(cherry picked from commit 9747038)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants