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 (9)
21Path.Combine(RepoRoot.Path, "artifacts", "tests", nameof(Hex1bNativePublishingTests), Guid.NewGuid().ToString("N"))));
42var project = Path.Combine(RepoRoot.Path, "src", projectName, $"{projectName}.csproj");
59using var reader = File.OpenText(Path.Combine(RepoRoot.Path, ".github", "workflows", "build-cli-native-archives.yml"));
70["msbuild", Path.Combine(RepoRoot.Path, "eng", "Bundle.proj"), "-nologo", "-getProperty:Configuration"]);
76var project = Path.Combine(RepoRoot.Path, "src", projectName, $"{projectName}.csproj");
97["msbuild", Path.Combine(RepoRoot.Path, "eng", "Bundle.proj"), "-nologo", "-t:_ShowBanner",
112["msbuild", Path.Combine(RepoRoot.Path, "src", "Aspire.TerminalHost", "Aspire.TerminalHost.csproj"),
121Path.GetFullPath(Path.Combine(RepoRoot.Path, "artifacts", "bin", "Aspire.TerminalHost", "Debug", framework!)),
406new 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)
49Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
111Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
140Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
193: File.ReadAllTextAsync(Path.Combine(RepoRoot.Path, relativePath));
Pipelines\TrayBundleTests.cs (10)
167var pipeline = File.ReadAllText(Path.Combine(RepoRoot.Path, "eng/pipelines/templates/build_sign_native.yml"));
195.WithWorkingDirectory(RepoRoot.Path)
199"-RepositoryRoot", $"\"{RepoRoot.Path}\"",
245Path.Combine(RepoRoot.Path, "eng/github-ci/test-trigger-map.yml"),
359var pipeline = File.ReadAllText(Path.Combine(RepoRoot.Path, "eng/pipelines/templates/build_sign_native.yml"));
369var workflow = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github/workflows/build-cli-native-archives.yml"));
407var publish = File.ReadAllText(Path.Combine(RepoRoot.Path, "src/Aspire.Tray/Windows/publish.ps1"));
430File.Copy(Path.Combine(RepoRoot.Path, "src/Shared/Aspire.ico"), Path.Combine(source, "Aspire.ico"), overwrite: true);
455using var command = new PowerShellCommand(Path.Combine(RepoRoot.Path, "tools/CreateLayout/verify-windows-tray-payload.ps1"), output)
467private static XDocument LoadProject(string path) => XDocument.Load(Path.Combine(RepoRoot.Path, path));
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);
945var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
966var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
982var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
993var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1015var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1040var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1052var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1071var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1092var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1115var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1119var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter);
1144var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1167var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1182var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1207var srcDir = Path.Combine(RepoRoot.Path, "src");
1208var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts");
1234var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts");
1263var componentsRoot = Path.Combine(RepoRoot.Path, "src", "Components");
1278var testsDir = Path.Combine(RepoRoot.Path, "tests");
1288var testsDir = Path.Combine(RepoRoot.Path, "tests");
1298var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
TestTriggerMap\TestTriggerMapTests.cs (8)
80var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
429WorkingDirectory = RepoRoot.Path,
846using (var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"))))
928Path.Combine(RepoRoot.Path, "tests"), "*.csproj", SearchOption.AllDirectories)
939var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1002var solutionPath = Path.Combine(RepoRoot.Path, "Aspire.slnx");
1018RepoRoot.Path,
1044var relativePath = Path.GetRelativePath(RepoRoot.Path, projectPath).Replace('\\', '/');
WorkflowScripts\AnalyzeCiFailureWorkflowTests.cs (67)
1221Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
1271Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
1329Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
1658Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
1743Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
1821Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
1857Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
1879Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
1909Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
1929Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
1950Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
1988Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2008Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2032Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2073Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2129Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2168Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2209Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2280Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2321Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2357Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2393Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2446Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2494Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2535Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2577Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2621Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2648Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2678Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2720Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2752Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2782Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2820Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2858Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2895Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2923Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2945Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
2975Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3816Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3843Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3877Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3910Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3937Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
3957Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4009Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4027Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4048Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
4135Path.Combine(RepoRoot.Path, CommentScriptRelativePath),
4189Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4282Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4348Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4405Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4445Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4454Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4496Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
4548Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
4595Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4598Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4601Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4604Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4607Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
4644Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
4660Path.Combine(RepoRoot.Path, IssueScriptRelativePath),
4703var scriptPath = Path.Combine(RepoRoot.Path, ValidationScriptRelativePath);
4744Path.Combine(RepoRoot.Path, HistoryScriptRelativePath),
4767Path.Combine(RepoRoot.Path, CandidatesScriptRelativePath),
4842Path.Combine(RepoRoot.Path, PersistenceScriptRelativePath),
WorkflowScripts\AutoSecWorkflowTests.cs (10)
3255AssertPublicationGuards(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3624=> AssertSafeUploadPaths(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3629var steps = PublicationSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3643var steps = AgentSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3687=> new(PublicationSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")))
4223["nugetConfigText"] = File.ReadAllText(Path.Combine(RepoRoot.Path, "NuGet.config")),
4332["nugetConfigText"] = File.ReadAllText(Path.Combine(RepoRoot.Path, "NuGet.config")),
4797command.WithWorkingDirectory(RepoRoot.Path).WithTimeout(TimeSpan.FromSeconds(30));
4799Path.Combine(RepoRoot.Path, "tests", "Infrastructure.Tests", "WorkflowScripts", "auto-sec.harness.js"),
4810=> File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", fileName));
WorkflowScripts\FilterNonBlockingTestArtifactsTests.cs (5)
12RepoRoot.Path,
31var result = await ProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);
63var result = await ProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);
89var result = await ProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);
115var result = await ProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);