677 references to Path
Infrastructure.Tests (677)
BuildWarningPolicyTests.cs (1)
21var script = Path.Combine(workspace.Path, "evaluate.ps1");
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (2)
691var fixtureDirectory = Path.Combine(_workspace.Path, Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture)); 832var fixtureDirectory = Path.Combine(_workspace.Path, Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture));
CreateLayout\CreateLayoutTests.cs (38)
18var source = Path.Combine(workspace.Path, "bin", "Aspire.Hosting.Native.Server", "Debug", "net11.0", rid, "publish"); 26var output = Path.Combine(workspace.Path, "layout"); 27using var builder = new LayoutBuilder(output, workspace.Path, rid, "Debug", "1.0.0", verbose: false, 48var source = Path.Combine(workspace.Path, "bin", "Aspire.Hosting.Native.Server", "Debug", "net11.0", "linux-x64", directory); 55var output = Path.Combine(workspace.Path, "layout"); 56using var builder = new LayoutBuilder(output, workspace.Path, "linux-x64", "Debug", "1.0.0", false, null, null); 75var publish = Path.Combine(workspace.Path, "bin", "Aspire.TerminalHost", "Debug", "net11.0", rid, "publish"); 84using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, rid, "Debug", "1.0", false, null, null); 86var target = Path.Combine(workspace.Path, "layout", "terminalhost"); 101Assert.False(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path)); 104var path = Path.Combine(workspace.Path, file); 109Assert.True(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path)); 110Assert.True(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path, rid)); 112File.WriteAllText(Path.Combine(workspace.Path, files[^1]), string.Empty); 114Assert.False(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path)); 115Assert.False(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path, rid)); 125using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "win-x64", configuration, "1.0.0", verbose: false, trayAppPath: null, windowsTrayPath: null); 126var expectedPaths = GetPublishPaths(workspace.Path, configuration); 128foreach (var path in expectedPaths.Concat(GetPublishPaths(workspace.Path, otherConfiguration))) 146using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "win-x64", "Debug", "1.0.0", verbose: false, trayAppPath: null, windowsTrayPath: null); 147var nonRidPath = GetPublishPaths(workspace.Path, "Debug")[^1]; 158var outputPath = Path.Combine(workspace.Path, "layout"); 163"--artifacts", workspace.Path, 182var publishPath = CreateDashboardPublishOutput(workspace.Path, rid, sqliteLibraryName); 209var outputPath = Path.Combine(workspace.Path, "layout"); 210using var builder = new LayoutBuilder(outputPath, workspace.Path, rid, "Debug", "1.0.0", verbose: false, trayAppPath: null, windowsTrayPath: null); 228var publishPath = CreateDashboardPublishOutput(workspace.Path, "win-x64", "e_sqlite3.dll"); 231var outputPath = Path.Combine(workspace.Path, "layout"); 232using var builder = new LayoutBuilder(outputPath, workspace.Path, "win-x64", "Debug", "1.0.0", verbose: false, trayAppPath: null, windowsTrayPath: null); 246var publishPath = CreateDashboardPublishOutput(workspace.Path, "win-x64", "e_sqlite3.dll"); 257var outputPath = Path.Combine(workspace.Path, "layout"); 258using var builder = new LayoutBuilder(outputPath, workspace.Path, "win-x64", "Debug", "1.0.0", verbose: false, trayAppPath: null, windowsTrayPath: null); 276var publishPath = CreateDashboardPublishOutput(workspace.Path, rid, sqliteLibraryName); 287var outputPath = Path.Combine(workspace.Path, "layout"); 288using var builder = new LayoutBuilder(outputPath, workspace.Path, rid, "Debug", "1.0.0", verbose: false, trayAppPath: null, windowsTrayPath: null);
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (5)
45var fixtureDirectory = Path.Combine(_workspace.Path, "fixtures-success"); 61var logPath = Path.Combine(_workspace.Path, "failed_job_0_Tests___Linux___Sample__Sample____Sample__linux-latest_.log"); 65var extractedTrx = Path.Combine(_workspace.Path, "artifact_0_Sample_linux-latest", "testresults", "Sample_net10.0.trx"); 72var fixtureDirectory = Path.Combine(_workspace.Path, "fixtures-missing-artifact"); 94WorkingDirectory = _workspace.Path
ExtractTestPartitions\ExtractTestPartitionsTests.cs (22)
31var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 37var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 56var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 62var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 77var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 83var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 101var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 104var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 119var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 126var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 144var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 151var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 167var nonExistentPath = Path.Combine(_workspace.Path, "DoesNotExist.dll"); 168var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 193var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 199var outputFile = Path.Combine(_workspace.Path, "nested", "dir", "partitions.txt"); 213var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 218var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 235var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 242var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 260var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 267var outputFile = Path.Combine(_workspace.Path, "partitions.txt");
GenerateTestSummary\GenerateTestSummaryToolTests.cs (15)
31var trxPath = Path.Combine(_workspace.Path, "sample.trx"); 53var trxPath = Path.Combine(_workspace.Path, "mixed.trx"); 60var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 81var trxPath = Path.Combine(_workspace.Path, "aborted.trx"); 87var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 104var trxPath = Path.Combine(_workspace.Path, "allpass.trx"); 110var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 133var trxDir = Path.Combine(_workspace.Path, "corrupt"); 137var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 160var trxDir = Path.Combine(_workspace.Path, "partial"); 167var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 187var trxDir = Path.Combine(_workspace.Path, "partial-with-failure"); 194var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 216var trxPath = Path.Combine(_workspace.Path, "timestamped.trx"); 225var jsonPath = Path.Combine(_workspace.Path, "failed.json");
Hex1bNativePublishingTests.cs (14)
99$"-p:ArtifactsLogDir={Path.Combine(_workspace.Path, "logs")}"]); 149var destination = Path.Combine(_workspace.Path, "publish", relativePath); 187var artifacts = Path.Combine(_workspace.Path, "artifacts"); 246var packages = Path.Combine(_workspace.Path, "packages"); 248var layout = Path.Combine(_workspace.Path, "layout"); 259var tray = Path.Combine(_workspace.Path, "windows-tray"); 265arguments.AddRange(["--tray-app", MacTrayTestPayload.Create(_workspace.Path)]); 331var layout = Path.Combine(_workspace.Path, "layout"); 343"--output", layout, "--artifacts", Path.Combine(_workspace.Path, "missing-artifacts"), "--rid", rid, "--configuration", "Release"]); 363var source = Path.Combine(_workspace.Path, "package", pathInPackage); 373var unrelatedSource = Path.Combine(_workspace.Path, "other", "OpenConsole.exe"); 388new XAttribute("Include", Path.Combine(_workspace.Path, "duplicate", "OpenConsole.exe")), 422var projectPath = Path.Combine(_workspace.Path, "Publish.proj"); 448WorkingDirectory = _workspace.Path,
MicrosoftTestingPlatformTests.cs (2)
21var script = Path.Combine(workspace.Path, "evaluate.ps1"); 51var script = Path.Combine(workspace.Path, "runner-help.ps1");
Pipelines\NixCliPackageTests.cs (5)
28var outputPath = Path.Combine(_workspace.Path, "versions.json"); 29var fakeBinPath = Path.Combine(_workspace.Path, "bin"); 73var outputPath = Path.Combine(_workspace.Path, "versions.json"); 74var fakeBinPath = Path.Combine(_workspace.Path, "bin"); 135var outputPath = Path.Combine(_workspace.Path, "versions.json");
Pipelines\NpmCliPackageTests.cs (4)
61var testScriptPath = Path.Combine(_workspace.Path, $"{Path.GetRandomFileName()}.js"); 101var testScriptPath = Path.Combine(_workspace.Path, $"{Path.GetRandomFileName()}.js"); 242var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName()); 307var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName());
Pipelines\TrayBundleTests.cs (26)
24using var builder = new LayoutBuilder(workspace.Path, workspace.Path, rid, "Debug", "test", false, "missing.app", "missing-windows"); 28Assert.Empty(Directory.EnumerateFileSystemEntries(workspace.Path)); 37using var builder = new LayoutBuilder(workspace.Path, workspace.Path, rid, "Debug", "test", false, null, null); 52var source = MacTrayTestPayload.Create(workspace.Path); 54using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "osx-arm64", "Debug", "test", false, source, null); 67var source = MacTrayTestPayload.Create(workspace.Path); 69using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "osx-arm64", "Debug", "test", false, source, null); 82var source = MacTrayTestPayload.Create(workspace.Path); 83var layout = Path.Combine(workspace.Path, "osx-arm64"); 85using var builder = new LayoutBuilder(layout, workspace.Path, "osx-arm64", "Debug", "test", false, source, null); 184var source = MacTrayTestPayload.Create(workspace.Path); 185var archivePath = Path.Combine(workspace.Path, "signing", "AspireTray.zip"); 186var scriptPath = Path.Combine(workspace.Path, "prepare-signing.ps1"); 279var source = Path.Combine(workspace.Path, "publish with spaces"); 282var layout = Path.Combine(workspace.Path, rid); 283using var builder = new LayoutBuilder(layout, workspace.Path, rid, "Debug", "test", false, null, source); 316var source = Path.Combine(workspace.Path, "publish"); 330using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, 428var source = Path.Combine(workspace.Path, "source"); 431var layout = Path.Combine(workspace.Path, rid); 432using var builder = new LayoutBuilder(layout, workspace.Path, rid, "Debug", "test", false, null, source);
PowerShellScripts\AspireSkillsBundleHashTests.cs (2)
54var inputPath = Path.Combine(_workspace.Path, $"input-{lineEndings}.bin"); 150var path = Path.Combine(_workspace.Path, fileName);
PowerShellScripts\BuildTestMatrixTests.cs (42)
33var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 42var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 62var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 71var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 85var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 98var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 117var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 130var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 158var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 171var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 194var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 203var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 221var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 230var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 248var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 263var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 282var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 294var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 312var emptyArtifactsDir = Path.Combine(_workspace.Path, "empty-artifacts"); 315var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 332var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 347var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 373var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 382var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 400var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 409var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 428var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 442var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 465var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 474var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 494var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 502var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 520var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 534var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 556var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 574var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 599var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 607var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 634var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 653var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 721var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 735var outputFile = Path.Combine(_workspace.Path, "matrix.json");
PowerShellScripts\DownloadNativeArchivesTests.cs (3)
208File.Exists(Path.Combine(_workspace.Path, "escaped", "aspire-cli-linux-x64-13.4.0.tar.gz")), 437var archives = Path.Combine(_workspace.Path, unique, "archives"); 438var nupkgs = Path.Combine(_workspace.Path, unique, "nupkgs");
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (38)
39var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 42var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 66var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 69var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 92var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 95var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 116var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 119var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 142var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 145var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 169var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 172var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 200var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 203var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 238var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 241var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 265var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 268var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 282var nonExistentFile = Path.Combine(_workspace.Path, "does-not-exist.json"); 283var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 301var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 304var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 327var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 330var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 353var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 356var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 386var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 389var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 413var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 416var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 452var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 455var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 486var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 489var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 509var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 548var canonicalFile = Path.Combine(_workspace.Path, "canonical.json"); 558var expandedFile = Path.Combine(_workspace.Path, "expanded.json"); 564var githubOutputFile = Path.Combine(_workspace.Path, "github_output.txt");
PowerShellScripts\SplitTestMatrixByDepsTests.cs (4)
25_githubOutputFile = Path.Combine(_workspace.Path, "github_output.txt"); 185var matrixFile = Path.Combine(_workspace.Path, "matrix.json"); 214var nonExistentFile = Path.Combine(_workspace.Path, "nonexistent.json"); 240var tempMatrixFile = Path.Combine(_workspace.Path, $"matrix_input_{Guid.NewGuid():N}.json");
PowerShellScripts\SplitTestProjectsTests.cs (10)
42var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 48var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 72var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 77var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 100var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 106var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 131var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 138var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 166var nonExistentPath = Path.Combine(_workspace.Path, "DoesNotExist.dll"); 167var outputFile = Path.Combine(_workspace.Path, "partitions.json");
PowerShellScripts\StageNativeCliToolPackagesTests.cs (2)
303var path = Path.Combine(_workspace.Path, Path.GetRandomFileName(), "download"); 310return Path.Combine(_workspace.Path, Path.GetRandomFileName(), "shipping");
PowerShellScripts\ValidateNpmPackageSignaturesTests.cs (3)
37var missing = Path.Combine(_workspace.Path, "does-not-exist"); 54var filePath = Path.Combine(_workspace.Path, "not-a-directory.txt"); 214var path = Path.Combine(_workspace.Path, unique, "Shipping");
PowerShellScripts\VerifyNonBlockingTestResultsTests.cs (1)
97var exitCodePath = Path.Combine(_workspace.Path, "missing-exit-code.txt");
PowerShellScripts\WriteClassModeTestPropsTests.cs (6)
28var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 50var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props"); 67var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 79var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props"); 94var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 106var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props");
ResourceGeneratorMetadataTests.cs (5)
57Directory.CreateDirectory(Path.Combine(workspace.Path, resourceDirectory)); 61await File.WriteAllTextAsync(Path.Combine(workspace.Path, path), string.Empty); 84var projectPath = Path.Combine(workspace.Path, "Resources.proj"); 86var script = Path.Combine(workspace.Path, "evaluate.ps1"); 92.WithWorkingDirectory(workspace.Path)
Shared\ProcessRunnerTests.cs (4)
17File.WriteAllText(Path.Combine(workspace.Path, "marker.txt"), "working directory"); 23workspace.Path); 44workspace.Path, 61workspace.Path);
TemplateManifest\TemplateManifestCommandTests.cs (7)
61arguments[0] = Path.Combine(workspace.Path, "missing"); 64arguments[1] = Path.Combine(workspace.Path, "missing"); 67arguments[3] = Path.Combine(workspace.Path, "missing.config"); 106var config = Path.Combine(workspace.Path, "nuget.config"); 110source, processed, Path.Combine(workspace.Path, "cgmanifest.json"), config, 111Path.Combine(workspace.Path, "package feed"), Path.Combine(workspace.Path, "restore directory")
TemplateManifest\TemplateManifestTestEnvironment.cs (7)
34RestoreDirectory = Path.Combine(workspace.Path, "restore"); 35ManifestPath = Path.Combine(workspace.Path, "cgmanifest.json"); 36ConfigPath = Path.Combine(workspace.Path, "nuget.config"); 93var script = Path.Combine(_workspace.Path, scriptName); 97.WithWorkingDirectory(_workspace.Path) 103.WithEnvironmentVariable("NUGET_HTTP_CACHE_PATH", Path.Combine(_workspace.Path, "http-cache")) 104.WithEnvironmentVariable("DOTNET_CLI_HOME", _workspace.Path)
TemplateManifest\TemplateRestorePlanTests.cs (2)
196var path = Path.Combine(workspace.Path, "normalized.proj"); 198var script = Path.Combine(workspace.Path, "evaluate.ps1");
tests\Shared\TemporaryWorkspace.cs (1)
218var aspireDir = IOPath.Combine(workspace.Path, ".aspire");
TestTriggerMap\GraphAffectedProjectsTests.cs (14)
318var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 320return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath).AffectedProjects; 325var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 327return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath); 333_workspace.Path, 334System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), 348var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar)); 440var newFull = System.IO.Path.Combine(_workspace.Path, newRelativePath.Replace('/', System.IO.Path.DirectorySeparatorChar)); 445return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: baseSha, to: "HEAD", changedFilesPath: null).AffectedProjects; 450var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar)); 475private string Git(params string[] args) => GitCli.Run(_workspace.Path, args);
TestTriggerMap\PrComparisonBaseTests.cs (40)
32checkout = Path.Combine(workspace.Path, "checkout"); 33GitCli.Run(workspace.Path, "clone", "--no-local", new Uri(repo).AbsoluteUri, checkout); 55var (oldBase, currentBase, head, merge) = CreateHistory(workspace.Path, mergeBaseIntoPr: true); 61expectedMerge = GitCli.Run(workspace.Path, "rev-parse", $"{head}^"); 62GitCli.Run(workspace.Path, "checkout", "--detach", expectedMerge); 66expectedMerge = GitCli.Run(workspace.Path, "commit-tree", $"{merge}^{{tree}}", 68GitCli.Run(workspace.Path, "checkout", "--detach", expectedMerge); 71var result = await Resolve(workspace.Path, oldBase, expectedHead, "pull_request", expectedMerge, expectedRef); 133var checkout = Path.Combine(workspace.Path, "checkout"); 134GitCli.Run(workspace.Path, "clone", "--depth=1", "--no-local", new Uri(repo).AbsoluteUri, checkout); 171var checkout = Path.Combine(workspace.Path, "checkout"); 172GitCli.Run(workspace.Path, "clone", "--depth=1", "--no-local", new Uri(repo).AbsoluteUri, checkout); 226var (oldBase, _, head, _) = CreateHistory(workspace.Path, mergeBaseIntoPr: false); 227GitCli.Run(workspace.Path, "checkout", "--detach", head); 229var result = await Resolve(workspace.Path, oldBase, head, "workflow_dispatch", head, "refs/heads/topic"); 233Assert.Equal(new[] { "pr-only.txt" }, ChangedFiles(workspace.Path, result.StandardOutput.Trim(), head)); 241var (_, currentBase, _, _) = CreateHistory(workspace.Path, mergeBaseIntoPr: false); 242GitCli.Run(workspace.Path, "checkout", "--orphan", "unrelated"); 243GitCli.Run(workspace.Path, "rm", "-rf", "."); 244var head = CommitFile(workspace.Path, "unrelated.txt"); 245GitCli.Run(workspace.Path, "checkout", "main"); 246GitCli.Run(workspace.Path, "merge", "--no-ff", "--allow-unrelated-histories", "unrelated", "-m", "Synthetic merge"); 247var merge = GitCli.Run(workspace.Path, "rev-parse", "HEAD"); 248GitCli.Run(workspace.Path, "remote", "add", "origin", workspace.Path); 250var result = await Resolve(workspace.Path, currentBase, head, "pull_request", merge, "refs/pull/42/merge"); 262var (_, _, head, merge) = CreateHistory(workspace.Path, mergeBaseIntoPr: false); 263GitCli.Run(workspace.Path, "remote", "add", "origin", workspace.Path); 265var result = await Resolve(workspace.Path, new string('1', 40), head, "workflow_dispatch", merge, "refs/heads/main"); 277var (_, _, _, originalMerge) = CreateHistory(workspace.Path, mergeBaseIntoPr: true); 278GitCli.Run(workspace.Path, "checkout", "topic"); 279GitCli.Run(workspace.Path, "mv", "root.txt", "renamed.txt"); 280GitCli.Run(workspace.Path, "commit", "-m", "Rename PR file"); 281var head = GitCli.Run(workspace.Path, "rev-parse", "HEAD"); 282GitCli.Run(workspace.Path, "checkout", "main"); 283GitCli.Run(workspace.Path, "merge", "--no-ff", "topic", "-m", "Synthetic merge"); 284var merge = GitCli.Run(workspace.Path, "rev-parse", "HEAD"); 286var result = await Resolve(workspace.Path, originalMerge, head, "pull_request", merge, "refs/pull/42/merge"); 290Assert.Equal(new[] { "renamed.txt", "root.txt" }, ChangedFiles(workspace.Path, result.StandardOutput.Trim(), head));
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
119return workspace.Path;
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (6)
288public string Path => _workspace.Path; 381var changed = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 402public string Git(params string[] args) => GitCli.Run(_workspace.Path, args); 412var outputPath = System.IO.Path.Combine(_workspace.Path, "output"); 414Environment.SetEnvironmentVariable("GITHUB_STEP_SUMMARY", System.IO.Path.Combine(_workspace.Path, "summary")); 445var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TypeScriptApiCompat\TypeScriptApiCompatTests.cs (18)
126var baselineRoot = Path.Combine(workspace.Path, "baseline"); 127var currentRoot = Path.Combine(workspace.Path, "current"); 197var suppressionPath = Path.Combine(workspace.Path, "Pkg.tscompat.suppression.txt"); 210var suppressions = ApiCompatSuppressionLoader.Load(workspace.Path); 227var currentSuppressionPath = Path.Combine(workspace.Path, "current", "Pkg.tscompat.suppression.txt"); 228var baselineSuppressionPath = Path.Combine(workspace.Path, "baseline", "Pkg.tscompat.suppression.txt"); 240var currentSuppressions = ApiCompatSuppressionLoader.Load(Path.Combine(workspace.Path, "current")); 241var baselineSuppressions = ApiCompatSuppressionLoader.Load(Path.Combine(workspace.Path, "baseline")); 253var baselineRoot = Path.Combine(workspace.Path, "baseline"); 254var currentRoot = Path.Combine(workspace.Path, "current"); 255var reportPath = Path.Combine(workspace.Path, "report.md"); 273workspace.Path, 289var baselineRoot = Path.Combine(workspace.Path, "baseline"); 290var currentRoot = Path.Combine(workspace.Path, "current"); 291var reportPath = Path.Combine(workspace.Path, "report.md"); 292var excludedPackagesPath = Path.Combine(workspace.Path, "excluded-packages.txt"); 293var suppressionPath = Path.Combine(workspace.Path, "Excluded.tscompat.suppression.txt"); 312workspace.Path,
WorkflowScripts\AnalyzeCiFailureWorkflowTests.cs (268)
35var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 71var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 85var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 106var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 123var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 140Path.Combine(_workspace.Path, "ci-failure-data", "prior-causes")).FullName; 145var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 162Path.Combine(_workspace.Path, "ci-failure-data", "prior-causes")).FullName; 167var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 188var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 220var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 247var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 279var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 295Path.Combine(_workspace.Path, "ci-failure-data", "test-failures.json"), 298var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 302await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "ci-analysis-output", "analysis-result.json"))); 328Path.Combine(_workspace.Path, "ci-failure-data", "test-failures.json"), 331var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 358Path.Combine(_workspace.Path, "ci-failure-data", "test-failures.json"), 366var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 370await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "ci-analysis-output", "analysis-result.json"))); 394var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 415var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 436var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 452Path.Combine(_workspace.Path, "ci-failure-data", "test-failures.json"), 455var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 475var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 495var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 515Path.Combine(_workspace.Path, "ci-failure-data", "test-failures.json"), 518var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 534Path.Combine(_workspace.Path, "ci-failure-data", "test-failures.json"), 537var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 557Path.Combine(_workspace.Path, "ci-failure-data", "test-failures.json"), 560var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 592var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 625var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 661var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 678File.Delete(Path.Combine(_workspace.Path, "ci-failure-data", "run.json")); 680var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 698Path.Combine(_workspace.Path, "ci-failure-data", "run.json"), 701var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 750var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 785var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 832var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 836await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "ci-analysis-output", "analysis-result.json"))); 862var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 882var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 941var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 957var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 980var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1011var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1047var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1051await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "ci-analysis-output", "causes", "flaky-failure.json"))); 1074var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1094Path.Combine(_workspace.Path, "ci-failure-data", "prior-causes")).FullName; 1106var causePath = Path.Combine(_workspace.Path, "ci-analysis-output", "causes", "nuget-timeout.json"); 1107var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1126var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1146var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1171var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1213var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 1214var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 1240var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 1241var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 1286var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 1287var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 1485var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1536var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1559var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1578var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1606var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1627var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 1640var causePath = Path.Combine(_workspace.Path, "main-build-break.json"); 1641var runContextPath = Path.Combine(_workspace.Path, "run-context.json"); 1642var lastSuccessfulRunPath = Path.Combine(_workspace.Path, "last-successful-main-run.json"); 1643var triggeringMergePath = Path.Combine(_workspace.Path, "triggering-merge-pr.json"); 1644var candidateHistoryStatusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 1645var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 1646var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 1723var causePath = Path.Combine(_workspace.Path, "main-build-break.json"); 1724var runContextPath = Path.Combine(_workspace.Path, "run-context.json"); 1725var lastSuccessfulRunPath = Path.Combine(_workspace.Path, "last-successful-main-run.json"); 1726var triggeringMergePath = Path.Combine(_workspace.Path, "triggering-merge-pr.json"); 1727var candidateHistoryStatusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 1728var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 1729var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 1803var causePath = Path.Combine(_workspace.Path, "flaky-failure.json"); 1804var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 1805var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 1848var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 1854var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 1870var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 1876var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 1901var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 1906var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 1921var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 1926var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 1941var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 1946var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 1973var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 1985var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 2000var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 2005var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 2020var archivePath = Path.Combine(_workspace.Path, "test-results.zip"); 2029var outputDirectory = Path.Combine(_workspace.Path, "extracted"); 2044var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2058var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2094var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2115var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2154var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2156var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2185var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2197var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2230var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2258var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2305var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2307var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2341var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2343var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2377var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2379var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2413var artifactsPath = Path.Combine(_workspace.Path, "artifacts.json"); 2427var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2466var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2485var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2491var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2515var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2528var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2532var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2557var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2570var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2574var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2595var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2614var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2618var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2639var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2641var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2645var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2666var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2671var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2675var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2700var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2713var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2717var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2741var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2745var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2749var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2773var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2775var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2779var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2803var testResultsDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "test-results")); 2813var jobsPath = Path.Combine(_workspace.Path, "all-jobs.json"); 2817var outputPath = Path.Combine(_workspace.Path, "test-failures.json"); 2852var openIssuesPath = Path.Combine(_workspace.Path, "open-issues.json"); 2853var closedIssuesPath = Path.Combine(_workspace.Path, "closed-issues.json"); 2960var callLogPath = Path.Combine(_workspace.Path, "gh-calls.log"); 2971var openIssuesPath = Path.Combine(_workspace.Path, "open-issues.json"); 2972var closedIssuesPath = Path.Combine(_workspace.Path, "closed-issues.json"); 3014Path.Combine(_workspace.Path, "last-success.json")); 3017using var output = JsonDocument.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "last-success.json"))); 3020Assert.Contains("per_page=100", await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "gh-calls.log")), StringComparison.Ordinal); 3022await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 3048var outputPath = Path.Combine(_workspace.Path, "last-success.json"); 3083var outputPath = Path.Combine(_workspace.Path, "last-success.json"); 3090await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 3118var outputPath = Path.Combine(_workspace.Path, "last-success.json"); 3126await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 3148Path.Combine(_workspace.Path, "last-success.json")); 3166Path.Combine(_workspace.Path, "last-success.json")); 3193Path.Combine(_workspace.Path, "last-success.json")); 3196using var output = JsonDocument.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "last-success.json"))); 3198Assert.True(int.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "gh-call-count"))) >= 2); 3200(await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log"))) 3227Path.Combine(_workspace.Path, "last-success.json")); 3230using var output = JsonDocument.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "last-success.json"))); 3232Assert.Equal(2, int.Parse(await File.ReadAllTextAsync(Path.Combine(_workspace.Path, "gh-call-count")))); 3235(await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log"))) 3248Path.Combine(_workspace.Path, "last-success.json")); 3261var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3262var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3282var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3283var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3326var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3327var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3375var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3376var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3387var ghCalls = await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")); 3435var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3436var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3447await File.ReadAllLinesAsync(Path.Combine(_workspace.Path, "gh-calls.log")), 3476var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3477var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3520var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3521var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3560var candidatesPath = Path.Combine(_workspace.Path, "candidate-merges.json"); 3561var statusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 3603var outputPath = Path.Combine(_workspace.Path, "persisted-main.json"); 3661var outputPath = Path.Combine(_workspace.Path, $"persisted-{historyState}.json"); 3702var outputPath = Path.Combine(_workspace.Path, "persisted-pr.json"); 3755var outputPath = Path.Combine(_workspace.Path, "persisted-pr.json"); 3787var outputPath = Path.Combine(_workspace.Path, "persisted-pr.json"); 3806var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 3810var causeFile = Path.Combine(_workspace.Path, "cause.json"); 3832var newCausePath = Path.Combine(_workspace.Path, "new-cause.json"); 3833var existingCausePath = Path.Combine(_workspace.Path, "existing-cause.json"); 3834var outputPath = Path.Combine(_workspace.Path, "merged-cause.json"); 3860var causePath = Path.Combine(_workspace.Path, "prior-cause.json"); 3896var metadataPath = Path.Combine(_workspace.Path, "metadata.json"); 3928var diagnosticsPath = Path.Combine(_workspace.Path, "diagnostics.json"); 3951var logPath = Path.Combine(_workspace.Path, "job.log"); 4004var inputPath = Path.Combine(_workspace.Path, "job.log"); 4005var outputPath = Path.Combine(_workspace.Path, "sanitized.log"); 4020var inputPath = Path.Combine(_workspace.Path, "job.log"); 4021var outputPath = Path.Combine(_workspace.Path, "sanitized.log"); 4040var causePath = Path.Combine(_workspace.Path, "cause.json"); 4041var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 4042var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 4106var analysisPath = Path.Combine(_workspace.Path, "analysis.json"); 4107var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 4165var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 4166var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 4209var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 4210var canonicalBodyPath = Path.Combine(_workspace.Path, "canonical-body.md"); 4211var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 4330var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 4331var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 4383var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 4384var outputPath = Path.Combine(_workspace.Path, "updated-body.md"); 4422var currentBodyPath = Path.Combine(_workspace.Path, "current-body.md"); 4423var firstOutputPath = Path.Combine(_workspace.Path, "first-output.md"); 4424var secondOutputPath = Path.Combine(_workspace.Path, "second-output.md"); 4488var causePath = Path.Combine(_workspace.Path, "cause.json"); 4489var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 4490var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 4526var causePath = Path.Combine(_workspace.Path, "cause.json"); 4527var runContextPath = Path.Combine(_workspace.Path, "run-context.json"); 4528var lastSuccessfulPath = Path.Combine(_workspace.Path, "last-successful.json"); 4529var triggeringMergePath = Path.Combine(_workspace.Path, "triggering-merge.json"); 4530var candidateHistoryStatusPath = Path.Combine(_workspace.Path, "candidate-merge-history-status.json"); 4531var bodyPath = Path.Combine(_workspace.Path, "issue-body.md"); 4532var metadataPath = Path.Combine(_workspace.Path, "issue-metadata.json"); 4575var trustedJobsPath = Path.Combine(_workspace.Path, "failed-jobs.json"); 4576var buildCausePath = Path.Combine(_workspace.Path, "build-cause.json"); 4577var testCausePath = Path.Combine(_workspace.Path, "test-cause.json"); 4578var multiJobCausePath = Path.Combine(_workspace.Path, "multi-job-cause.json"); 4589var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 4639var buildBodyPath = Path.Combine(_workspace.Path, "build-body.md"); 4640var buildMetadataPath = Path.Combine(_workspace.Path, "build-metadata.json"); 4641var testBodyPath = Path.Combine(_workspace.Path, "test-body.md"); 4642var testMetadataPath = Path.Combine(_workspace.Path, "test-metadata.json"); 4709process.StartInfo.WorkingDirectory = _workspace.Path; 4714process.StartInfo.Environment["ANALYSIS_DIR"] = Path.Combine(_workspace.Path, "ci-analysis-output"); 4733var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4749["GH_CALL_LOG"] = Path.Combine(_workspace.Path, "gh-calls.log"), 4750["GH_CALL_COUNT_FILE"] = Path.Combine(_workspace.Path, "gh-call-count"), 4756var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "fake-bin")).FullName; 4772["GH_CALL_LOG"] = Path.Combine(_workspace.Path, "gh-calls.log"), 4778var fakeBinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, $"fake-bin-{Guid.NewGuid():N}")).FullName; 4815var analysisDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-analysis-output")).FullName; 4816var failureDataDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-failure-data")).FullName; 4833Path.Combine(_workspace.Path, "ci-analysis-output", "analysis-result.json"), 4846["CI_FAILURE_DATA_DIR"] = Path.Combine(_workspace.Path, "ci-failure-data"), 4868process.StartInfo.WorkingDirectory = _workspace.Path; 4904var analysisDirectory = Path.Combine(_workspace.Path, "ci-analysis-output"); 4905var failureDataDirectory = Path.Combine(_workspace.Path, "ci-failure-data"); 4971var causesDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "ci-analysis-output", "causes")).FullName; 4980var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json")); 4991var result = await RunValidationScriptAsync(Path.Combine(_workspace.Path, "output.json"));
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (1)
2122string inputPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\AutoSecWorkflowTests.cs (2)
4792var requestPath = Path.Combine(workspace.Path, "request.json"); 4793var resultPath = Path.Combine(workspace.Path, "result.json");
WorkflowScripts\BackportWorkflowTests.cs (1)
19var scriptPath = Path.Combine(workspace.Path, "cleanup-script.js");
WorkflowScripts\CreateFailingTestIssueWorkflowTests.cs (1)
270var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\CreatePullRequestActionTests.cs (2)
27var disabled = await RunCreatePrScriptAsync(script, workspace.Path, updateMetadata: false, title, body); 33var enabled = await RunCreatePrScriptAsync(script, workspace.Path, updateMetadata: true, title, body);
WorkflowScripts\DeploymentTestScriptTests.cs (5)
31var outputFile = Path.Combine(_workspace.Path, "github-output.txt"); 32var argumentsFile = Path.Combine(_workspace.Path, "dotnet-arguments.txt"); 33var fakeDotnetScript = Path.Combine(_workspace.Path, "dotnet.sh"); 42var resultsDirectory = Path.Combine(_workspace.Path, "test results"); 96process.StartInfo.WorkingDirectory = _workspace.Path;
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (23)
246var changelogPath = Path.Combine(_workspace.Path, "extension", "CHANGELOG.md"); 253=> await RunGateScriptAsync(_workspace.Path, environment); 291await InitializeGitRepositoryAsync(_workspace.Path); 293await WritePackageJsonAsync(_workspace.Path, "1.98.0"); 294await WriteChangelogAsync(_workspace.Path, """ 300await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "baseline.txt"), "baseline"); 301await CommitAllAsync(_workspace.Path, "Create baseline changelog"); 305_workspace.Path, 317await CommitAllAsync(_workspace.Path, "Finalize prior release changelog"); 319await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "feature.txt"), "feature-one"); 320await CommitAllAsync(_workspace.Path, "Add extension feature"); 323await RunGitAsync(_workspace.Path, "checkout", "-b", "extension-release/v1.99.0"); 325await WritePackageJsonAsync(_workspace.Path, "1.99.0"); 326await WriteChangelogAsync(_workspace.Path, $$""" 340await CommitAllAsync(_workspace.Path, "Prepare release branch changelog"); 342await RunGitAsync(_workspace.Path, "checkout", "main"); 346await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "late-main.txt"), "late extension change"); 350await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("docs", "late-main.md"), "non-extension main change"); 353await CommitAllAsync(_workspace.Path, "Advance main"); 354var baseSha = await GetHeadShaAsync(_workspace.Path); 356await RunGitAsync(_workspace.Path, "checkout", "extension-release/v1.99.0"); 359_workspace.Path, 409=> await GetHeadShaAsync(_workspace.Path);
WorkflowScripts\FilterNonBlockingTestArtifactsTests.cs (4)
22var allLogsPath = Path.Combine(workspace.Path, "all-logs"); 54var allLogsPath = Path.Combine(workspace.Path, "all-logs"); 80var allLogsPath = Path.Combine(workspace.Path, "all-logs"); 106var allLogsPath = Path.Combine(workspace.Path, "all-logs");
WorkflowScripts\LabelerPredictPullsWorkflowTests.cs (2)
133var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json"); 134var outputPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.result.json");
WorkflowScripts\LintHandwrittenWorkflowsScriptTests.cs (4)
74private string ArgumentsPath => Path.Combine(_workspace.Path, "actionlint-arguments.txt"); 80var path = Path.Combine(_workspace.Path, "repo", relativePath); 92var binDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "bin")).FullName; 110Path.Combine(_workspace.Path, "repo"),
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (1)
392var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\MonitorScheduledWorkflowsTests.cs (1)
245var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportCiFailureIntegrationTests.cs (1)
284var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportCiFailureTests.cs (1)
81var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportPipelineFailureIntegrationTests.cs (1)
290var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportPipelineFailureTests.cs (1)
139var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportSpecializedTestFailuresTests.cs (1)
228var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\SpecializedTestFailureRunnerTests.cs (1)
228var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\TrackingIssueTests.cs (1)
286var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\UpdateActionlintTests.cs (5)
264var pinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, ".github")); 269command.WithWorkingDirectory(_workspace.Path); 292var pinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, ".github")); 298command.WithWorkingDirectory(_workspace.Path); 344var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");