6 instantiations of CollectedAttachment
AnalyzeCiFailure (4)
EvidencePreparation.cs (1)
182var attachment = new CollectedAttachment((await File.ReadAllBytesAsync(path, ct)).ToImmutableArray());
Models\CollectionModels.cs (1)
50internal static CollectedAttachment FromText(string text) => new(Encoding.UTF8.GetBytes(text).ToImmutableArray());
WorkflowRunEvidenceCollector.cs (2)
202var attachment = new CollectedAttachment((await File.ReadAllBytesAsync(retryPatternsPath, ct)).ToImmutableArray()); 332new((await File.ReadAllBytesAsync(causePath)).ToImmutableArray());
AnalyzeCiFailure.Tests (2)
AnalyzeCiFailureFixtures.cs (1)
124path => new CollectedAttachment(File.ReadAllBytes(path).ToImmutableArray()))
AnalyzeCiFailurePreparationTests.cs (1)
260file => new AnalyzeCiFailure.CollectedAttachment(File.ReadAllBytes(file).ToImmutableArray()));
16 references to CollectedAttachment
AnalyzeCiFailure (11)
EvidencePreparation.cs (2)
174var attachments = ImmutableDictionary.CreateBuilder<string, CollectedAttachment>(StringComparer.Ordinal); 182var attachment = new CollectedAttachment((await File.ReadAllBytesAsync(path, ct)).ToImmutableArray());
InvocationCapture.cs (1)
12internal Dictionary<string, CollectedAttachment> Attachments { get; } = new(StringComparer.Ordinal);
Models\CollectionModels.cs (3)
21ImmutableDictionary<string, CollectedAttachment> Attachments, 33ImmutableDictionary<string, CollectedAttachment> Attachments, 50internal static CollectedAttachment FromText(string text) => new(Encoding.UTF8.GetBytes(text).ToImmutableArray());
PriorCauseCatalogue.cs (1)
15ImmutableDictionary<string, CollectedAttachment> attachments,
WorkflowRunEvidenceCollector.cs (4)
33private readonly Dictionary<string, CollectedAttachment> _attachments; 202var attachment = new CollectedAttachment((await File.ReadAllBytesAsync(retryPatternsPath, ct)).ToImmutableArray()); 304_attachments[name] = CollectedAttachment.FromText(log.Text.ToString()); 465_attachments[$"diagnostics/job-{jobId}.log"] = CollectedAttachment.FromText(focused);
AnalyzeCiFailure.Tests (5)
AnalyzeCiFailureFixtures.cs (1)
125: ImmutableDictionary<string, CollectedAttachment>.Empty;
AnalyzeCiFailureMigrationTests.cs (3)
229var attachments = new Dictionary<string, CollectedAttachment> 231["diagnostics/job-123.log"] = CollectedAttachment.FromText("Captured runner failure"), 283var summary = WorkflowFailureDiagnosisContextBuilder.Build(new CollectedRun(evidence, ImmutableDictionary<string, CollectedAttachment>.Empty, [])).Summary;
AnalyzeCiFailureStorageTests.cs (1)
145capture.Attachments.Add($"diagnostics/job-{i}.log", CollectedAttachment.FromText(new string('x', AnalysisDiagnostics.MaximumFileBytes)));