fix(ci): set RUST_MIN_STACK=16MB to fix rustc stack overflow on filter lib test#395
Merged
fix(ci): set RUST_MIN_STACK=16MB to fix rustc stack overflow on filter lib test#395
Conversation
…erflow PR #389 raised `ruvector-filter`'s `recursion_limit` to 4096 to fix an E0275 trait-resolution overflow (serde_json's `Serializer` blanket impl chains through every variant of the filter expression AST). With that limit in place rustc successfully *resolves* the bound, but the deeper resolution drives rustc's own process stack past the default 8 MB ceiling on x86_64 Linux runners — surfacing as `signal: 11, SIGSEGV` and the diagnostic message: note: rustc unexpectedly overflowed its stack! this is a bug help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216 This trips PR test shards that touch ruvector-filter (seen on PR #391 and PR #393). Setting `RUST_MIN_STACK=16777216` at the workspace level via `.cargo/[env]` applies it to every `cargo` invocation locally and in CI without per-job env wiring, and is exactly the value the rustc help text recommends. No code change. The fix is one .cargo/config.toml line. Co-Authored-By: claude-flow <ruv@ruv.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #389 raised
ruvector-filter'srecursion_limitto 4096 to fix an E0275 trait-resolution overflow. That worked — but the deeper trait resolution now drives rustc's own process stack past the default 8 MB on x86_64 Linux runners, surfacing assignal: 11, SIGSEGVand:Tripping the test shard on PR #391 and PR #393 today.
Fix
Add
RUST_MIN_STACK = "16777216"to.cargo/config.toml[env]. One line. Applies to everycargoinvocation locally and in CI without per-job env wiring. The value is what rustc's help text suggests.Test plan
cargo check -p ruvector-filter --testsclean locallycore-and-restshard which is the one that's been failing)🤖 Generated with claude-flow