Repository navigation
test_runner: add kind to test:diagnostic events - #68026
Open
ShogunPanda wants to merge 1 commit into
Open
ShogunPanda wants to merge 1 commit into
ShogunPanda wants to merge 1 commit into
Conversation
Collaborator
|
Review requested:
|
When using process isolation, the parent process recognized the run level totals reported by each child by matching the text of the diagnostic messages. User diagnostics with the same shape, such as `pass 42`, were silently dropped. Add a `kind` property to `test:diagnostic` events, set to `'summary'` for the run level totals, and use it to filter them instead. Refs: nodejs#46441 Signed-off-by: Paolo Insogna <paolo@cowtech.it>
ShogunPanda
force-pushed
the
reporter-event-kind
branch
from
December 5, 2026 10:13
65e3574 to
7c3cdd1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #68026 +/- ##
==========================================
+ Coverage 90.58% 90.59% +0.01%
==========================================
Files 802 802
Lines 287050 287043 -7
Branches 55431 55431
==========================================
+ Hits 260013 260042 +29
+ Misses 17131 17085 -46
- Partials 9906 9916 +10
🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
With process isolation, the test runner silently drops user diagnostics that look like one of the run level totals. For example,
t.diagnostic('pass 42')in a top-level test is never reported, while it is reported with--test-isolation=none.Each child process reports its own totals as plain
test:diagnosticevents, and the parent recognized them by matching the message text. This PR adds akindproperty totest:diagnosticevents, set to'summary'for the run level totals, and makes the parent filter on it instead.Changes
test:diagnosticevents now have akindproperty. It is'summary'for the totals reported by the root test andundefinedotherwise.kindrather than on the message, so user diagnostics are always reported.kindto recognize the totals without parsing the message.Notes
kindis a string rather than a boolean so that other kinds can be added later without a new property.test:diagnosticevent, so this should be semver-minor.Additional Informations
AI-assisted work. All changes reviewed by a human.