59 references to CompletedWithError
Aspire.Hosting (11)
Ats\PipelineExports.cs (1)
162"completedwitherror" or "completed_with_error" or "completed-with-error" => CompletionState.CompletedWithError,
Pipelines\PipelineActivityReporter.cs (2)
37CompletionState.CompletedWithError => CompletionStates.CompletedWithError, 251CompletionState.CompletedWithError => "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
99CompletionState.CompletedWithError, 139CompletionState.CompletedWithError,
Pipelines\ReportingStep.cs (1)
203CompletionState.CompletedWithError => $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
84await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.CompletedWithError }, stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (4)
95await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 111await step.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 223await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 239await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (1)
360CompletionState.CompletedWithError,
AzureEnvironmentResource.cs (1)
184CompletionState.CompletedWithError,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
207CompletionState.CompletedWithError,
Aspire.Hosting.Azure.Tests (12)
AzureAppServiceTests.cs (1)
111step.CompletionState == CompletionState.CompletedWithError);
AzureDeployerTests.cs (11)
176Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 231Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 286Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 346Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 412Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 508Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 717Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 779Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 989Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 1241.Where(s => s.CompletionState == CompletionState.CompletedWithError) 1246.Where(t => t.CompletionState == CompletionState.CompletedWithError)
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
278await deployTask.CompleteAsync($"Docker Compose deployment failed: {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 337await deployTask.CompleteAsync($"Docker Compose shutdown failed: {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
874Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError); 1252Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError);
Publishing\PipelineActivityReporterTests.cs (24)
137await step.CompleteAsync(completionText, isError ? CompletionState.CompletedWithError : CompletionState.Completed, CancellationToken.None); 283[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 312await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.CompletedWithError }, CancellationToken.None); 345await step3.CompleteAsync("Step 3 failed", CompletionState.CompletedWithError, CancellationToken.None); 420await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 469await step.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 503await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); // Should also not throw (noop) 792Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 809[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 838await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.CompletedWithError }, CancellationToken.None); 1142await task.CompleteAsync("Error message", CompletionState.CompletedWithError, CancellationToken.None); 1148await task.CompleteAsync("Different error message", CompletionState.CompletedWithError, CancellationToken.None); 1154Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 1190await step.CompleteAsync("Error", CompletionState.CompletedWithError, CancellationToken.None); 1196await step.CompleteAsync("Different error", CompletionState.CompletedWithError, CancellationToken.None); 1202Assert.Equal(CompletionState.CompletedWithError, stepInternal.CompletionState); 1207[InlineData(CompletionState.Completed, CompletionState.CompletedWithError)] 1209[InlineData(CompletionState.CompletedWithWarning, CompletionState.CompletedWithError)] 1210[InlineData(CompletionState.CompletedWithError, CompletionState.Completed)] 1211[InlineData(CompletionState.CompletedWithError, CompletionState.CompletedWithWarning)] 1238[InlineData(CompletionState.Completed, CompletionState.CompletedWithError)] 1240[InlineData(CompletionState.CompletedWithWarning, CompletionState.CompletedWithError)] 1241[InlineData(CompletionState.CompletedWithError, CompletionState.Completed)] 1242[InlineData(CompletionState.CompletedWithError, CompletionState.CompletedWithWarning)]
Publishing\PublishingExtensionsTests.cs (1)
121Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
88CompletionState.CompletedWithError, 100CompletionState.CompletedWithError, 137CompletionState.CompletedWithError, 163CompletionState.CompletedWithError,