Skip to content

Add resource-bound aspire test with experimental live collectors - #21527

Merged
Mitch Denny (mitchdenny) merged 38 commits into
mainfrom
mitchdenny-aspire-test-lifetime
Nov 26, 2026
Merged

Mitch Denny (mitchdenny) merged 38 commits into
mainfrom
mitchdenny-aspire-test-lifetime

Conversation

@mitchdenny

@mitchdenny Mitch Denny (mitchdenny) commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: a59c24f38ed49a18059c953b917e78e3883c0067

Dimension Assessment Rationale
Change confidence 8/10 ↑ Current Release CLI build with banned-API analysis and 132 command/reporter tests passed after integrating pinned main and updating both system-temp guards.
↑ 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-alive retains the foreground CLI/AppHost for inspection after success or failure. --format json emits one summary object on stdout, with diagnostics on stderr.

Preview opt-in: the command is disabled by default. Run aspire config set features.testCommandEnabled true to enable it. The flag only gates CLI command registration; it does not add hosting/runtime API gates or change ordinary aspire 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. Repeating WithTesting replaces the callback; marker-only clears it. Both preserve the internally allocated resource output directory and containing context.

The two context types are TestingContext for the invocation and ResourceTestingContext for an individual logical resource. The latter exposes its containing context through TestingContext, so context.TestingContext.OutputPath is the run directory and context.OutputPath is 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.cs and every RunCommandStrings localization file remain unchanged from the PR merge base. TestCommand deliberately 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:

#pragma warning disable ASPIRETESTING001
builder.AddExecutable("smoke-tests", "custom-test-runner", ".")
    .WithTesting();

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/serviceEndpoint refer to its shared HTTP service, and the playground deletes the private runner-report directory in an AppHost shutdown finally block.

var reports = Directory.CreateTempSubdirectory("probe-reports-");
var tests = builder.AddDotnetProject("foundation-tests", "foundation-tests/tests.cs")
    .WithEnvironment("SERVICE_URL", serviceEndpoint)
    .WithEnvironment("TEST_OUTPUT_PATH", reports.FullName)
    .WaitFor(service);

tests.WithTesting(async context =>
{
    var passed = await context.WaitForCompletionAsync();
    if (passed)
    {
        var report = Path.Combine(reports.FullName, "probe.txt");
        var actual = await File.ReadAllTextAsync(report, context.CancellationToken);
        passed = actual == "Aspire CLI testing";
        File.Copy(report, Path.Combine(context.OutputPath, "probe.txt"));
    }

    context.PublishResult(new TestResult
    {
        Name = "shared-service-probe",
        Outcome = passed ? TestOutcome.Passed : TestOutcome.Failed
    });
});

ResourceTestingContext exposes TestingContext, ResourceName, OutputPath, CancellationToken, PublishResult(TestResult), and:

public TestingContext TestingContext { get; }
public Task<bool> WaitForCompletionAsync(CancellationToken cancellationToken = default);

The completion helper describes resource execution independently of published results. Its default always observes run cancellation, including --timeout-seconds and 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 through context.testingContext():

await tests.withTesting();
await tests.withTesting({
    callback: async context => {
        await context.waitForCompletionAsync();
        const invocation = await context.testingContext();
        // invocation.outputPath() identifies the containing run;
        // context.outputPath() identifies this resource's artifact destination.
        // Read independently configured reports, stage artifacts, and publish results.
    },
});
// Optional caller-local cancellation:
// await context.waitForCompletionAsync({ cancellationToken: signal });

TestResult.Outcome remains required; omitted or undefined outcomes are not silently fabricated. The enum uses implicit values with failure as its default:

public enum TestOutcome
{
    Failed,
    Passed,
    Skipped,
    Inconclusive,
    Error,
    TimedOut,
    Cancelled
}

Only Passed and Skipped are non-failing. All five other outcomes make testing unsuccessful even when resource processes exit zero. Individual JSON/streamed results preserve failed, passed, skipped, inconclusive, error, timedOut, or cancelled; 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/Cancelled outcomes are normal test failures (exit 23), 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

  • Exit 0 requires 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 returns 23; startup/RPC/configuration/shutdown errors have explicit nonzero diagnostics. User cancellation returns 130.
  • All resources/replicas and current callbacks are joined without fail-fast behavior. Collection starts before CLI connection; events are retained/replayed. Already-terminal resources, notification races, late exit codes, and callback exceptions are covered. An early-returning callback cannot finish a running resource. Publication closes when its callback ends or cancellation occurs; noncooperative callbacks cannot change finalized output.
  • In guest testing mode, a successful guest exit explicitly requests server shutdown, waits for authoritative server completion, and preserves server failures/forced termination rather than discarding them during best-effort session disposal. Guest nonzero exits and caller cancellation remain failures; ordinary non-watch run behavior is unchanged.
  • The CLI creates a unique private ~/.aspire/testruns/<run-id> before launching the AppHost, honoring configured Aspire home. The host internally allocates <run-id>/<logical-resource-name> before execution. No resources intermediary 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.
  • Text distinguishes Resource state transitions from Test results, 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.
  • Versioned summary.json records paths/timestamps/status/exit/error, actual resource observations, results, collection status, and totals. publishedResults.failed includes all five unsuccessful outcomes; passed and skipped count only their named outcomes. Every publication is counted once while retaining its specific outcome. No new result metadata fields. Exit codes never fabricate counts.
  • JSON stdout is one object without interactive output. During keep-alive it is emitted once at completion with cliExitCode: null; the final file later records inspection/shutdown outcome without another stdout object.
  • --timeout-seconds optionally bounds discovery/build, startup, execution, collection, and keep-alive using one monotonic deadline. It has no default and is distinct from startup-only timeout. Integers 1 through 4294967 are validated before artifacts/launch. Expiry returns 17 after at most five additional seconds of bounded teardown. Partial observations persist as timedOut; completed inspection results retain outcome/time while the final file records timeout exit/diagnostics. Explicit user cancellation takes precedence (130).
aspire config set features.testCommandEnabled true
aspire test --apphost ./AppHost/AppHost.csproj
aspire test --apphost ./AppHost/AppHost.csproj --keep-alive
aspire test --apphost ./AppHost/AppHost.csproj --timeout-seconds 120 --format json --non-interactive

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

This PR includes UI changes. Please add screenshots or screen recordings so reviewers can evaluate the visual changes without running locally.

  • For before/after comparisons, place them side-by-side or label them clearly.
  • For interactive changes (animations, transitions, new flows), prefer a short screen recording (GIF or video).
  • TODO: No text-rendering walkthrough was captured. Exercise multiple annotated resources/replicas and a failure; inspect resource/test distinction, terminal-only exit codes, collector-drained counts, overall totals/artifact links, keep-alive, and plain/no-color output. There is no final resource table. The new JSON CLI E2E cases produce diagnostic terminal recordings through the existing harness, not a visual-rendering demonstration.

Security considerations

Threat modeling/security review remains pending. Dedicated run/resource directories use Unix 0700; CLI-owned files use 0600 from creation. Windows directories use protected current-user ACLs with inherited file permissions. Dedicated testruns permissions 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 b2baebe8864c718587bd7d13cfe5460a80f83062 and replaced both direct system-temp root probes in TestRunReporter with TemporaryStorage.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.

./restore.sh
# Passed: 0 warnings, 0 errors.

dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --configuration Release --no-launch-profile -- --filter-class '*.Commands.TestCommandTests' --filter-class '*.TestRunReporterTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Passed: 132 tests, including reporter path guards and console login-link/non-logging regressions; production banned-API analysis enabled.

Current feature-flag revision: testCommandEnabled defaults 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 rejects test by default (exit 1) and displays test help when features__testCommandEnabled=true (exit 0). 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.

dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --no-launch-profile -- \
  --filter-class '*.RootCommandTests' --filter-class '*.KnownFeaturesTests' \
  --filter-class '*.TestCommandTests' --filter-class '*.ConfigCommandTests' \
  --filter-class '*.RunCommandTests' \
  --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Passed: 356 tests.

dotnet build tests/Aspire.Cli.EndToEnd.Tests/Aspire.Cli.EndToEnd.Tests.csproj --no-restore
# Passed: 0 warnings, 0 errors.

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 real aspire test invocations. 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 exit 0 with server 0, 37, -1, or 137, guest exit 7, 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.

export DOTNET_ROOT="$PWD/.dotnet"
export PATH="$DOTNET_ROOT:$PATH"
export MSBUILDTERMINALLOGGER=false

dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --no-launch-profile -- \
  --filter-class '*.GuestAppHostProjectTests' --filter-class '*.AppHostServerSessionTests' \
  --filter-class '*.TestCommandTests' \
  --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Passed: 206 tests.

dotnet test --project tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj --no-launch-profile -- \
  --filter-class '*.TestRunCoordinatorTests' --filter-class '*.TestRunStreamingTests' \
  --filter-class '*.TestRunCoordinatorEndToEndTests' \
  --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Passed: 38 tests.

Packaged CLI E2E: TestCommandTests.CSharpAppHost_TestResourcesCollectResultsAndStop and TestCommandTests.TypeScriptAppHost_TestResourcesCollectResultsAndStop execute inside owned Linux Docker containers. Each language executes three real aspire test invocations: successful execution/result (exit 0), process failure with a passing published result (exit 23), and process success with a failing published result (exit 23).

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 persisted summary.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 077 before scaffolding made root-owned bind-mounted source inaccessible to host fixture writes. e1120ed4e8 retains 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.

ASPIRE_E2E_CLI_ARCHIVE_DIR="$PWD/artifacts/testing-cli-e2e-ci" \
ASPIRE_E2E_DOTNET_IMAGE=aspire-viteplus-e2e-runner:latest \
dotnet test --project tests/Aspire.Cli.EndToEnd.Tests/Aspire.Cli.EndToEnd.Tests.csproj --no-launch-profile -- \
  --filter-class '*.TestCommandTests' \
  --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Local pass after permission fix: 2 tests, six real invocations, 1m55s.
# Local driver: macOS arm64, owned Linux-arm64 containers.
# Local native CLI/NuGet artifacts came from CI run 41382191517, product head f0d5b8f6.
# Head 2f6dcc4a6e Linux-x64 native execution separately passed in CI above.

dotnet run --project tools/SelectTests -- --from 7b5825e195^ --explain
# Earlier added-file trace passed: new fixture attributed through ProjectGraph and convention
# to Aspire.Cli.EndToEnd.Tests; one selected project and zero unattributed files.
# CI admitted and passed a dedicated TestCommandTests class job. No routing-map edit required.

CI fixes in f0d5b8f6: refreshed Go/Java/Python/Rust generated snapshots for the current API; exercised DisableExtensionLaunch in the clone-property fixture; replaced Windows RPC fixture's inline cmd /c command with a batch file in a path containing spaces, and asserted actual terminal exit codes so error 99 cannot 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 2f6dcc4a6e Windows 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.

dotnet test --project tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj --no-launch-profile -- \
  --filter-class '*.TestingCollectorTests' --filter-class '*.TestRunCoordinatorTests' \
  --filter-class '*.TestRunStreamingTests' --filter-class '*.TestRunCoordinatorEndToEndTests' \
  --filter-class '*.AppHostRpcTargetTests' \
  --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Passed: 96 tests.

dotnet test --project tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests.csproj --no-launch-profile -- \
  --filter-class '*.AtsTypeScriptCodeGeneratorTests' \
  --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Passed: 140 tests.

dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --no-launch-profile -- \
  --filter-class '*.TestRunReporterTests' --filter-class '*.TestCommandTests' --filter-class '*.RunCommandTests' \
  --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'
# Passed: 247 tests.

dotnet run --project src/Aspire.Cli/Aspire.Cli.csproj --no-launch-profile -- \
  test --apphost playground/AspireCliTesting/apphost.cs --isolated \
  --timeout-seconds 120 --format json --non-interactive
# Earlier pass, before the default-off CLI gate: source AppHost built and executed;
# exit 0; real shared-service-probe passed. New invocations require the opt-in above.
# Directly verified one stdout JSON equals summary.json, current probe.txt content,
# flat foundation-tests directory, and Unix 0700 directory/0600 artifact modes.

base=$(git merge-base HEAD origin/main)
git diff --exit-code "$base" -- src/Aspire.Cli/Commands/RunCommand.cs \
  src/Aspire.Cli/Resources/RunCommandStrings.resx \
  src/Aspire.Cli/Resources/RunCommandStrings.Designer.cs \
  ':(glob)src/Aspire.Cli/Resources/xlf/RunCommandStrings.*.xlf'
# Passed, including earlier review fixes: zero diff.

git diff --check
# Passed.

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

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

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]>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21527

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21527"

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread src/Aspire.Cli/Commands/RunCommand.cs Resolved
Comment thread src/Aspire.Cli/Commands/RunCommand.cs Resolved
Comment thread src/Aspire.Cli/Commands/TestCommand.cs Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 31, 2026 06:57
@mitchdenny Mitch Denny (mitchdenny) changed the title Add resource-bound aspire test execution Add resource-bound aspire test with run context and summaries Oct 31, 2026
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/Aspire.Cli/Commands/TestCommand.cs Resolved
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]>
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 31, 2026 08:31
@mitchdenny Mitch Denny (mitchdenny) changed the title Add resource-bound aspire test with run context and summaries Add resource-bound aspire test with experimental live collectors Oct 31, 2026
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/Aspire.Cli/Commands/TestCommand.cs Resolved
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]>
@github-actions

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]>
@github-actions

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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/Aspire.Cli/Commands/TestCommand.cs Resolved
Comment thread src/Aspire.Cli/Commands/TestCommand.cs Resolved
Comment thread src/Aspire.Cli/README.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

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]>
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

59 / 101 PR test projects · 8 PR jobs, from 92 changed files.

Selected PR test projects (59 / 101)

Aspire.Cli.EndToEnd.Tests, Aspire.Cli.Tests, Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.Analyzers.Tests, Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Kusto.Tests, Aspire.Hosting.Azure.Provisioning.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Browsers.Tests, Aspire.Hosting.CodeGeneration.Go.Tests, Aspire.Hosting.CodeGeneration.Java.Tests, Aspire.Hosting.CodeGeneration.Python.Tests, Aspire.Hosting.CodeGeneration.Rust.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Aspire.Hosting.Containers.Tests, Aspire.Hosting.DevTunnels.Tests, Aspire.Hosting.Docker.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.EntityFrameworkCore.Tests, Aspire.Hosting.Foundry.Tests, Aspire.Hosting.Garnet.Tests, Aspire.Hosting.Go.Tests, Aspire.Hosting.Java.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Kafka.Tests, Aspire.Hosting.Keycloak.Tests, Aspire.Hosting.Kubernetes.Tests, Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests, Aspire.Hosting.MongoDB.Tests, Aspire.Hosting.MySql.Tests, Aspire.Hosting.Native.Core.Tests, Aspire.Hosting.Nats.Tests, Aspire.Hosting.OpenAI.Tests, Aspire.Hosting.Oracle.Tests, Aspire.Hosting.Orleans.Tests, Aspire.Hosting.PostgreSQL.Tests, Aspire.Hosting.Python.Tests, Aspire.Hosting.Qdrant.Tests, Aspire.Hosting.RabbitMQ.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Redis.Tests, Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Rust.Tests, Aspire.Hosting.Seq.Tests, Aspire.Hosting.SqlServer.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Hosting.Valkey.Tests, Aspire.Hosting.Yarp.Tests, Aspire.Managed.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests, Aspire.TerminalHost.Tests, Infrastructure.Tests

Selected PR jobs (8)

cli-starter-validation, extension-e2e, homebrew-installer, native-dashboard-validation, polyglot, typescript-api-compat, typescript-sdk, winget-installer


How these were chosen — grouped by what changed

⚠️ 31 of the 59 selected test projects come from a single change — src/Aspire.Hosting/ApplicationModel/ResourceTestingContext.cs.

🔧 src/Aspire.Hosting/ApplicationModel/ResourceTestingContext.cs (changed source)
→ 31 via the project graph

show 31

Aspire.Hosting.Analyzers.Tests (2 hops), Aspire.Hosting.Azure.Kubernetes.Tests (2 hops), Aspire.Hosting.Azure.Kusto.Tests (2 hops), Aspire.Hosting.Azure.Provisioning.Tests (3 hops), Aspire.Hosting.Azure.Tests, Aspire.Hosting.DevTunnels.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.EntityFrameworkCore.Tests (2 hops), Aspire.Hosting.Foundry.Tests (2 hops), Aspire.Hosting.Garnet.Tests (2 hops), Aspire.Hosting.Go.Tests (2 hops), Aspire.Hosting.Java.Tests (2 hops), Aspire.Hosting.Kafka.Tests (2 hops), Aspire.Hosting.Keycloak.Tests (2 hops), Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests (2 hops), Aspire.Hosting.MongoDB.Tests (2 hops), Aspire.Hosting.MySql.Tests (2 hops), Aspire.Hosting.Nats.Tests (2 hops), Aspire.Hosting.Oracle.Tests (2 hops), Aspire.Hosting.Orleans.Tests (2 hops), Aspire.Hosting.PostgreSQL.Tests (2 hops), Aspire.Hosting.Python.Tests (2 hops), Aspire.Hosting.Qdrant.Tests (2 hops), Aspire.Hosting.RabbitMQ.Tests (2 hops), Aspire.Hosting.Redis.Tests (2 hops), Aspire.Hosting.Rust.Tests (2 hops), Aspire.Hosting.Seq.Tests (2 hops), Aspire.Hosting.SqlServer.Tests (2 hops), Aspire.Hosting.Valkey.Tests (2 hops), Aspire.Playground.Tests

🔧 src/Shared/KnownConfigNames.cs (changed source)
→ 13 via the project graph

show 13

Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.Browsers.Tests, Aspire.Hosting.Containers.Tests, Aspire.Hosting.Docker.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Kubernetes.Tests, Aspire.Hosting.OpenAI.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Yarp.Tests, Aspire.Managed.Tests, Aspire.Templates.Tests, Aspire.TerminalHost.Tests

🧪 tests/Aspire.Hosting.Tests/Cli/TestRunCoordinatorEndToEndTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Tests
→ 3 via the project graph: Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.Radius.Tests

📦 affected project Aspire.Hosting.Dotnet
→ 2 tests: Aspire.Cli.EndToEnd.Tests, Aspire.Templates.Tests

🔧 src/Aspire.Hosting.RemoteHost/Ats/AtsCallbackProxyFactory.cs (changed source)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests
→ 1 via the project graph: Aspire.Hosting.Azure.EntraId.Tests

📦 affected project Aspire.Cli
→ 1 test: Aspire.Cli.EndToEnd.Tests

📦 affected project Aspire.Dashboard
→ 1 test: Aspire.Templates.Tests

📦 affected project Aspire.Hosting.Native.Server
→ 1 test: Aspire.Cli.EndToEnd.Tests

📄 playground/AspireCliTesting/Directory.Build.props (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/AspireCliTesting/Directory.Build.targets (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/AspireCliTesting/apphost.cs (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/AspireCliTesting/aspire.config.json (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/AspireCliTesting/foundation-tests/tests.cs (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/AspireCliTesting/service/service.cs (changed)
→ 1 directly: Aspire.Playground.Tests

🔧 src/Aspire.Cli/Resources/TestCommandStrings.resx (changed source)
→ 1 directly: Infrastructure.Tests

🔧 src/Aspire.Hosting.RemoteHost/Ats/AtsMarshaller.cs (changed source)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🔧 src/Aspire.Hosting.RemoteHost/Ats/CapabilityDispatcher.cs (changed source)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🔧 src/Aspire.Hosting.RemoteHost/ICallbackInvoker.cs (changed source)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🔧 src/Aspire.Hosting.RemoteHost/JsonRpcCallbackInvoker.cs (changed source)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🔧 src/Aspire.Hosting/Backchannel/BackchannelDataTypes.cs (changed source)
→ 1 via the project graph: Aspire.Hosting.Native.Core.Tests

🔧 src/Shared/CliExitCodes.cs (changed source)
→ 1 via the project graph: Aspire.Cli.EndToEnd.Tests

🧪 tests/Aspire.Cli.EndToEnd.Tests/TestCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.EndToEnd.Tests

🧪 tests/Aspire.Cli.Tests/Commands/PublishCommandPromptingIntegrationTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Commands/RootCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Commands/TestCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Configuration/KnownFeaturesTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/DotNet/DotNetCliRunnerTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/DotNet/ProcessInvocationOptionsTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Projects/DotNetAppHostProjectTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Projects/GuestAppHostProjectTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/TestServices/FakeAppHostServerSession.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/TestServices/TestAppHostCliBackchannel.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.AllPublishedOutcomesRetainSpecificNamesAndTotalsInJson.verified.json (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.InterruptedCollectionShowsPublishedSoFarInsteadOfFinalTotals_exitCode=130.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.InterruptedCollectionShowsPublishedSoFarInsteadOfFinalTotals_exitCode=17.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.ResourceCountsWaitForEveryReplicaAndKeepProcessAndCollectorFailuresIndependent_processFails=False.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.ResourceCountsWaitForEveryReplicaAndKeepProcessAndCollectorFailuresIndependent_processFails=True.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.ResourceKeyedReportPreservesReplicasPartialCasesAndResourceOnlyFailures.verified.json (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.ResourceTransitionsAndDelayedTestResultsHaveDistinctRenderingAndFinalCounts.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.SummaryPreservesReplicasAndFinalOutcomesBeforeReturningCompletion_supportsLinks=False.verified.json (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.SummaryPreservesReplicasAndFinalOutcomesBeforeReturningCompletion_supportsLinks=True.verified.json (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.TestLogMarkupEscapesNamesAndRespectsConsoleColorCapabilities_color=False.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/Snapshots/TestRunReporterTests.UnknownTerminalExitCodeIsExplicitWithoutInventingTestCounts.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Testing/TestRunReporterTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Utils/CliTestHelper.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Go.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.go (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Go.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Java.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.java (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Java.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Python.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.py (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Rust.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.rs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Rust.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/AtsTypeScriptCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/HostingContainerResourceCapabilities.verified.txt (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.ts (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

🧪 tests/Aspire.Hosting.RemoteHost.Tests/AttributeDataReaderTests.cs (changed test)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🧪 tests/Aspire.Hosting.RemoteHost.Tests/CallbackProxyTests.cs (changed test)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🧪 tests/Aspire.Hosting.RemoteHost.Tests/CapabilityDispatcherTests.cs (changed test)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🧪 tests/Aspire.Hosting.RemoteHost.Tests/JsonRpcCallbackInvokerTests.cs (changed test)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

🧪 tests/Aspire.Hosting.Tests/Cli/TestRunCoordinatorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Tests

🧪 tests/Aspire.Hosting.Tests/Cli/TestRunStreamingTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Tests

🧪 tests/Aspire.Hosting.Tests/Cli/TestingCollectorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Tests

Job reasons

Job Triggered by
cli-starter-validation • affected project Aspire.Hosting.Native.Server
• affected project Aspire.Cli
extension-e2e • src/Aspire.Cli/Backchannel/AppHostCliBackchannel.cs, src/Aspire.Cli/Backchannel/BackchannelJsonSerializerContext.cs, src/Aspire.Cli/Commands/RootCommand.cs, src/Aspire.Cli/Commands/TestCommand.cs, src/Aspire.Cli/DotNet/DotNetCliRunner.cs, src/Aspire.Cli/KnownFeatures.cs, src/Aspire.Cli/Program.cs, src/Aspire.Cli/Projects/AppHostProjectContext.cs, src/Aspire.Cli/Projects/DotNetAppHostProject.cs, src/Aspire.Cli/Projects/GuestAppHostProject.cs, src/Aspire.Cli/Resources/TestCommandStrings.Designer.cs, src/Aspire.Cli/Resources/TestCommandStrings.resx, src/Aspire.Cli/Resources/xlf/TestCommandStrings.cs.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.de.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.es.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.fr.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.it.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.ja.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.ko.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.pl.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.pt-BR.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.ru.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.tr.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.zh-Hans.xlf, src/Aspire.Cli/Resources/xlf/TestCommandStrings.zh-Hant.xlf, src/Aspire.Cli/Testing/TestRunReporter.cs, src/Aspire.Hosting.RemoteHost/Ats/AtsCallbackProxyFactory.cs, src/Aspire.Hosting.RemoteHost/Ats/AtsMarshaller.cs, src/Aspire.Hosting.RemoteHost/Ats/CapabilityDispatcher.cs, src/Aspire.Hosting.RemoteHost/ICallbackInvoker.cs, src/Aspire.Hosting.RemoteHost/JsonRpcCallbackInvoker.cs, src/Aspire.Hosting/ApplicationModel/ResourceTestingContext.cs, src/Aspire.Hosting/ApplicationModel/TestResult.cs, src/Aspire.Hosting/ApplicationModel/TestingAnnotation.cs, src/Aspire.Hosting/ApplicationModel/TestingContext.cs, src/Aspire.Hosting/ApplicationModel/TestingDiagnostics.cs, src/Aspire.Hosting/Ats/AspireCallbackTimeoutAttribute.cs, src/Aspire.Hosting/Backchannel/AppHostRpcTarget.cs, src/Aspire.Hosting/Backchannel/BackchannelDataTypes.cs, src/Aspire.Hosting/Cli/TestRunCoordinator.cs, src/Aspire.Hosting/DistributedApplication.cs, src/Aspire.Hosting/DistributedApplicationBuilder.cs, src/Aspire.Hosting/TestResourceBuilderExtensions.cs
• affected project Aspire.Hosting.Native.Server
• affected project Aspire.Cli
homebrew-installer affected project Aspire.Hosting.Native.Server
native-dashboard-validation affected project Aspire.Dashboard
polyglot • affected project Aspire.Cli
• affected project Aspire.Hosting.Azure.Provisioning.AppService
typescript-api-compat affected project Aspire.Cli
typescript-sdk affected project Aspire.Hosting.CodeGeneration.TypeScript
winget-installer affected project Aspire.Hosting.Native.Server

Selection computed for commit a59c24f.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants