Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rust build threads in CI #4853

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ jobs:
needs: [rustfmt-check]
runs-on: kuzu-self-hosted-testing
env:
CARGO_BUILD_JOBS: 32
# CARGO_BUILD_JOBS is set using this in the Makefile
NUM_THREADS: 32
CMAKE_BUILD_PARALLEL_LEVEL: 32
CC: gcc
CXX: g++
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,10 @@ ifeq ($(OS),Windows_NT)
set CARGO_BUILD_JOBS=$(NUM_THREADS)
else
export CARGO_BUILD_JOBS=$(NUM_THREADS)
endif
export CARGO_BUILD_JOBS=$(NUM_THREADS)
# Note that the number of test threads has a hard limit (unlike with ctest)
# since they are all run in the same process and most tests create a database
# (requiring mmapping 8TB of virtual memory). This quickly exhausts the process' virtual memory.
endif
cd tools/rust_api && cargo test --profile=relwithdebinfo --locked --all-features -- --test-threads=12

wasmtest:
Expand Down