11 writes to Tests
AnalyzeCiFailure.Tests (11)
AnalyzeCiFailureCSharpRerunTests.cs (1)
79Tests = [new ProposedTestDecision { Ref = "test-1", Classification = TestClassification.TransientInfrastructure, Reason = "Runner prerequisite failed" }],
AnalyzeCiFailureFixtures.cs (2)
41Tests = [], 236Tests = decisions, Causes = causes,
AnalyzeCiFailureMigrationTests.cs (3)
47Tests = [new ProposedTestDecision { Ref = "test-1", Classification = TestClassification.Flaky, Reason = "Timeout" }], 160Tests = failures.Select(test => new ProposedTestDecision { Ref = test.Ref, Classification = TestClassification.Flaky, Reason = "Timeout" }).ToImmutableArray(), 521Tests = evidence.TestEvidence.Failures.Select(test => new ProposedTestDecision { Ref = test.Ref, Classification = TestClassification.Flaky, Reason = "Current timeout" }).ToImmutableArray(),
AnalyzeCiFailureOverflowTests.cs (1)
270Tests = evidence.TestEvidence.Failures.Select(test => new ProposedTestDecision
AnalyzeCiFailureTransientContractTests.cs (4)
110Tests = [new ProposedTestDecision { Ref = "test-1", Classification = TestClassification.CodeIssue, Reason = "Deterministic" }], 142"unknown-test" => proposal with { Tests = [new ProposedTestDecision { Ref = "unknown", Classification = TestClassification.Flaky, Reason = "Decision" }] }, 165Tests = failures.Take(3).Select(test => new ProposedTestDecision 259Assert.Equal(proposal, TransientJson.Read<AnalysisProposal>(TransientJson.Write(proposal)) with { Jobs = proposal.Jobs, Tests = proposal.Tests, Causes = proposal.Causes });
9 references to Tests
AnalyzeCiFailure (8)
AnalysisValidator.cs (8)
33if (proposal.Jobs.IsDefault || proposal.Tests.IsDefault || proposal.Causes.IsDefault) 37if (proposal.Jobs.Any(job => job is null) || proposal.Tests.Any(test => test is null) || proposal.Causes.Any(cause => cause is null)) 47if (proposal.Tests.Length != evidence.TestEvidence.Failures.Length || 48proposal.Tests.Select(test => test.Ref).Distinct(StringComparer.Ordinal).Count() != proposal.Tests.Length || 49proposal.Tests.Any(test => !evidence.TestEvidence.Failures.Any(collected => collected.Ref == test.Ref))) 52$" (expected={evidence.TestEvidence.Failures.Length}, proposed={proposal.Tests.Length}); " + 67var boundTests = proposal.Tests.Select(decision =>
AnalyzeCiFailure.Tests (1)
AnalyzeCiFailureTransientContractTests.cs (1)
259Assert.Equal(proposal, TransientJson.Read<AnalysisProposal>(TransientJson.Write(proposal)) with { Jobs = proposal.Jobs, Tests = proposal.Tests, Causes = proposal.Causes });