Repository navigation
Conversation
APFS rejects non-UTF-8 filenames with EILSEQ, so the test's setup fails on macOS before the filter is exercised. Kubernetes projected secrets are Linux-only, so restrict the test to target_os = "linux". Signed-off-by: Ed Snible <snible@us.ibm.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Restrict test platform filters/src/routing/credential_inject.rs |
The test’s platform guard changes from unix to target_os = "linux". A comment notes APFS’s non-UTF-8 filename limitation. |
Priority:
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related PRs
- praxis-proxy/ai#1737: Adds the shared credential-source reader and watcher used by projected credential files, which this test exercises.
- praxis-proxy/ai#1794: Updates the credential-injection watcher and adds projected-subdirectory rotation coverage in the same component.
Suggested reviewers: leseb
Merge Risk: 
Minimal · up to 8aeae
-
The test adjustment should allow the macOS unit-test workflow to pass without reducing Linux coverage.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Linked Issues check
-
Explanation
Issue
#1835requires macOS test execution to pass or skip. The changed testprojected_secret_reads_preserve_non_utf8_canonical_pathsnow uses#[cfg(target_os = "linux")], so macOS skips it. The comment documents the APFS limitation. Linux coverage remains enabled.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Comment @coderabbitai help to get the list of available commands.
Summary
projected_secret_reads_preserve_non_utf8_canonical_pathswas gated on#[cfg(unix)], which includes macOS. APFS rejects non-UTF-8 filenames withEILSEQ(os error 92), so the test's setup (std::fs::writeoftarget-\xff) panics before the filter is exercised, andmake test-unit-filtersfails on every Mac.Kubernetes projected secrets only exist on Linux nodes, so this narrows the gate to
#[cfg(target_os = "linux")]and adds a comment explaining why. Linux coverage is unchanged.Related issue
Closes #1835
Validation
cargo test -p praxis-ai-filters --lib routing::credential_injecton macOS 15.7.9. The non-UTF-8 test is no longer compiled there; before this change it failed withIllegal byte sequence.make lint: the nightly toolchain install failed locally (rustup 502), so I rancargo +nightly fmt --all -- --checkandcargo clippy -p praxis-ai-filters --all-targets -- -D warningsinstead; both pass.Note:
watcher_shutdown_wakes_without_receive_timeoutin the same module can also fail on macOS under load. It asserts teardown in under 100ms and takes about 90–110ms locally. That's a separate timing issue and isn't addressed here.Checklist
Signed-off-bytrailer.Breaking changes
None.
Assisted by Claude.
🤖 Generated with Claude Code
Summary by CodeRabbit