You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: restore unit tests without default features - #349
With lz4 disabled, keyspace_opts_compression_none passes KvSeparationOptions to with_kv_separation, which expects Option<KvSeparationOptions>. As a result, cargo test --no-default-features --lib fails with E0308 before running any tests.
Wrap the options in Some, as the default-feature test already does. Add the no-default-features unit-test command to the existing stable/MSRV and OS test matrix: feature-combination builds do not compile this cfg(test) branch.
Validation on Windows:
Before: the command fails at src/keyspace/options.rs:709 with E0308.
After: 73 tests pass, 1 existing test ignored, on both Rust 1.98 and 1.90. The same suite also passes with bytes_1 enabled.
Default-feature unit tests: 75 pass, 1 ignored; doctests: 86 pass.
Linux/macOS CI execution has not been verified locally. This changes tests and CI only; runtime behavior, public APIs, dependencies and disk format are unchanged.
Summary by CodeRabbit
Bug Fixes
Corrected key-value separation setup in compression tests for builds without LZ4 support.
Tests
Added library test runs with default features disabled, helping verify behavior across feature configurations.
No actionable comments were generated in the recent review.
Walkthrough
The test workflow now runs library tests without default features. A keyspace options test passes its default separation options through the method’s optional argument.
Changes: Library test coverage
Layer / File(s)
Summary
Run library tests without default features .github/workflows/test.yml, src/keyspace/options.rs
The workflow adds cargo test --no-default-features --lib. The keyspace options test passes Some(KvSeparationOptions::default()) to with_kv_separation.
No merge-blocking correctness, security, or availability risk remains in the reviewed changes.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "test: restore unit tests without default features" matches the main change. The PR wraps the KvSeparationOptions argument in Some(...) so the lz4-disabled cfg(test) branch compiles, and it …
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "test: restore unit tests without default features" matches the main change. The PR wraps the KvSeparationOptions argument in Some(...) so the lz4-disabled cfg(test) branch compiles, and it adds a CI step running cargo test --no-default-features --lib so these unit tests run in the test matrix. The title is specific and short, and it describes the primary intent stated in the PR objectives. It does not name the Some(...) fix or the CI change, but the changeset does not need every detail covered.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Tip
🎯 Customize your risk assessments
Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.
✅ Automatic approvals, with your rules
Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 5663dd8e-698c-4a2b-baf6-bdecbc2daa6e
Commits
Reviewing files that changed from the base of the PR and between 8700604 and d79d05f.
Files selected for processing: 2
.github/workflows/test.yml
src/keyspace/options.rs
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
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
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.
With
lz4disabled,keyspace_opts_compression_nonepassesKvSeparationOptionstowith_kv_separation, which expectsOption<KvSeparationOptions>. As a result,cargo test --no-default-features --libfails with E0308 before running any tests.Wrap the options in
Some, as the default-feature test already does. Add the no-default-features unit-test command to the existing stable/MSRV and OS test matrix: feature-combination builds do not compile thiscfg(test)branch.Validation on Windows:
src/keyspace/options.rs:709with E0308.bytes_1enabled.cargo fmt --all -- --check,cargo clippy,git diff --checkpass. Clippy retains existing warnings.Linux/macOS CI execution has not been verified locally. This changes tests and CI only; runtime behavior, public APIs, dependencies and disk format are unchanged.
Summary by CodeRabbit
Bug Fixes
Tests