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(ocx-child): report failed Rust case names in CI - #9121
Expose the failing Rust test names when an ocx-child Cargo run returns a nonzero exit code. Cargo writes its target name to stderr, while libtest writes the individual case results to stdout. The Linux check on #9063, for example, reported exit 101 without naming the case. Its second attempt passed on the same commit.
Keep up to 16 standard libtest failure lines with bounded Rust identifiers. Captured fixture output and panic messages stay out of this diagnostic. Existing stderr, toolchain information, signal handling and the transcript returned on success retain their current behavior.
Verification
Tested the modified helper against a temporary dependency-free Rust crate with real Cargo in offline mode. Three Bun checks passed with 11 assertions. They cover a named exit-101 failure without fixture output or panic text, the 16-name limit across 18 failures, and the successful transcript. The first cold compile exceeded Bun's default five-second test timeout. The completed checks used the helper's existing 100-second test budget.
bun run typecheck passed for 2,706 files on Bun 1.4.4. git diff --check passed.
Local verification targeted the Cargo helper. The full suite and the Linux WebSocket process test are left to CI. The WebSocket tests are already gated off on Windows.
Checklist
Scope stays focused and avoids unrelated cleanup.
No user-facing documentation or release note is required for a CI failure message.
Reviewed diagnostic fields and retained only standard libtest failed-case identifiers from stdout on ordinary nonzero exit.
Summary by CodeRabbit
Tests
Test failure reports now provide clearer diagnostic details, including relevant failed case names, error output, and toolchain information. Successful test runs continue to return their output as before. These changes affect test reporting and do not alter application behavior.
No actionable comments were generated in the recent review.
Walkthrough
ocxChildCargoTest now captures stdout once and includes it in signal-termination errors. For nonzero exits, the assertion reports up to 16 matched failed test names, stderr, and toolchain details.
Changes: Cargo test diagnostics
Layer / File(s)
Summary
Capture and report test output tests/helpers/ocx-child-cargo.ts (lines 30–38)
The helper stores stdout before handling the result. Signal-termination errors include captured stdout. Nonzero-exit assertion messages include up to 16 matched failed test names, stderr, and toolchain details.
This change makes failed Cargo test runs report the names of the failing Rust test cases. It affects only test diagnostics, not production behavior, and no merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: ocx-child failure reporting now surfaces failed Rust case names in CI. The raw summary confirms ocxChildCargoTest now reports up to 16 failed libtest case names on non…
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 names the main change: ocx-child failure reporting now surfaces failed Rust case names in CI. The raw summary confirms ocxChildCargoTest now reports up to 16 failed libtest case names on nonzero exit, and the objectives match this scope. The title is specific, short, and in conventional-commit form, so it passes.
Finishing Touches
Generate unit tests (beta)
Create a new PR
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.
Reviewing files that changed from the base of the PR and between d2e308d and 035b2d5.
Files selected for processing: 1
tests/helpers/ocx-child-cargo.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 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
choreMaintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).
1 participant
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
Expose the failing Rust test names when an ocx-child Cargo run returns a nonzero exit code. Cargo writes its target name to stderr, while libtest writes the individual case results to stdout. The Linux check on #9063, for example, reported exit 101 without naming the case. Its second attempt passed on the same commit.
Keep up to 16 standard libtest failure lines with bounded Rust identifiers. Captured fixture output and panic messages stay out of this diagnostic. Existing stderr, toolchain information, signal handling and the transcript returned on success retain their current behavior.
Verification
bun run typecheckpassed for 2,706 files on Bun 1.4.4.git diff --checkpassed.Checklist
Summary by CodeRabbit