59 references to Display
AnalyzeCiFailure (57)
AnalysisCommands.cs (1)
270
Console.WriteLine($"::error::{CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(ex.Message, limit: 1000))}");
AnalysisDiagnostics.cs (1)
96
var text = CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(message, limit: 1000))
AnalysisInvocation.cs (2)
69
Console.Error.WriteLine($"::error::Unable to retain analysis diagnostics: {CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(error.Message, limit: 500))}");
83
Console.Error.WriteLine($"::error::Unable to retain analysis recovery: {CiFailureJson.
Display
(error.Message)}");
AnalysisPublisher.cs (4)
392
Console.WriteLine($"::warning::Cause {cause.Id} has an unsupported occurrence section. Keeping existing body: {
Display
(ex.Message)}");
406
Console.WriteLine($"::warning::Unable to migrate main issue body for {cause.Id}: {
Display
(ex.Message)}");
513
Console.WriteLine($"::warning::Comment state is unknown. Skipping comment: {
Display
(ex.Message)}");
536
Console.WriteLine($"::warning::PR state is unknown. Skipping comment: {
Display
(ex.Message)}");
AnalysisRerunner.cs (3)
91
Display
(DiagnosticTextSanitizer.Sanitize(ex.Message, limit: 500)));
103
Display
(DiagnosticTextSanitizer.Sanitize(ex.Message, limit: 500)));
127
Display
(DiagnosticTextSanitizer.Sanitize(ex.Message, limit: 500)));
AnalysisScratch.cs (1)
36
Console.Error.WriteLine($"::warning::Unable to remove analysis scratch: {CiFailureJson.
Display
(error.Message)}");
CauseHistoryStore.cs (1)
31
throw new ValidationException($"Unable to load CI failure history: {CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(reference.Error, limit: 4096))}");
EvidencePreparation.cs (6)
54
Console.Error.WriteLine($"::error::Unable to write collection outcome: {CiFailureJson.
Display
(outcomeError.Message)}");
59
CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(error.Message, limit: 1000)));
153
Console.Error.WriteLine($"::error::Unable to write collection outcome: {CiFailureJson.
Display
(outcomeError.Message)}");
229
Console.Error.WriteLine($"::error::Unable to write collection outcome: {CiFailureJson.
Display
(error.Message)}");
278
Console.Error.WriteLine($"::error::{
Display
(DiagnosticTextSanitizer.Sanitize(message, limit: 1000))}");
288
Console.Error.WriteLine($"::error::Unable to finalize workflow failure: {
Display
(DiagnosticTextSanitizer.Sanitize(finalization.Message, limit: 500))}");
GitHubActionsIntegration.cs (3)
67
$"(collection status: {
Display
(DiagnosticTextSanitizer.Sanitize(collectionStatus ?? "", limit: 100))}; " +
68
$"collection result: {
Display
(DiagnosticTextSanitizer.Sanitize(collectionResult ?? "", limit: 100))}; " +
69
$"publication result: {
Display
(DiagnosticTextSanitizer.Sanitize(publicationResult ?? "", limit: 100))}). Check the collection and publication logs.");
Infrastructure\AnalysisGitHubClient.cs (1)
41
$"page {pageNumber}, row {rowNumber} for {CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(endpoint, limit: 200))}");
Infrastructure\AnalyzerCommandExecutor.cs (1)
34
throw new ValidationException($"{executable} failed ({result.ExitCode}): {CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(result.Error, limit: 4096))}");
Models\CollectionModels.cs (1)
72
Message = CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(message, limit: 500)),
PriorCauseCatalogue.cs (1)
61
ReadError = "Cannot summarize prior cause record: " + CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(ex.Message, limit: 500)),
TestFailureReader.cs (7)
60
$"'{CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(artifact.JobName, limit: 500))}', but found {producingJobs.Length}. " +
61
$"artifact='{CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(artifact.Artifact.Name ?? "", limit: 100))}'");
160
$"Cannot parse test result '{CiFailureJson.
Display
(relativeDirectory + "/" + Path.GetFileName(file))}' from artifact {artifactId}: " +
161
CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(ex.GetBaseException().Message, limit: 160)),
187
$"job={input.JobId} artifact={source.ArtifactId} file={CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(source.ResultFile, limit: 80))}");
198
$"job={input.JobId} execution='{CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(execution, limit: 80))}' " +
200
$"test='{CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(input.Name, limit: 80))}'");
TestResultArtifacts.cs (4)
142
$"id={
Display
(DiagnosticTextSanitizer.Sanitize(GetValueText(invalid.Artifact.Id), limit: 40))} " +
143
$"size={
Display
(DiagnosticTextSanitizer.Sanitize(GetValueText(invalid.Artifact.SizeInBytes), limit: 40))} limit={maxArtifactBytes}");
178
=> $"job='{
Display
(DiagnosticTextSanitizer.Sanitize(job.JobName, limit: 80))}' " +
179
$"artifact='{
Display
(DiagnosticTextSanitizer.Sanitize(job.ArtifactName, limit: 100))}'";
TransientJson.cs (1)
59
CiFailureJson.
Display
(DiagnosticTextSanitizer.Sanitize(ex.Message, limit: 1000)));
ValidationRules.cs (5)
79
throw new ValidationException($"Cause {
Display
(cause.FileName)} is not referenced by the analysis summary");
83
throw new ValidationException($"Cause {
Display
(cause.FileName)} type {EnumText(cause.Type)} is not permitted for run scope {EnumText(run.Scope)}");
111
throw new ValidationException($"Cause {
Display
(cause.FileName)} contains unsupported or publisher-owned fields");
119
throw new ValidationException($"Cause {
Display
(cause.FileName)} cannot change type from {EnumText(prior.Type)} to {EnumText(cause.Type)}");
275
private static string IncompatibleJob(string name) => $"Cause {
Display
(name)} references an unknown or incompatible failed job";
WorkflowFailureDiagnosisContextBuilder.cs (1)
49
summary.Append("### ").Append(CiFailureJson.
Display
(name)).Append('\n');
WorkflowRunEvidenceCollector.cs (12)
130
throw new ValidationException($"Run {runId} belongs to workflow '{
Display
(Text(run["path"]) ?? "")}', not '{
Display
(_workflow.WorkflowPath)}'");
210
Console.WriteLine($"::warning::Unable to parse retry patterns: {
Display
(DiagnosticTextSanitizer.Sanitize(error.Message, limit: 500))}");
279
$"execution='{
Display
(DiagnosticTextSanitizer.Sanitize(conflict.Key.ExecutionId ?? "", limit: 80))}' " +
398
Console.WriteLine($"::warning::Unable to associate the triggering merge: {
Display
(ex.Message)}");
412
Console.WriteLine($"::warning::Unable to find the last successful main run. Continuing without a candidate merge range: {
Display
(ex.Message)}");
441
Console.WriteLine($"::warning::{
Display
(problem)}");
482
Console.WriteLine($"::warning::Unable to load job annotations: {
Display
(ex.Message)}");
587
Console.WriteLine($"::warning::Unable to load PR files: {
Display
(ex.Message)}");
619
Console.WriteLine($"::warning::Unable to load PR metadata: {
Display
(ex.Message)}");
645
$"job='{
Display
(DiagnosticTextSanitizer.Sanitize(Text(job["name"]) ?? "", limit: 80))}'; " +
801
var safeMessage =
Display
(DiagnosticTextSanitizer.Sanitize(context, limit: 1000));
Workflows\AspireCiWorkflowConventions.cs (1)
54
Display
(DiagnosticTextSanitizer.Sanitize(name, limit: 500)));
AnalyzeCiFailure.Tests (2)
AnalyzeCiFailurePreparationTests.cs (1)
252
diagnostic = "::error::" + AnalyzeCiFailure.CiFailureJson.
Display
(ex.Message);
AnalyzeCiFailureWorkflowTests.cs (1)
5109
return new(ExitCode: 1, "::error::" + AnalyzeCiFailure.CiFailureJson.
Display
(ex.Message) + "\n");