70 references to CompletedWithError
Aspire.Hosting (11)
Ats\PipelineExports.cs (1)
201"completedwitherror" or "completed_with_error" or "completed-with-error" => CompletionState.CompletedWithError,
Pipelines\PipelineActivityReporter.cs (2)
39CompletionState.CompletedWithError => CompletionStates.CompletedWithError, 264CompletionState.CompletedWithError => "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
99CompletionState.CompletedWithError, 139CompletionState.CompletedWithError,
Pipelines\ReportingStep.cs (1)
215CompletionState.CompletedWithError => $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
93await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.CompletedWithError }, stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (4)
96await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 112await step.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 224await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 240await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (1)
385CompletionState.CompletedWithError,
AzureEnvironmentResource.cs (2)
217CompletionState.CompletedWithError, 381CompletionState.CompletedWithError,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
303CompletionState.CompletedWithError,
Aspire.Hosting.Azure.Tests (15)
AzureAppServiceTests.cs (1)
226step.CompletionState == CompletionState.CompletedWithError);
AzureDeployerTests.cs (14)
183Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 238Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 293Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 353Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 419Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 487Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 547Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 631Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 894Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 956Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 1166Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 1448.Where(s => s.CompletionState == CompletionState.CompletedWithError) 1453.Where(t => t.CompletionState == CompletionState.CompletedWithError) 2083Assert.Equal(CompletionState.CompletedWithError, loginStep.CompletionState);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
439await deployTask.CompleteAsync($"Compose deployment failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 477await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (3)
Deployment\HelmDeploymentEngine.cs (3)
274CompletionState.CompletedWithError, 500CompletionState.CompletedWithError, 627CompletionState.CompletedWithError,
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
971Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState); 997Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState);
Aspire.Hosting.Rust.Tests (2)
AddRustAppPublishTests.cs (2)
413Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState); 468Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
903Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError); 1273Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError);
Publishing\PipelineActivityReporterTests.cs (24)
187await step.CompleteAsync(completionText, isError ? CompletionState.CompletedWithError : CompletionState.Completed, CancellationToken.None); 333[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 362await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.CompletedWithError }, CancellationToken.None); 395await step3.CompleteAsync("Step 3 failed", CompletionState.CompletedWithError, CancellationToken.None); 470await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 519await step.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 553await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); // Should also not throw (noop) 906Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 923[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 952await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.CompletedWithError }, CancellationToken.None); 1256await task.CompleteAsync("Error message", CompletionState.CompletedWithError, CancellationToken.None); 1262await task.CompleteAsync("Different error message", CompletionState.CompletedWithError, CancellationToken.None); 1268Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 1304await step.CompleteAsync("Error", CompletionState.CompletedWithError, CancellationToken.None); 1310await step.CompleteAsync("Different error", CompletionState.CompletedWithError, CancellationToken.None); 1316Assert.Equal(CompletionState.CompletedWithError, stepInternal.CompletionState); 1321[InlineData(CompletionState.Completed, CompletionState.CompletedWithError)] 1323[InlineData(CompletionState.CompletedWithWarning, CompletionState.CompletedWithError)] 1324[InlineData(CompletionState.CompletedWithError, CompletionState.Completed)] 1325[InlineData(CompletionState.CompletedWithError, CompletionState.CompletedWithWarning)] 1352[InlineData(CompletionState.Completed, CompletionState.CompletedWithError)] 1354[InlineData(CompletionState.CompletedWithWarning, CompletionState.CompletedWithError)] 1355[InlineData(CompletionState.CompletedWithError, CompletionState.Completed)] 1356[InlineData(CompletionState.CompletedWithError, CompletionState.CompletedWithWarning)]
Publishing\PublishingExtensionsTests.cs (1)
123Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
88CompletionState.CompletedWithError, 100CompletionState.CompletedWithError, 137CompletionState.CompletedWithError, 163CompletionState.CompletedWithError,