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