Repository navigation
Add resource-bound aspire test with experimental live collectors - #21527
Conversation
Reuse the run lifecycle, wait for all annotated test resources, and return reliable aggregate outcomes with orderly shutdown. Co-authored-by: Copilot App <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21527Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21527" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved state-matching and exit-code normalization bugs can stall test runs or incorrectly report success for failed resources and nonzero .NET AppHost exits.
5 open issues
1 file not reviewed
src/Aspire.Cli/Resources/RunCommandStrings.Designer.cs: Generated file
What changed in this PR
Adds resource-bound aspire test execution to Aspire’s existing run infrastructure. AppHosts mark participating resources with WithTestRun(), aggregate their outcomes, and shut down after completion; framework-specific result collection remains deferred.
Changes:
- Adds the test command, capability negotiation, exit-code handling, and CLI-owned launch behavior.
- Introduces resource annotations and completion coordination, including replicas and missing exit codes.
- Adds unit/scenario coverage, guest-language snapshots, documentation, and localization entries.
| File | Description |
|---|---|
| tests/Aspire.Hosting.Tests/Cli/TestRunCoordinatorTests.cs | Tests resource outcomes, replicas, timeouts, and cancellation. |
| tests/Aspire.Hosting.Tests/Cli/TestRunCoordinatorEndToEndTests.cs | Exercises real processes and backchannel-controlled shutdown. |
| tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.ts | Adds generated TypeScript test-resource methods. |
| tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/HostingContainerResourceCapabilities.verified.txt | Records the exported test-resource capability. |
| tests/Aspire.Hosting.CodeGeneration.Rust.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.rs | Adds generated Rust test-resource methods. |
| tests/Aspire.Hosting.CodeGeneration.Python.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.py | Adds Python methods and constructor options. |
| tests/Aspire.Hosting.CodeGeneration.Java.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.java | Adds generated Java test-resource methods. |
| tests/Aspire.Hosting.CodeGeneration.Go.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.go | Adds generated Go test-resource methods. |
| tests/Aspire.Cli.Tests/Utils/CliTestHelper.cs | Registers the test command in test services. |
| tests/Aspire.Cli.Tests/TestServices/TestAppHostCliBackchannel.cs | Adds configurable test-completion behavior. |
| tests/Aspire.Cli.Tests/Projects/GuestAppHostProjectTests.cs | Tests CLI-owned, non-watch guest launch. |
| tests/Aspire.Cli.Tests/Projects/DotNetAppHostProjectTests.cs | Tests test-mode launch overrides. |
| tests/Aspire.Cli.Tests/DotNet/DotNetCliRunnerTests.cs | Tests bypassing extension-managed launch. |
| tests/Aspire.Cli.Tests/Commands/TestCommandTests.cs | Tests outcomes, cancellation, options, and shutdown failures. |
| tests/Aspire.Cli.Tests/Commands/PublishCommandPromptingIntegrationTests.cs | Updates the backchannel test implementation. |
| src/Shared/CliExitCodes.cs | Defines the test-failure exit code. |
| src/Aspire.Hosting/TestResourceBuilderExtensions.cs | Adds the exported WithTestRun() extension. |
| src/Aspire.Hosting/DistributedApplicationBuilder.cs | Registers the test coordinator. |
| src/Aspire.Hosting/Cli/TestRunCoordinator.cs | Aggregates resource and replica outcomes. |
| src/Aspire.Hosting/Backchannel/AppHostRpcTarget.cs | Exposes test completion and capability negotiation. |
| src/Aspire.Hosting/ApplicationModel/TestAnnotation.cs | Defines the test-resource marker. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.zh-Hant.xlf | Adds pending Traditional Chinese localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.zh-Hans.xlf | Adds pending Simplified Chinese localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.tr.xlf | Adds pending Turkish localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.ru.xlf | Adds pending Russian localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.pt-BR.xlf | Adds pending Brazilian Portuguese localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.pl.xlf | Adds pending Polish localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.ko.xlf | Adds pending Korean localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.ja.xlf | Adds pending Japanese localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.it.xlf | Adds pending Italian localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.fr.xlf | Adds pending French localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.es.xlf | Adds pending Spanish localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.de.xlf | Adds pending German localization entries. |
| src/Aspire.Cli/Resources/xlf/RunCommandStrings.cs.xlf | Adds pending Czech localization entries. |
| src/Aspire.Cli/Resources/RunCommandStrings.resx | Adds test-command help and diagnostics. |
| src/Aspire.Cli/Resources/RunCommandStrings.Designer.cs | Exposes the new resource strings. |
| src/Aspire.Cli/README.md | Documents usage, outcomes, and limitations. |
| src/Aspire.Cli/Projects/GuestAppHostProject.cs | Disables watch and extension launch for tests. |
| src/Aspire.Cli/Projects/DotNetAppHostProject.cs | Keeps test AppHost launch under CLI control. |
| src/Aspire.Cli/Projects/AppHostProjectContext.cs | Carries the test-run flag. |
| src/Aspire.Cli/Program.cs | Registers the test command. |
| src/Aspire.Cli/DotNet/DotNetCliRunner.cs | Adds an extension-launch bypass option. |
| src/Aspire.Cli/Commands/TestCommand.cs | Introduces the command using shared run logic. |
| src/Aspire.Cli/Commands/RunCommand.cs | Implements finite test execution and shutdown handling. |
| src/Aspire.Cli/Commands/RootCommand.cs | Exposes the test subcommand. |
| src/Aspire.Cli/Backchannel/AppHostCliBackchannel.cs | Adds the test-completion RPC client method. |
Review effort: Balanced
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Co-authored-by: Copilot App <[email protected]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
Guest test runs can incorrectly pass despite server shutdown failure or forced termination, and unresolved permission, resource-state, timing, and integration-test issues remain.
10 open issues
Test mode ignores server completion failures when hot reload is disabled · New Use case-insensitive matching for terminal resource states Preserve nonzero .NET AppHost exit codes End-to-end tests do not exercise the aspire test command · New New run directories fail permission checks under umask 0100 · New Stale test output paths redirect artifacts during normal runs · New Publication tests do not cover completion during subscription · New Track exit-code grace periods independently per replica Add end-to-end coverage for the aspire test lifecycle Return 130 when cancellation precedes the completion wait
1 file not reviewed
src/Aspire.Cli/Resources/RunCommandStrings.Designer.cs: Generated file
Review effort: Balanced
Render test AppHost information as append-only log lines and publish completion summaries before keep-alive inspection. Reuse shared AppHost lifecycle infrastructure without inheriting RunCommand. Co-authored-by: Copilot App <[email protected]>
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Co-authored-by: Copilot App <[email protected]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
The coordinator starts before pre-start hooks finish, potentially omitting test resources or failing with “No test resources,” and real CLI end-to-end lifecycle coverage is missing.
11 open issues
Start coordinator after pre-start hooks and include added resources · New Test mode ignores server completion failures when hot reload is disabled Use case-insensitive matching for terminal resource states Preserve nonzero .NET AppHost exit codes Add CLI end-to-end coverage for launch, collection, and teardown · New Publication tests do not cover completion during subscription New run directories fail permission checks under umask 0100 End-to-end tests do not exercise the aspire test command Track exit-code grace periods independently per replica Add end-to-end coverage for the aspire test lifecycle Return 130 when cancellation precedes the completion wait
1 resolved since last review
1 file not reviewed
src/Aspire.Cli/Resources/RunCommandStrings.Designer.cs: Generated file
Review effort: Balanced
Restore RunCommand and its localized resources to the PR base. Keep finite testing launch, cancellation, completion, inspection and diagnostic capture test-owned using existing project/backchannel services. Co-authored-by: Copilot App <[email protected]>
This comment has been minimized.
This comment has been minimized.
Render dashboard URLs without diagnostic logging and remove login tokens from non-interactive output. Co-authored-by: Copilot App <[email protected]>
This comment has been minimized.
This comment has been minimized.
Match aspire run by retaining console login tokens in both interactive and non-interactive output while keeping URLs out of diagnostic message logging. Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Security-sensitive artifact allocation, permission repair, and cross-process collector lifetimes warrant human review because threat modeling and security review remain pending.
No open issues 🎉
1 file not reviewed
src/Aspire.Cli/Resources/TestCommandStrings.Designer.cs: Generated file
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
Security-sensitive artifact-directory permissions and long-lived remote callbacks require human review because threat modeling is pending and static review cannot validate Windows ACL or shutdown behavior.
No open issues 🎉
1 file not reviewed
src/Aspire.Cli/Resources/TestCommandStrings.Designer.cs: Generated file
Review effort: Balanced
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
James Newton-King (JamesNK)
left a comment
There was a problem hiding this comment.
The merge candidate fails to build the CLI: both archive jobs report RS0030. The inline findings cover one build blocker, five lifecycle issues, four guest SDK issues, three reporting issues, and one documentation issue. The targeted Hosting tests passed on Linux and Windows; the build failure blocked both packaged aspire test scenarios.
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Integrate pinned main b2baebe. Use TemporaryStorage.SystemTempPath for the two system-root safety guards, preserving behavior while satisfying the banned API analyzer introduced by #22553. Co-authored-by: Copilot App <[email protected]>
Tests selector59 / 101 PR test projects · 8 PR jobs, from 92 changed files. Selected PR test projects (59 / 101)
Selected PR jobs (8)
How these were chosen — grouped by what changed
🔧 show 31
🔧 show 13
🧪 📦 affected project 🔧 📦 affected project 📦 affected project 📦 affected project 📄 📄 📄 📄 📄 📄 🔧 🔧 🔧 🔧 🔧 🔧 🔧 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 Job reasons
Selection computed for commit |
There was a problem hiding this comment.
🔵 Needs a closer look
Private artifact-directory guarantees depend on cross-platform ACL, filesystem-link, and ownership behavior that needs the explicitly pending threat modeling and human security review before approval.
No open issues 🎉
1 file not reviewed
src/Aspire.Cli/Resources/TestCommandStrings.Designer.cs: Generated file
Review effort: Balanced
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |


Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
a59c24f38ed49a18059c953b917e78e3883c0067↑ Historical hosting, generated SDK and packaged CLI evidence is recorded below.
↓ New-head cross-platform/native CI is pending; full local repository, security and API reviews remain unperformed.
Description
Add experimental
aspire test: keep supporting services available until every annotated resource/replica and its runtime result collector completes, report observed outcomes, then shut down orderly.--keep-aliveretains the foreground CLI/AppHost for inspection after success or failure.--format jsonemits one summary object on stdout, with diagnostics on stderr.Preview opt-in: the command is disabled by default. Run
aspire config set features.testCommandEnabled trueto enable it. The flag only gates CLI command registration; it does not add hosting/runtime API gates or change ordinaryaspire run. Both packaged C#/TypeScript CLI E2E scenarios explicitly enable it.Current API:
WithTesting()marks a resource for process-based completion.WithTesting(Func<ResourceTestingContext, Task>?)registers one optional asynchronous runtime collector. The callback never executes during model construction, ordinary run, or publish. There is no public configuration wrapper or prelaunch output-path accessor. RepeatingWithTestingreplaces the callback; marker-only clears it. Both preserve the internally allocated resource output directory and containing context.The two context types are
TestingContextfor the invocation andResourceTestingContextfor an individual logical resource. The latter exposes its containing context throughTestingContext, socontext.TestingContext.OutputPathis the run directory andcontext.OutputPathis the resource directory. No compatibility aliases or obsolete wrappers are retained for these unshipped APIs.All new public hosting testing APIs carry
ASPIRETESTING001. This foundation supplies framework-neutral orchestration/reporting; upper integrations own framework helpers, report parsing, and source-outcome mappings.Run isolation:
RunCommand.csand everyRunCommandStringslocalization file remain unchanged from the PR merge base.TestCommanddeliberately owns launch/startup, cancellation/drain, reporting, and inspection while calling existing project/backchannel/secrets/logging services. Necessary startup bookkeeping is duplicated rather than extracting a shared runner that could alter ordinary development behavior. Run IDs, coordinator/reporter names, protocol DTOs, paths, lifetimes, cancellation, and seven-outcome policies are unaffected by the context naming revision.User-facing API and usage
Marker-only execution works for any resource capable of reporting authoritative completion:
Collectors run alongside resource execution. Runner arguments/environment and report locations must be configured independently, not from the callback or its synchronous prefix. This excerpt follows the source playground:
service/serviceEndpointrefer to its shared HTTP service, and the playground deletes the private runner-report directory in an AppHost shutdownfinallyblock.ResourceTestingContextexposesTestingContext,ResourceName,OutputPath,CancellationToken,PublishResult(TestResult), and:The completion helper describes resource execution independently of published results. Its default always observes run cancellation, including
--timeout-secondsand Ctrl+C. A supplied token adds caller-local cancellation; it cannot disable run cancellation. Cancelling one wait does not cancel authoritative completion or other waiters. No separate timeout or hidden default is introduced.Generated TypeScript retains the resource context and projects the containing type as
TestingContext, accessed throughcontext.testingContext():TestResult.Outcomeremains required; omitted or undefined outcomes are not silently fabricated. The enum uses implicit values with failure as its default:Only
PassedandSkippedare non-failing. All five other outcomes make testing unsuccessful even when resource processes exit zero. Individual JSON/streamed results preservefailed,passed,skipped,inconclusive,error,timedOut, orcancelled; generated TypeScript retains member names as string enum values. The shared host/CLI classifier rejects unknown outcomes rather than falling through to success.Published test
TimedOut/Cancelledoutcomes are normal test failures (exit23), not overall command deadline expiry (17) or user cancellation (130). They do not cancel peers, change deadlines, synthesize cancellation events, or fabricate unobserved tests. Process completion remains independent: a successful process can have unsuccessful results, and passing tests cannot override a failed process or collector exception.Lifetime, output, and deadlines
0requires successful resource execution/collection and orderly shutdown. Nonzero/unknown terminal process status, startup failure, unsuccessful published outcomes, and collector exceptions cannot silently pass. Resource/test failure returns23; startup/RPC/configuration/shutdown errors have explicit nonzero diagnostics. User cancellation returns130.~/.aspire/testruns/<run-id>before launching the AppHost, honoring configured Aspire home. The host internally allocates<run-id>/<logical-resource-name>before execution. Noresourcesintermediary or resource GUID suffix. Replicas share their logical resource's directory; integrations coordinate replica-specific filenames. Invalid portable names, case collisions, existing paths, and unsafe links fail explicitly rather than being sanitized/adopted. Dashboard/test run-ID correlation remains deferred; the two roots use independent identifiers.Resourcestate transitions fromTestresults, displays exit codes only for terminal states, and emits accurate per-resource passed/failed/other totals after collection drains. All five unsuccessful outcomes count as failed; other counts skips only. Individual outcomes remain visible: unsuccessful test results red, passes green, skips yellow. Resource-only tests do not invent counts. Overall verdict, published totals, artifact links, and useful error/partial-run diagnostics remain; no duplicate final resource table.summary.jsonrecords paths/timestamps/status/exit/error, actual resource observations, results, collection status, and totals.publishedResults.failedincludes all five unsuccessful outcomes;passedandskippedcount only their named outcomes. Every publication is counted once while retaining its specific outcome. No new result metadata fields. Exit codes never fabricate counts.cliExitCode: null; the final file later records inspection/shutdown outcome without another stdout object.--timeout-secondsoptionally bounds discovery/build, startup, execution, collection, and keep-alive using one monotonic deadline. It has no default and is distinct from startup-only timeout. Integers1through4294967are validated before artifacts/launch. Expiry returns17after at most five additional seconds of bounded teardown. Partial observations persist astimedOut; completed inspection results retain outcome/time while the final file records timeout exit/diagnostics. Explicit user cancellation takes precedence (130).The file-based playground resolves the hosting SDK and dashboard from repository source, without released experimental packages or private package hives. Later framework layers append scenarios to its shared AppHost; fixtures/report locations remain their responsibility. Development watch, detached testing, profile capture, and extension-managed test debug lifetimes are not supported.
Screenshots / Recordings
Security considerations
Threat modeling/security review remains pending. Dedicated run/resource directories use Unix
0700; CLI-owned files use0600from creation. Windows directories use protected current-user ACLs with inherited file permissions. Dedicatedtestrunspermissions are hardened without changing unrelated Aspire-home permissions. Unsafe links/reparse paths and writable Unix ancestors below trusted roots are rejected. Exclusive name reservations and private temporary files/atomic summary replacement avoid adopting or truncating existing destinations. Framework report permissions and container identity/mount access remain integration responsibilities. No new dependencies or external services; the optional playground starts a development HTTP service on a dynamic local endpoint.Validation
Latest CI compatibility correction: integrated pinned main
b2baebe8864c718587bd7d13cfe5460a80f83062and replaced both direct system-temp root probes inTestRunReporterwithTemporaryStorage.SystemTempPath. The failed native archive, CLI, v2 RPC and TypeScript compatibility jobs all stopped at the same RS0030 compile errors after main's #22553 analyzer change; this is not a Homebrew recurrence. Console login-link behavior is unchanged. Current-head CI is pending.Current feature-flag revision:
testCommandEnableddefaults to false and gates only CLI command registration. Focused tests cover unset/false/true configuration, command availability, existing test-command behavior, configuration discovery, and ordinary run. The actual source CLI rejectstestby default (exit1) and displays test help whenfeatures__testCommandEnabled=true(exit0). C#/TypeScript packaged E2E setup now explicitly enables the flag; that updated project was built, not rerun against a new native package locally. New-head CI is not yet verified.Earlier verified CI: run 41388552101, attempt 2 completed successfully for exact head
2f6dcc4a6e521e2e68e2e9dedef5462b676f0af5, including final aggregation. This is historical evidence, not a green result for the subsequent preview-label, state-comparer, umask, or feature-flag revisions. The initial attempt had one unrelated unchanged Windows Managed terminal-host shutdown timeout; its single targeted rerun passed. No terminal-host source, assertions, timeouts, quarantine or skip settings were changed. CLI suites passed on Windows/Linux/macOS; Hosting-4 passed on Windows/Linux. Native hosting validation and the other PR checks also passed.Earlier native CLI E2E passed: TestCommandTests job, Linux x64, actual native CLI/packages at head
2f6dcc4a6e, 2 tests passed in 2m28s, exercising six realaspire testinvocations. This validates the guest-shutdown source and corrected cross-UID fixture at that head, not merely an older archive or the current feature-flag revision.Earlier review fixes: guest testing now stops/drains the server and propagates completion (
b3a582dcf6). A completion barrier proves it cannot return early; regression cases cover guest exit0with server0,37,-1, or137, guest exit7, cancellation during drain (130), ordinary non-watch run behavior, and cleanup. The replay regression (2f6dcc4a6e) pauses an actual notification replay predicate, publishes while paused, then checks the subscriber and multi-resource coordinator observe success/failure without a lost update or deadlock. Existing already-completed replay coverage remains separate; no public test hook or production instrumentation was added.Packaged CLI E2E:
TestCommandTests.CSharpAppHost_TestResourcesCollectResultsAndStopandTestCommandTests.TypeScriptAppHost_TestResourcesCollectResultsAndStopexecute inside owned Linux Docker containers. Each language executes three realaspire testinvocations: successful execution/result (exit0), process failure with a passing published result (exit23), and process success with a failing published result (exit23).Both AppHosts mark generic executable resources with
WithTesting/withTesting, not a JavaScript testing integration. The runtime callback waits for authoritative completion, stages an artifact and publishes a result directly; TypeScript exercises real callback/context marshalling. A marker-only peer stays pending until publication completes and then probes the still-live HTTP dependency. Assertions cover the exact resource exit codes, collection state/counts, fresh flat artifact directory per invocation, artifact content, a single parseable JSON stdout object equal to persistedsummary.json, and removal of all four recorded owned processes after return. AppHost construction explicitly checks that the collector has not run yet.Initial Linux CI exposed a fixture-only cross-UID permission issue: applying
umask 077before scaffolding made root-owned bind-mounted source inaccessible to host fixture writes.e1120ed4e8retains harness shared-source permissions until host writes finish, then applies private runtime permissions and hardens only the owned container's Aspire home. Production artifact protections were not relaxed.CI fixes in
f0d5b8f6: refreshed Go/Java/Python/Rust generated snapshots for the current API; exercisedDisableExtensionLaunchin the clone-property fixture; replaced Windows RPC fixture's inlinecmd /ccommand with a batch file in a path containing spaces, and asserted actual terminal exit codes so error99cannot masquerade as an expected failure. The affected generator jobs and Windows Hosting-4 job passed in CI run 41382191517; Linux/macOS CLI jobs passed. This run also hit an unrelated template SDK-download TLS handshake failure before test execution. The MongoDB failure on the earlier run matched existing flaky issue #21593, and did not recur; no MongoDB changes were made.The superseded run 41384739405 caught the E2E fixture permission issue fixed above and one unchanged Windows Git SSH verification theory failure after its five-second probe budget under runner contention. No SSH policy/timeout changes were made. That run was cancelled after the new fixes were pushed; the later head
2f6dcc4a6eWindows CLI suite passed.Earlier context-naming revision validation, macOS arm64 with the restored repository SDK; quarantined/outerloop tests excluded. Generated TypeScript handle/getter/wrapper/registration changes were inspected and rerun successfully. The scanner explicitly checks the new getter capability and returned context type.
Coverage retains experimental context contracts, deferred runtime invocation, replacement/marker clearing with stable paths and containing context, default/run/caller cancellation and independent waiters, and all seven outcome policies. Real process/socket/RPC cases prove peers are awaited and per-test timeout/cancellation does not stop the host. CLI cases cover failure
23, keep-alive, explicit cancellation/deadlines, truthful totals/specific outcomes, partial reporting, stdout purity, rendering/escaping/no-color, and ordinary-run regressions.Limits: the packaged CLI E2E cases do not exercise Ctrl+C, deadline expiry or keep-alive; those remain focused host/CLI test coverage. Local cross-OS native-AOT archive creation was blocked by missing native toolchain support, so local E2E validation used CI-built Linux artifacts rather than a fabricated local payload. No full local repository build, Windows packaged E2E execution, framework implementations/mappings, visual-rendering recording, API review, or threat-model/security review. The previous ordinary-run smoke remains historical evidence; this revision reran ordinary-run regression tests, not that manual scenario.
Context and dependencies
Informed by closed historical proposals #18428 and #13275, without claiming to fix them or implement their entire designs. The AppHost/CLI reporting contract remains
test-reporting.v1; incompatible AppHosts fail explicitly. Framework integrations and dashboard work are separate stacked follow-ups.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?