Skip to content

test(ocx-child): report failed Rust case names in CI - #9121

Open
luvs01 wants to merge 1 commit into
lidge-jun:devfrom
luvs01:codex/show-failed-rust-cases
Open

luvs01 wants to merge 1 commit into
lidge-jun:devfrom
luvs01:codex/show-failed-rust-cases

Conversation

@luvs01

@luvs01 luvs01 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • 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.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to 035b2

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

Commits

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.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 25, 2026
@luvs01
luvs01 marked this pull request as ready for review November 25, 2026 05:56

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant