5 writes to Attempt
AnalyzeCiFailure (1)
CollectionProjection.cs (1)
87
Repository = repository, Id = progress.RunId!.Value,
Attempt
= progress.RunAttempt!.Value,
AnalyzeCiFailure.Tests (4)
AnalyzeCiFailureFixtures.cs (1)
21
Repository = "microsoft/aspire", Id = 123,
Attempt
= 1, Scope = scope,
AnalyzeCiFailureMigrationTests.cs (2)
429
evidence = evidence with { Run = evidence.Run with {
Attempt
= 2 } };
589
Run = captured.Run with { Id = 12345,
Attempt
= 1, Url = "https://github.com/microsoft/aspire/actions/runs/12345" },
AnalyzeCiFailureTransientContractTests.cs (1)
235
Repository = "microsoft/aspire", Id = 9007199254740993,
Attempt
= 1, HeadSha = "failed-sha",
16 references to Attempt
AnalyzeCiFailure (12)
AnalysisCommands.cs (1)
149
progress.RunAttempt = analysis.Bundle.Run.
Attempt
;
AnalysisRerunner.cs (5)
69
Console.WriteLine($"::notice::Dry-run mode: would have rerun failed jobs for {bundle.Run.Url} attempt={bundle.Run.
Attempt
}.");
102
throw new ValidationException($"Unable to read current run {bundle.Run.Url} attempt={bundle.Run.
Attempt
}: " +
110
if (currentAttempt != bundle.Run.
Attempt
)
126
throw new ValidationException($"Unable to request rerun for {bundle.Run.Url} attempt={bundle.Run.
Attempt
}: " +
129
Console.WriteLine($"::notice::Requested rerun of failed jobs for {bundle.Run.Url} attempt={bundle.Run.
Attempt
}.");
AnalysisValidator.cs (3)
23
proposal.Run.Id != evidence.Run.Id || proposal.Run.Attempt != evidence.Run.
Attempt
)
169
RunAttempt = JsonSerializer.SerializeToElement(evidence.Run.
Attempt
),
262
evidence.Run.Id <= 0 || evidence.Run.
Attempt
<= 0 || !Enum.IsDefined(evidence.Run.Scope) ||
EvidencePreparation.cs (3)
127
["run_attempt"] = input.Evidence.Run.
Attempt
,
170
progress.RunId = bundle.Run.Id; progress.RunAttempt = bundle.Run.
Attempt
; progress.HasRelevantFailures = true;
299
var attempt = bundle.Run.
Attempt
.ToString(CultureInfo.InvariantCulture);
AnalyzeCiFailure.Tests (4)
AnalyzeCiFailureCohesionTests.cs (1)
58
Assert.Equal(bundle.Run.
Attempt
, outcome.RunAttempt);
AnalyzeCiFailureFixtures.cs (1)
39
SchemaVersion = 1, Run = new ProposedWorkflowRun { Repository = evidence.Run.Repository, Id = evidence.Run.Id, Attempt = evidence.Run.
Attempt
},
AnalyzeCiFailureMigrationTests.cs (2)
519
Run = new ProposedWorkflowRun { Repository = evidence.Run.Repository, Id = evidence.Run.Id, Attempt = evidence.Run.
Attempt
},
692
Assert.Equal(2, bundle.Run.
Attempt
);