Skip to content

[nextest-runner] fix slow test display with --status-level fail#3236

Merged
sunshowers merged 1 commit into
mainfrom
status-fail-display
Mar 31, 2026
Merged

[nextest-runner] fix slow test display with --status-level fail#3236
sunshowers merged 1 commit into
mainfrom
status-fail-display

Conversation

@sunshowers

Copy link
Copy Markdown
Member

Previously we would display lines like:

[> 60.000s] (─────────) omicron-nexus app::sagas::snapshot_create::test::test_action_failure_can_unwind_no_pantry
[> 60.000s] (─────────) oximeter-db client::tests::test_replicated

where the status (SLOW) isn't displayed but the test name and durations are. That is definitely buggy.

Fix and add tests. This can be reproduced with:

cargo nextest replay -R =(curl -L https://buildomat.eng.oxide.computer/wg/0/artefact/01KN02PY451PZYF3H5FKR99G7E/XhPWJ5Y9hYidiHof0Dg3hH5QhN8cFsRzzXmBAc4JNSX0EIKi/01KN02Q95YCQ9SY3V907RCXCXB/01KN0459SV6Y6EDAZ962QEQ3ZX/nextest-run-archive.zip) --status-level fail

Previously we would display lines like:

```
[> 60.000s] (─────────) omicron-nexus app::sagas::snapshot_create::test::test_action_failure_can_unwind_no_pantry
[> 60.000s] (─────────) oximeter-db client::tests::test_replicated
```

where the status (SLOW) isn't displayed but the test name and durations are. That is definitely buggy.

Fix and add tests. This can be reproduced with:

```
cargo nextest replay -R =(curl -L https://buildomat.eng.oxide.computer/wg/0/artefact/01KN02PY451PZYF3H5FKR99G7E/XhPWJ5Y9hYidiHof0Dg3hH5QhN8cFsRzzXmBAc4JNSX0EIKi/01KN02Q95YCQ9SY3V907RCXCXB/01KN0459SV6Y6EDAZ962QEQ3ZX/nextest-run-archive.zip) --status-level fail
```
@codecov

codecov Bot commented Mar 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.18182% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.44%. Comparing base (90bce52) to head (4819f7a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
nextest-runner/src/reporter/displayer/imp.rs 98.18% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3236      +/-   ##
==========================================
+ Coverage   85.37%   85.44%   +0.06%     
==========================================
  Files         159      159              
  Lines       47063    47202     +139     
==========================================
+ Hits        40182    40333     +151     
+ Misses       6881     6869      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@trunk-io

trunk-io Bot commented Mar 31, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@sunshowers sunshowers merged commit 66d1dca into main Mar 31, 2026
26 checks passed
@sunshowers sunshowers deleted the status-fail-display branch March 31, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant