BuildWarningPolicyTests.cs (5)
29using var command = CreateCommand(script, RepoRoot.Path)
93File.Copy(Path.Combine(RepoRoot.Path, "eng", file), Path.Combine(root, "eng", file));
98File.Copy(Path.Combine(RepoRoot.Path, file), Path.Combine(root, file));
321var dotnet = Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet");
328.WithEnvironmentVariable("TEST_REPO", RepoRoot.Path)
Hex1bNativePublishingTests.cs (7)
20Path.Combine(RepoRoot.Path, "artifacts", "tests", nameof(Hex1bNativePublishingTests), Guid.NewGuid().ToString("N"))));
198var repositoryTargets = XDocument.Load(Path.Combine(RepoRoot.Path, "Directory.Build.targets"));
201var hostingTargets = XDocument.Load(Path.Combine(RepoRoot.Path, "src", "Aspire.Hosting", "buildTransitive", "Aspire.Hosting.targets"));
203var hostingProject = XDocument.Load(Path.Combine(RepoRoot.Path, "src", "Aspire.Hosting", "Aspire.Hosting.csproj"));
213var signingProps = XDocument.Load(Path.Combine(RepoRoot.Path, "eng", "Signing.props"));
236RepoRoot.Path, "eng", "pipelines", "templates", "build_sign_native.yml"));
301new XElement("Import", new XAttribute("Project", Path.Combine(RepoRoot.Path, "src", "Aspire.Hosting", "buildTransitive", "Aspire.Hosting.targets"))),
MicrosoftTestingPlatformTests.cs (6)
29.WithWorkingDirectory(RepoRoot.Path)
30.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"))
31.WithEnvironmentVariable("TEST_REPO", RepoRoot.Path)
57.WithWorkingDirectory(RepoRoot.Path)
58.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"))
63var target = XDocument.Load(Path.Combine(RepoRoot.Path, "eng", "Xunit3", "Microsoft.Testing.Platform.targets"));
Pipelines\NixCliPackageTests.cs (4)
94Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
156Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
185Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
254: File.ReadAllTextAsync(Path.Combine(RepoRoot.Path, relativePath));
TestTriggerMap\SelectTestsAcceptanceTests.cs (23)
834var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
836var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter);
942var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
963var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
979var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
990var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1012var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1037var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1049var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1068var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1089var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1112var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1116var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter);
1141var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1164var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1179var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1204var srcDir = Path.Combine(RepoRoot.Path, "src");
1205var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts");
1231var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts");
1260var componentsRoot = Path.Combine(RepoRoot.Path, "src", "Components");
1275var testsDir = Path.Combine(RepoRoot.Path, "tests");
1285var testsDir = Path.Combine(RepoRoot.Path, "tests");
1295var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
TestTriggerMap\SelectTestsWorkflowTests.cs (6)
250=> Path.Combine(RepoRoot.Path, ".github", "actions", "select-tests", "action.yml");
253=> Path.Combine(RepoRoot.Path, ".github", "actions", "check-changed-files", "action.yml");
256=> Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml");
259=> Path.Combine(RepoRoot.Path, "eng", "Versions.props");
262=> Path.Combine(RepoRoot.Path, ".github", "workflows", "build-cli-native-archives.yml");
265=> Path.Combine(RepoRoot.Path, ".github", "workflows", "native-dashboard-validation.yml");
TestTriggerMap\TestTriggerMapTests.cs (28)
23private static readonly TestTriggerMap s_map = TestTriggerMap.Load(RepoRoot.Path);
242var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
264var testsRoot = Path.Combine(RepoRoot.Path, "tests");
270.Where(rel => File.Exists(Path.Combine(RepoRoot.Path, rel)))
349var output = GitCli.Run(RepoRoot.Path, "ls-files");
391var workflowsDir = Path.Combine(RepoRoot.Path, ".github", "workflows");
437var documentation = File.ReadAllText(Path.Combine(RepoRoot.Path, "docs", "ci", "test-trigger-map.md"));
444var map = File.ReadAllText(Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"));
704WorkingDirectory = RepoRoot.Path,
1075using (var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"))))
1122var testsYml = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"));
1194var testsYml = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"));
1231using (var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"))))
1280using (var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"))))
1336Path.Combine(RepoRoot.Path, ".github", "workflows", "extension-e2e-tests.yml"))))
1360var testsYml = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"));
1377var testsYml = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"));
1401.Where(name => !File.Exists(Path.Combine(RepoRoot.Path, "tests", name, $"{name}.csproj")))
1415Assert.True(File.Exists(Path.Combine(RepoRoot.Path, s_map.Prefilter.PatternsFile!)),
1479var prefilterPatterns = File.ReadAllLines(Path.Combine(RepoRoot.Path, "eng", "github-ci", "ci-skip-entirely-patterns.txt"))
1493var workflowsDir = Path.Combine(RepoRoot.Path, ".github", "workflows");
1584Path.Combine(RepoRoot.Path, "tests"), "*.csproj", SearchOption.AllDirectories)
1595var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1658var solutionPath = Path.Combine(RepoRoot.Path, "Aspire.slnx");
1674var solutionPath = Path.Combine(RepoRoot.Path, "Aspire.slnx");
1682RepoRoot.Path,
1708var relativePath = Path.GetRelativePath(RepoRoot.Path, projectPath).Replace('\\', '/');
1726Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"))))
WorkflowScripts\AnalyzeCiFailureWorkflowTests.cs (80)
24Path.Combine(RepoRoot.Path, ValidationScriptRelativePath));
26Path.Combine(RepoRoot.Path, CandidatesScriptRelativePath));
28Path.Combine(RepoRoot.Path, IssueScriptRelativePath));
30Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath));
272Path.Combine(RepoRoot.Path, HistoryScriptRelativePath),
275Path.Combine(RepoRoot.Path, CandidatesScriptRelativePath),
362Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
1885Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
1935Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
1993Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
2342Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
2427Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
2505Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
2803Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3042Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3064Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3094Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3114Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3135Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3173Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3193Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3217Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3258Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3314Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3353Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3394Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3465Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3506Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3542Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3578Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3631Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3679Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3720Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3762Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3806Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3833Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3863Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3905Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3937Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3967Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4005Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4043Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4080Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4108Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4130Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4160Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
5932Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
5959Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
5993Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6026Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6053Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6073Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6125Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6143Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6164Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
6251Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
6305Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6398Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6464Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6521Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6561Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6570Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6612Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
6686Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
6733Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6736Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6739Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6742Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6745Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
6782Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
6798Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
6912=> File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", fileName));
6916var scriptPath = Path.Combine(RepoRoot.Path, ValidationScriptRelativePath);
6957Path.Combine(RepoRoot.Path, HistoryScriptRelativePath),
6980Path.Combine(RepoRoot.Path, CandidatesScriptRelativePath),
7065Path.Combine(RepoRoot.Path, "tests", "Infrastructure.Tests", "WorkflowScripts", "analyze-ci-failure-rerun.harness.js"),
7087Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
7090Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
7093Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
7227Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
WorkflowScripts\CiWorkflowTests.cs (4)
40var workflow = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "run-tests.yml"));
50var properties = File.ReadAllText(Path.Combine(RepoRoot.Path, "eng", "testing", "CITestsProperties.props"));
54RepoRoot.Path,
77=> File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", fileName));
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (11)
14private static readonly string s_releaseWorkflowPath = Path.Combine(RepoRoot.Path, ".github", "workflows", "extension-release.yml");
15private static readonly string s_changelogWorkflowPath = Path.Combine(RepoRoot.Path, ".github", "workflows", "extension-changelog.md");
16private static readonly string s_changelogWorkflowLockPath = Path.Combine(RepoRoot.Path, ".github", "workflows", "extension-changelog.lock.yml");
18RepoRoot.Path,
24RepoRoot.Path,
30RepoRoot.Path,
598WorkingDirectory = RepoRoot.Path,
648WorkingDirectory = RepoRoot.Path,
731process.StartInfo.WorkingDirectory = RepoRoot.Path;
760WorkingDirectory = RepoRoot.Path,
834WorkingDirectory = RepoRoot.Path,
WorkflowScripts\PrDocsCheckWorkflowTests.cs (5)
119Path.Combine(RepoRoot.Path, ".github", "workflows", "pr-docs-check", "validate_outcome.py"));
246command.WithWorkingDirectory(RepoRoot.Path).WithTimeout(TimeSpan.FromSeconds(30));
248Path.Combine(RepoRoot.Path, "tests", "Infrastructure.Tests", "WorkflowScripts", "pr-docs-check-notification.harness.js"),
309WorkingDirectory = RepoRoot.Path,
351=> File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", fileName));