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