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
Show truthful CI progress and failure-first terminal summaries - #12141
Make non-cursor Microsoft.Testing.Platform logs show truthful progress even when --show-test-results failed hides successful test results. A heartbeat is due after 60 seconds without visible reporter output, not 60 seconds without a test completion. It reports cumulative completed/failed results across finished and active modules, active modules, and last-completion age (or explicitly no completions yet).
Put the non-cursor final verdict, counts, and failure recaps ahead of artifact details. Do not repeat successful module results that were already printed at completion. Preserve complete artifacts and process diagnostics, failed-test versus host-error counts, progress suppression, retries, and cursor-capable interactive output.
Motivated by the approved investigation of public build 1655468, rather than a separately filed issue. This PR does not merge or enable anything downstream.
The change reuses the existing renderer and summary/handshake/errored-assembly mechanisms. There is no new public API, CLI option, or protocol field. --progress off, the existing zero-valued heartbeat override, and slow-test backoff remain supported. Successful final module details remain available when the caller did not print completion lines.
The SDK vendors this reporter source: source-linked tests and packed-host proof alone do not establish that the outer dotnet test console changed. Executed composed evidence is now available in dotnet/sdk#56851 at f5838f51c497a70fb60f3ed7e89102ca293b6838, using this implementation and the aligned packages. This batch targets main only: no backport, downstream SDK-pin update, or feature-gate rollout is included. Any future downstream pin or backport requires its own release-branch validation; existing SDK releases are not fixed by this PR.
The SDK owner has received an immutable feed of all 32 same-source shipping packages from the implementation commit, including MSTest SDK/framework/adapter/source-generation and Trx/CTRF/AzureDevOps/JUnit/HangDump. Task-local versions are 4.6.0-preview.26530.102 (MSTest), 2.6.0-preview.26530.102 (MTP family), and 1.0.0-preview.26530.102 (JUnit). Because the SDK generates JUnit's default independently of the task-local VersionSuffix, its consumer must set MicrosoftTestingExtensionsJUnitReportVersion=1.0.0-preview.26530.102. No old-extension/new-core-only pairing is required for downstream validation.
Demonstration
Text transcripts are clearer than screenshots for these CLI changes. All output below was captured from executed code; local absolute prefixes alone are replaced by <consumer> / <results>.
Real packed host: hidden successful tests
BEFORE: source 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc, local Microsoft.Testing.Platform/2.6.0-preview.26530.101.
AFTER: implementation f4d8d35bf45ce0ece75a66e1b197c96684767e48, local Microsoft.Testing.Platform/2.6.0-preview.26530.102.
Both consumers use MSTest.TestFramework, MSTest.TestAdapter, and Microsoft.Testing.Extensions.TrxReport from 4.6.0-preview.26529.1 / 2.6.0-preview.26529.1, .NET 8.0.32, and eight sequential data rows that await 750ms. Separate caches/output directories prevent stale-package reuse.
Exact invocation in each consumer, with the path aliases above:
The one-second override accelerates the demonstration; deterministic tests separately assert the production default's 59/60-second boundary and repeat interval.
Reproducible packed-consumer fixture and build
The same project and C# source were copied to two task-owned directories. NuGet.config lists the baseline/candidate shipping-package directories plus the public test-tools and dotnet-public feeds. Each NUGET_PACKAGES directory is outside its consumer project, preventing SDK default items from including cached build assets.
usingMicrosoft.Testing.Platform.Builder;usingMicrosoft.VisualStudio.TestTools.UnitTesting;[assembly:DoNotParallelize][TestClass]publicsealedclassProgressCases{[TestMethod][DataRow(1)][DataRow(2)][DataRow(3)][DataRow(4)][DataRow(5)][DataRow(6)][DataRow(7)][DataRow(8)]publicasyncTaskHiddenPass(introw){awaitTask.Delay(TimeSpan.FromMilliseconds(750));Assert.IsGreaterThan(0,row);}[TestMethod]publicvoidFailsWithDiagnostics()=>Assert.Fail("Captured failure from the real packed test host.");[TestMethod]publicvoidPackageProvenance()=>Console.WriteLine(typeof(ITestApplication).Assembly.Location);}
BEFORE — exit 0, eight executed/passed, zero heartbeat lines:
Test run summary: Passed! - <consumer>\bin\Debug\net8.0\ProgressProbe.dll (net8.0|x64)
total: 8
failed: 0
succeeded: 8
skipped: 0
duration: 6s 379ms
Out of process file artifacts produced:
- <results>\ProgressProbe_net8.0_x64.trx
AFTER — exit 0, the same eight executed/passed, six progress lines:
running... 1 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (2)
running... 2 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (3)
running... 3 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (4)
running... 5 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (6)
running... 6 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (7)
running... 7 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (8)
Test run summary: Passed! - <consumer>\bin\Debug\net8.0\ProgressProbe.dll (net8.0|x64)
total: 8
failed: 0
succeeded: 8
skipped: 0
duration: 6s 332ms
Out of process file artifacts produced:
- <results>\ProgressProbe_net8.0_x64.trx
The comparison packages' embedded repository commits and hashes were verified, as were project.assets.json, cache DLLs, and the DLLs in the launched consumer directories:
These are the preserved net8-only comparison packages, not a claim about a later multi-TFM package's archive hash.
Executed shared reporter: failure-first summary
The same real reporter test harness supplies a passing module, a failed test, a process failure, a missing handshake, and three artifacts in both source states. These are captured reporter outputs from NonCursorSummary_FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated (False), not a fabricated native SDK run. The identical inline module-start/completion diagnostics precede these final-summary excerpts in both runs.
Test run summary: Failed!
error: 2
total: 3
failed: 1
succeeded: 2
skipped: 0
duration: 0ms
failing.dll (net9.0|x64) failed with 1 error(s) [+0/x1/?0] (0ms)
crashed.dll (net9.0|x64) failed [+1/x0/?0] (0ms)
Handshake failures:
missing.dll (net9.0)
Exit code: 1
Standard output: handshake stdout
Error output: handshake stderr
Errored assemblies:
crashed.dll (net9.0|x64)
Exit code: 42
Standard output: crash stdout
Error output: crash stderr
In process file artifacts produced:
- passing.trx
- failing.trx
- crashed.trx
Native SDK composed proof
The SDK owner executed the built managed and Native AOT SDK with this frozen 32-package feed; its published commands, source/package identities, captures, and results were read back from dotnet/sdk#56851. This TestFx session did not rerun the SDK owner's commands.
BEFORE SDK: c781c3cda4cf87f94291d04223e9146664d4f5f5. AFTER SDK: f5838f51c497a70fb60f3ed7e89102ca293b6838. TestFx source: f4d8d35bf45ce0ece75a66e1b197c96684767e48. The Windows x64 built redist is 12.0.100-dev, with genuine net9.0 MSTest applications on .NET 9.0.0. The native invocation explicitly prints AOT test tier: TestModules..
In the real native --test-modules hidden-pass comparison, BEFORE remained silent. AFTER emitted this captured line at 61.7903221 seconds, including ten results from the module that had already finished:
running... 18 completed, 0 failed, active modules: 1 | last completion: 4s ago
The final total remains 20, compact verdict/counts precede artifacts without reprinting successful modules, and explicit suppression passes. The SDK record reports 17 composed cases / 50 passing checks, plus 246 passing focused SDK tests; it also covers real collection, worker diagnostics/degradation, crash recovery, cancellation, and zero results.
This is reporter/ordinary-report composition proof, not required cross-module Azure DevOps/GitHub summary handoff proof. That SDK PR does not advertise field 19 (RequiredPostProcessingSupported); the distinct required-processing contract now has separate evidence in the companion below. Ordinary TRX/CTRF/JUnit merging does not establish that capability.
Required CI-summary SDK companion
dotnet/sdk#56852 now provides separate required singleton/multi-module evidence at a629f41ab69bdb8f9c2c6ce63d1edf7b5f1aabfe, stacked on parent c6405adbf0aadab2a0419579f5bffcd72a72764a. The before SDK is 4622ed3b6b3d58465613c5ac0a11243d40f61107; both states use this unchanged frozen 32-package f4d8d35bf45ce0ece75a66e1b197c96684767e48 feed.
The SDK owner executed the real managed/Native AOT shipping layouts. This session inspected the publication and all 27 final invocation records, matching their source, binary hashes, and exits to the matrix, and read the actual singleton/mixed before/after output. Application DLL and resolved-assets hashes match between the compared states:
Comparison
BEFORE
AFTER
One module, 10 passes, parent exit 0
Per-module summary; no required worker/global Azure attachment.
Actual required worker with one manifest input and one global Azure attachment; counts and exit unchanged.
One global Azure attachment and one global GitHub section; authoritative run summary and outcomes/exit preserved.
The final matrix records 27 cases / 470 checks; the SDK publication also records separate older-MTP and actual connected-worker Ctrl+C cases, plus 343 passing SDK tests. Suppression, no-handshake/legacy paths, ignored/zero/minimum policies, truncation, worker failures/timeouts, missing/partial inputs, and cancellation are covered. Matrix SHA-256: 68F80945F39612A08FB6644E59A3ED85D950ED355D0E3AE44A064EC128C0F320.
Policy distinction: accepted runner exit 0 does not erase raw failed-test counts, test-result indicators/details, or established on-failure visibility. Separate runner-policy presentation is owned by the diagnostic consumer PR; failed tests are not rewritten as passed.
This is Windows x64 candidate evidence, with local Azure logging-command/GitHub step-summary emission, not remote-provider upload or cross-OS/servicing proof. The SDK companion is still a dependent open PR, not merged or shipped; main-only/no-pin-rollout/no-backport scope is unchanged.
Validation and regression proof
SDK 12.0.100-alpha.1.26509.101, Debug/net8.0, runtime 8.0.32. The repository build scripts bootstrapped the toolchain. A shortened process-local PATH was required because the inherited PATH exceeded cmd.exe's limit; global settings were not changed.
$evidence below denotes the task-owned artifact directory; $before the isolated comparison checkout. These aliases replace only machine-local paths.
The real packed-host checks also executed eight passing rows with --progress off and with MTP_PROGRESS_SILENCE_SECONDS=0 (no heartbeat in either run). An intentional failed test retained its diagnostic and exit 2; an empty selection retained exit 8. Those child failures are expected outcomes, not successful tests or red-phase evidence.
Test-value evidence
Correct implementation: f4d8d35bf45ce0ece75a66e1b197c96684767e48.
Counterfactual: 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc plus the identical final test files and an ignored optional fourth renderer-constructor parameter solely to preserve compilation. No new behavior is present in that baseline; this is a buildable targeted counterfactual, not an unmodified baseline run.
Retained-test/support patch SHA-256: 164ED76C41CAD0FD7B5BEB1A8B3DBAFBFC180836C3A872B39A4BD162CD642352.
$regressions='FullyQualifiedName~VisibleSilence_|FullyQualifiedName~NonCursorSummary_|FullyQualifiedName~NonCursorProgress_'
.\.dotnet\dotnet.exe"$before\artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.UnitTests.dll"--filter $regressions--report-trx --results-directory "$evidence\red-tests"--no-ansi --progress off
# Executed: detected. Exit 2; all 10 cases executed and failed intended output/count assertions; 0 skipped.
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.UnitTests.dll --filter $regressions--report-trx --results-directory "$evidence\green-tests"--no-ansi --progress off
# Executed: passed. Exit 0; the same 10 cases passed; 0 skipped.
Requirement
Evidence
Hidden results cannot postpone the default 60-second boundary
VisibleSilence_HiddenCompletions_EmitAtDefaultBoundary: baseline emitted 0 lines instead of the expected bounded progress; fixed passes.
Visible output postpones heartbeat, not completion age
VisibleSilence_VisibleWriteDelaysHeartbeatButNotCompletionAge, VisibleSilence_ProgressMessage_PostponesHeartbeat: both detected baseline behavior and passed with the fix.
No fabricated completion and clean session reset
VisibleSilence_NoCompletionsAndRestart_DoNotInventProgress: detected baseline output, then passed.
Finished modules remain in run totals
VisibleSilence_CompletedModules_RemainInCumulativeCounts, NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals: baseline reported 1 instead of 3 completed in the real reporter wiring; fixed passes.
Failure-first summary with full artifacts and accurate error/test counts
NonCursorSummary_FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated (NoAnsi and SimpleAnsi): both baseline snapshots failed, both fixed snapshots pass.
No duplicate successful recap; no lost retry diagnostics
NonCursorSummary_AllPassingModules_KeepOnlyAggregateAfterCompletion, NonCursorSummary_SuppressedVerdict_KeepsFailureRecapsAndArtifacts: detected baseline output and passed with the fix.
Interactive behavior remains unchanged
Existing AnsiTerminal_OutputFormattingIsCorrect and progress-frame cases passed before and after within the focused suite.
TRX counters, individual names/outcomes, and matching before/after test-file hashes were inspected; no skips, setup failures, or zero-test runs were counted as regression proof. The actual tests retain method-level parallelism (32 workers here); clocks/consoles are per-test and the reporter refresher is joined before reading the captured output.
Native SDK reporter composition and required cross-module CI-summary handoff have separate, revision-bound evidence in the linked SDK PRs above. Neither record claims release-branch validation, downstream pin changes, rollout, merge, or a shipped fix.
The reason will be displayed to describe this comment to others. Learn more.
Note
🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
Summary: The change looks sound overall. The heartbeat is now driven by visible-output silence, it reports cumulative counts from the retained assemblies, and the non-cursor summary is reordered (compact form). I reviewed the diff statically and did not run anything.
Findings (2 inline):
Thread-safety contract of _lastVisibleOutputTicks, which is no longer accessed through Interlocked/Volatile.
The silence-threshold default changes from 30s to 60s, which is user-visible. Please make sure the docs are updated and the change is called out.
Other notes:
TerminalProgressHeartbeat now takes a third argument, {2}. The .resx is updated and the .xlf files were regenerated, so the localization flow looks correct. The two new suffix strings have no {Locked} markers, which is fine.
The summary reorder for non-cursor output is a visible output change. It is covered by the new reporter tests, but please confirm that the acceptance tests asserting summary output still pass.
No new public API was added, and there are no dependency changes.
Test-value evidence: the PR's decision record claims red/green evidence. I did not re-execute it as a read-only reviewer.
Compared merge base 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc with head c8f95722f0a97434ce92809b63b5ce730859b525. Evidence applies to this head, not every intermediate commit.
Test-value evidence
Static predictions only. No tests were executed and no paired red/green records were available.
Heartbeat renderer (completion age, visible-write postponement, progress-message postponement, restart, cumulative module counts): The SilenceDrivenHeartbeatRendererTests cases use a fake clock and compare exact heartbeat text. Reverting the age/postponement logic would change the line count or the "last completion" text, so these are predicted to fail without the change. Prediction, unverified.
Non-cursor summary (failures before artifacts, no repeated passing recaps, aggregate-only for all-pass, suppressed verdict): The exact raw-string output comparisons are predicted to fail if recaps were repeated or reordered. Prediction, unverified.
Completed worker slot included in run totals: The test expects "3 completed ... active: InFlight". Excluding finished modules would give 1 completed, so it is predicted to fail. Prediction, unverified.
Docs, resx/xlf and glossary changes: not applicable (non-executable).
Unassessed: The 22 changed src files were not individually traced beyond the terminal reporter and heartbeat paths.
🧵 Parallel safety
STATUS: CLEAN. Microsoft.Testing.Platform.UnitTests runs at MethodLevel. The changed tests use per-test fakes (FakeClock, RecordingStringTerminal, StringBuilderConsole, stopwatch stubs) and have no shared global state. The specialist reviewed only the Terminal tests and the src files they reference.
Per-test assessment
Pseudo-mutation evidence is static prediction, not executed mutation results.
Result
Quality
Test
Notes
How to improve
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorSummary_ FailuresPrecede ArtifactsAnd SuccessfulRecapsAreNotRepeated
Exact summary equality covers ordering and recap suppression for both ANSI modes.
None
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorSummary_ AllPassingModules_ KeepOnlyAggregateAfterCompletion
Exact aggregate-only summary asserted.
None
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorSummary_ SuppressedVerdict_ KeepsFailureRecapsAndArtifacts
Exact output covers handshake failure and artifact retention.
None
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorProgress_ CompletedWorkerSlot_ IsIncludedInRunTotals
Exact heartbeat line asserted; it waits on an event with a 30s timeout.
None
Pass
B (80–89)
new SilenceDrivenHeartbeatRendererTests. VisibleSilence_* (5 new tests)
Fake-clock, exact-text assertions cover boundary, restart, postponement and cumulative counts.
None
Pass
B (80–89)
mod SilenceDrivenHeartbeatRendererTests. SilenceHeartbeat_*
Modified tests still assert exact output with a deterministic clock.
None
No inline findings. Existing review threads were not exhaustively checked for duplicates, but no inline comments were prepared.
This advisory review is heuristic and non-blocking.
Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.
Compared merge base 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc with head 96db3705ab7ec26801755934dd4e45319e777f8c. Evidence applies to this head, not every intermediate commit. Since the previously reviewed head c8f95722f0a97434ce92809b63b5ce730859b525, only docs/decisions/ci-terminal-progress-summaries.md changed (+10/−5); source and test files are identical.
Test-value evidence
Static predictions only. No tests were executed and no paired red/green records were accessible.
Heartbeat silence driven by visible output (hidden completions, visible-write and progress-message postponement, restart, cumulative module counts, "last completion" age): the SilenceDrivenHeartbeatRendererTests cases use a fake clock and compare exact heartbeat text. Restoring the completion-based baseline would change the emitted lines or the "last completion" text, so they are predicted to fail without the change and pass with it. Unverified.
Non-cursor summary ordering and recap suppression: the exact raw-string comparisons in TerminalTestReporterTests.NonCursorSummary_* are predicted to fail if failures/artifacts were reordered or passing recaps repeated. Unverified.
Completed worker slot included in totals:NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals expects 3 completed. Using only active progress slots would give 1, so it is predicted to fail. Unverified.
Docs, resx/xlf, glossary: not applicable (non-executable).
Unassessed: src files beyond the Terminal reporter/heartbeat paths were not individually traced.
🧵 Parallel safety
STATUS: PARTIAL for this head. The specialist was not re-run, because test and source files are unchanged since the previous head (which reported CLEAN). A manual read found the changed tests use per-test fakes (FakeClock, RecordingStringTerminal, StringBuilderConsole, stopwatch mock) with no shared global state, and no parallelization configuration changed. This is not a complete re-audit.
Per-test assessment
Pseudo-mutation evidence is static prediction, not executed mutation results.
Result
Quality
Test
Notes
How to improve
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorSummary_ FailuresPrecede ArtifactsAnd SuccessfulRecapsAreNotRepeated
Exact summary equality covers ordering and recap suppression for both ANSI modes.
None
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorSummary_ AllPassingModules_ KeepOnlyAggregateAfterCompletion
Exact aggregate-only summary asserted.
None
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorSummary_ SuppressedVerdict_ KeepsFailureRecapsAndArtifacts
Exact output covers handshake failure and artifact retention.
None
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorProgress_ CompletedWorkerSlot_ IsIncludedInRunTotals
Exact heartbeat line asserted; relies on a background refresher and a 30s wait.
None
Pass
B (80–89)
new SilenceDrivenHeartbeatRendererTests. VisibleSilence_* (5 tests)
Fake-clock exact-text assertions cover boundary, restart, postponement and cumulative counts.
None
Pass
B (80–89)
mod SilenceDrivenHeartbeatRendererTests. SilenceHeartbeat_*
Modified tests assert exact output with a deterministic clock.
None
No inline findings; existing threads were read and no novel actionable candidate passed the publication gate.
This advisory review is heuristic and non-blocking.
Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The test can signal completion before a heartbeat is rendered, allowing Dispose() to stop the refresher early and intermittently fail the output assertion.
Updates Microsoft.Testing.Platform’s non-cursor reporting so hidden successful results do not suppress CI progress, and final summaries put verdicts and failures before artifacts. Downstream SDK integration remains separate.
Changes:
Emit heartbeats after 60 seconds without visible reporter output, including cumulative counts, active modules, and last-completion age.
Reorder non-cursor summaries and omit successful module recaps already printed at completion.
Add regression tests, resource updates, and documented design and validation evidence.
Test-value evidence: The PR reports 10 regression cases failing against a targeted baseline and passing at f4d8d35bf45ce0ece75a66e1b197c96684767e48. Those execution results were not independently verified here; review validation was static.
The tracked internal API still lists only the three-parameter constructor in InternalAPI/InternalAPI.Shipped.txt:2119, with no removal or replacement in InternalAPI.Unshipped.txt. Adding an optional parameter changes the tracked signature, leaving the API baseline inconsistent and causing analyzer diagnostics in warning-as-error builds. Record the old signature as removed and add the four-parameter signature in InternalAPI.Unshipped.txt.
Compared merge base 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc with head 48278b615aa31246bfa31f9b7a76c54ee3696fed. Evidence applies to this head, not every intermediate commit.
Test-value evidence
All entries are static predictions. No paired execution records were available, and this workflow did not run tests.
Contract
Test / decisive assertion
Counterfactual
Prediction
Heartbeat is driven by the last visible output, not by test completion
VisibleSilence_HiddenCompletions_EmitAtDefaultBoundary and VisibleSilence_VisibleWriteDelaysHeartbeatButNotCompletionAge: exact output equality
Resetting the silence timer in OnTestCompleted, as the old code did
Likely killed (inferred)
Heartbeat line gains the active-module count and the last-completion age (or no tests completed yet), and OnStart resets state
Summing only the active slots, so the count would be 2 instead of 5 and 1 instead of 3
Likely killed (inferred)
Progress messages postpone the heartbeat
VisibleSilence_ProgressMessage_PostponesHeartbeat
Not updating _lastVisibleOutputTicks in OnWrite
Likely killed (inferred)
Non-cursor summary order: failures first, artifacts last, successful module recaps not repeated, summary suppressed on retry
NonCursorSummary_* (4 tests), plus the two updated artifact-order expectations in the existing tests
Reverting the ordering in AppendTestRunSummary
Likely killed (inferred)
Docs, resx and xlf changes
n/a
Non-executable. The xlf files should be confirmed as regenerated by UpdateXlf.
Not applicable
🧵 Parallel safety
PARALLEL-SAFETY RESULT
STATUS: PARTIAL
The specialist task was not run in this session, so parallel-safety coverage is incomplete and is not reported as clean. In-diff observation only: the new tests use in-memory terminals, fake clocks and per-test reporters. The single real-time test, NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals, waits up to 30s on a ManualResetEventSlim with the test cancellation token. No shared static state or shared file paths were spotted.
Per-test assessment
Pseudo-mutation evidence consists of static predictions, not executed mutation results. Existing-thread deduplication was not completed. No inline comments are published because no verified actionable defect was found.
Result
Quality
Test
Notes
How to improve
Pass
A (90–100)
mod SilenceDrivenHeartbeatRendererTests. SilenceHeartbeat_ WhenNoCompletionForThreshold_ EmitsSingleSummaryLine
Exact raw-string output covers counts, age and active test.
None
Pass
A (90–100)
new SilenceDrivenHeartbeatRendererTests. VisibleSilence_ HiddenCompletions_ EmitAtDefaultBoundary
Checks the default threshold boundary and exact lines.
None
Pass
A (90–100)
new SilenceDrivenHeartbeatRendererTests. VisibleSilence_ VisibleWriteDelaysHeartbeatButNotCompletionAge
Exact output separates silence timing from completion age.
None
Pass
A (90–100)
new SilenceDrivenHeartbeatRendererTests. VisibleSilence_ NoCompletionsAndRestart_ DoNotInventProgress
Covers the no-completion text and the restart reset.
None
Pass
A (90–100)
new SilenceDrivenHeartbeatRendererTests. VisibleSilence_ CompletedModules_ RemainInCumulativeCounts
Exact cumulative counts with a finished module.
None
Pass
A (90–100)
new SilenceDrivenHeartbeatRendererTests. VisibleSilence_ ProgressMessage_ PostponesHeartbeat
Verifies the postponement boundary at 49s and 50s.
None
Pass
A (90–100)
new TerminalTestReporterTests. NonCursorSummary_ FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated
Exact full-summary ordering for both ANSI modes.
None
Pass
A (90–100)
new TerminalTestReporterTests. NonCursorSummary_ AllPassingModules_ KeepOnlyAggregateAfterCompletion
Exact aggregate-only output.
None
Pass
A (90–100)
new TerminalTestReporterTests. NonCursorSummary_ SuppressedVerdict_ KeepsFailureRecapsAndArtifacts
Exact output for the retry (suppressed verdict) path.
None
Pass
B (80–89)
new TerminalTestReporterTests. NonCursorProgress_ CompletedWorkerSlot_ IsIncludedInRunTotals
Exact output, but it relies on the real refresher thread and a 30s wait.
None
Pass
A (90–100)
mod TerminalTestReporterTests. (existing artifact-order expectations, 2 tests)
Expectations moved to match the new artifacts-last order.
None
This advisory review is heuristic and non-blocking.
Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.
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
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.
Pull request
Summary
Make non-cursor Microsoft.Testing.Platform logs show truthful progress even when
--show-test-results failedhides successful test results. A heartbeat is due after 60 seconds without visible reporter output, not 60 seconds without a test completion. It reports cumulative completed/failed results across finished and active modules, active modules, and last-completion age (or explicitly no completions yet).Put the non-cursor final verdict, counts, and failure recaps ahead of artifact details. Do not repeat successful module results that were already printed at completion. Preserve complete artifacts and process diagnostics, failed-test versus host-error counts, progress suppression, retries, and cursor-capable interactive output.
Motivated by the approved investigation of public build 1655468, rather than a separately filed issue. This PR does not merge or enable anything downstream.
Design and decision record
Maintained research, contract, alternatives, and validation.
The change reuses the existing renderer and summary/handshake/errored-assembly mechanisms. There is no new public API, CLI option, or protocol field.
--progress off, the existing zero-valued heartbeat override, and slow-test backoff remain supported. Successful final module details remain available when the caller did not print completion lines.The SDK vendors this reporter source: source-linked tests and packed-host proof alone do not establish that the outer
dotnet testconsole changed. Executed composed evidence is now available in dotnet/sdk#56851 atf5838f51c497a70fb60f3ed7e89102ca293b6838, using this implementation and the aligned packages. This batch targets main only: no backport, downstream SDK-pin update, or feature-gate rollout is included. Any future downstream pin or backport requires its own release-branch validation; existing SDK releases are not fixed by this PR.The SDK owner has received an immutable feed of all 32 same-source shipping packages from the implementation commit, including MSTest SDK/framework/adapter/source-generation and Trx/CTRF/AzureDevOps/JUnit/HangDump. Task-local versions are
4.6.0-preview.26530.102(MSTest),2.6.0-preview.26530.102(MTP family), and1.0.0-preview.26530.102(JUnit). Because the SDK generates JUnit's default independently of the task-localVersionSuffix, its consumer must setMicrosoftTestingExtensionsJUnitReportVersion=1.0.0-preview.26530.102. No old-extension/new-core-only pairing is required for downstream validation.Demonstration
Text transcripts are clearer than screenshots for these CLI changes. All output below was captured from executed code; local absolute prefixes alone are replaced by
<consumer>/<results>.Real packed host: hidden successful tests
BEFORE: source
7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc, localMicrosoft.Testing.Platform/2.6.0-preview.26530.101.AFTER: implementation
f4d8d35bf45ce0ece75a66e1b197c96684767e48, localMicrosoft.Testing.Platform/2.6.0-preview.26530.102.Both consumers use
MSTest.TestFramework,MSTest.TestAdapter, andMicrosoft.Testing.Extensions.TrxReportfrom4.6.0-preview.26529.1/2.6.0-preview.26529.1, .NET 8.0.32, and eight sequential data rows that await 750ms. Separate caches/output directories prevent stale-package reuse.Exact invocation in each consumer, with the path aliases above:
The one-second override accelerates the demonstration; deterministic tests separately assert the production default's 59/60-second boundary and repeat interval.
Reproducible packed-consumer fixture and build
The same project and C# source were copied to two task-owned directories.
NuGet.configlists the baseline/candidate shipping-package directories plus the publictest-toolsanddotnet-publicfeeds. EachNUGET_PACKAGESdirectory is outside its consumer project, preventing SDK default items from including cached build assets.BEFORE — exit 0, eight executed/passed, zero heartbeat lines:
AFTER — exit 0, the same eight executed/passed, six progress lines:
The comparison packages' embedded repository commits and hashes were verified, as were
project.assets.json, cache DLLs, and the DLLs in the launched consumer directories:E923C274656C1AF40AE9236F7712D537C88C99FC4C5DEDA07277746BD11483FB59590E8F40E00587F38916EBE98A3E5B8B9B5F15CC1E9973F7FBD5A759A490D1FD65003E40C1C20E055388C35205CB0081603759A3EFA25E41F9FFCAECE368F8D0A562846536D9FE8E9456E3785FAF566165F6896720993605F81B07CBC519D5These are the preserved net8-only comparison packages, not a claim about a later multi-TFM package's archive hash.
Executed shared reporter: failure-first summary
The same real reporter test harness supplies a passing module, a failed test, a process failure, a missing handshake, and three artifacts in both source states. These are captured reporter outputs from
NonCursorSummary_FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated (False), not a fabricated native SDK run. The identical inline module-start/completion diagnostics precede these final-summary excerpts in both runs.BEFORE:
AFTER:
Native SDK composed proof
The SDK owner executed the built managed and Native AOT SDK with this frozen 32-package feed; its published commands, source/package identities, captures, and results were read back from dotnet/sdk#56851. This TestFx session did not rerun the SDK owner's commands.
BEFORE SDK:
c781c3cda4cf87f94291d04223e9146664d4f5f5. AFTER SDK:f5838f51c497a70fb60f3ed7e89102ca293b6838. TestFx source:f4d8d35bf45ce0ece75a66e1b197c96684767e48. The Windows x64 built redist is12.0.100-dev, with genuine net9.0 MSTest applications on .NET 9.0.0. The native invocation explicitly printsAOT test tier: TestModules..In the real native
--test-moduleshidden-pass comparison, BEFORE remained silent. AFTER emitted this captured line at 61.7903221 seconds, including ten results from the module that had already finished:The final total remains 20, compact verdict/counts precede artifacts without reprinting successful modules, and explicit suppression passes. The SDK record reports 17 composed cases / 50 passing checks, plus 246 passing focused SDK tests; it also covers real collection, worker diagnostics/degradation, crash recovery, cancellation, and zero results.
This is reporter/ordinary-report composition proof, not required cross-module Azure DevOps/GitHub summary handoff proof. That SDK PR does not advertise field 19 (
RequiredPostProcessingSupported); the distinct required-processing contract now has separate evidence in the companion below. Ordinary TRX/CTRF/JUnit merging does not establish that capability.Required CI-summary SDK companion
dotnet/sdk#56852 now provides separate required singleton/multi-module evidence at
a629f41ab69bdb8f9c2c6ce63d1edf7b5f1aabfe, stacked on parentc6405adbf0aadab2a0419579f5bffcd72a72764a. The before SDK is4622ed3b6b3d58465613c5ac0a11243d40f61107; both states use this unchanged frozen 32-packagef4d8d35bf45ce0ece75a66e1b197c96684767e48feed.The SDK owner executed the real managed/Native AOT shipping layouts. This session inspected the publication and all 27 final invocation records, matching their source, binary hashes, and exits to the matrix, and read the actual singleton/mixed before/after output. Application DLL and resolved-assets hashes match between the compared states:
The final matrix records 27 cases / 470 checks; the SDK publication also records separate older-MTP and actual connected-worker Ctrl+C cases, plus 343 passing SDK tests. Suppression, no-handshake/legacy paths, ignored/zero/minimum policies, truncation, worker failures/timeouts, missing/partial inputs, and cancellation are covered. Matrix SHA-256:
68F80945F39612A08FB6644E59A3ED85D950ED355D0E3AE44A064EC128C0F320.Policy distinction: accepted runner exit 0 does not erase raw failed-test counts, test-result indicators/details, or established on-failure visibility. Separate runner-policy presentation is owned by the diagnostic consumer PR; failed tests are not rewritten as passed.
This is Windows x64 candidate evidence, with local Azure logging-command/GitHub step-summary emission, not remote-provider upload or cross-OS/servicing proof. The SDK companion is still a dependent open PR, not merged or shipped; main-only/no-pin-rollout/no-backport scope is unchanged.
Validation and regression proof
SDK
12.0.100-alpha.1.26509.101, Debug/net8.0, runtime 8.0.32. The repository build scripts bootstrapped the toolchain. A shortened process-local PATH was required because the inherited PATH exceededcmd.exe's limit; global settings were not changed.$evidencebelow denotes the task-owned artifact directory;$beforethe isolated comparison checkout. These aliases replace only machine-local paths.The real packed-host checks also executed eight passing rows with
--progress offand withMTP_PROGRESS_SILENCE_SECONDS=0(no heartbeat in either run). An intentional failed test retained its diagnostic and exit 2; an empty selection retained exit 8. Those child failures are expected outcomes, not successful tests or red-phase evidence.Test-value evidence
Correct implementation:
f4d8d35bf45ce0ece75a66e1b197c96684767e48.Counterfactual:
7dd2407848979d58f0e9b2bd75101a2dbfa7d1bcplus the identical final test files and an ignored optional fourth renderer-constructor parameter solely to preserve compilation. No new behavior is present in that baseline; this is a buildable targeted counterfactual, not an unmodified baseline run.Retained-test/support patch SHA-256:
164ED76C41CAD0FD7B5BEB1A8B3DBAFBFC180836C3A872B39A4BD162CD642352.VisibleSilence_HiddenCompletions_EmitAtDefaultBoundary: baseline emitted 0 lines instead of the expected bounded progress; fixed passes.VisibleSilence_VisibleWriteDelaysHeartbeatButNotCompletionAge,VisibleSilence_ProgressMessage_PostponesHeartbeat: both detected baseline behavior and passed with the fix.VisibleSilence_NoCompletionsAndRestart_DoNotInventProgress: detected baseline output, then passed.VisibleSilence_CompletedModules_RemainInCumulativeCounts,NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals: baseline reported 1 instead of 3 completed in the real reporter wiring; fixed passes.NonCursorSummary_FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated(NoAnsi and SimpleAnsi): both baseline snapshots failed, both fixed snapshots pass.NonCursorSummary_AllPassingModules_KeepOnlyAggregateAfterCompletion,NonCursorSummary_SuppressedVerdict_KeepsFailureRecapsAndArtifacts: detected baseline output and passed with the fix.AnsiTerminal_OutputFormattingIsCorrectand progress-frame cases passed before and after within the focused suite.TRX counters, individual names/outcomes, and matching before/after test-file hashes were inspected; no skips, setup failures, or zero-test runs were counted as regression proof. The actual tests retain method-level parallelism (32 workers here); clocks/consoles are per-test and the reporter refresher is joined before reading the captured output.
Native SDK reporter composition and required cross-module CI-summary handoff have separate, revision-bound evidence in the linked SDK PRs above. Neither record claims release-branch validation, downstream pin changes, rollout, merge, or a shipped fix.