Skip to content

Commit 26a9056

Browse files
authored
Merge pull request #1148 from dotnet/auto/libtemplateUpdate
Merge latest Library.Template
2 parents 5eb0d8c + c5b3273 commit 26a9056

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

.github/actions/publish-artifacts/action.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ runs:
3232
name: build_logs-${{ runner.os }}
3333
path: ${{ runner.temp }}/_artifacts/build_logs
3434
continue-on-error: true
35-
- name: 📢 Upload test_logs
36-
if: always()
37-
uses: actions/upload-artifact@v4
38-
with:
39-
name: test_logs-${{ runner.os }}
40-
path: ${{ runner.temp }}/_artifacts/test_logs
41-
continue-on-error: true
4235
- name: 📢 Upload testResults
4336
if: always()
4437
uses: actions/upload-artifact@v4

tools/Get-ArtifactsStagingDirectory.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Param(
44
if ($env:BUILD_ARTIFACTSTAGINGDIRECTORY) {
55
$ArtifactStagingFolder = $env:BUILD_ARTIFACTSTAGINGDIRECTORY
66
} elseif ($env:RUNNER_TEMP) {
7-
$ArtifactStagingFolder = "$env:RUNNER_TEMP\_artifacts"
7+
$ArtifactStagingFolder = Join-Path $env:RUNNER_TEMP _artifacts
88
} else {
99
$ArtifactStagingFolder = [System.IO.Path]::GetFullPath("$PSScriptRoot/../obj/_artifacts")
1010
if ($CleanIfLocal -and (Test-Path $ArtifactStagingFolder)) {

tools/artifacts/testResults.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ $result = @{}
77
$testRoot = Resolve-Path "$PSScriptRoot\..\..\test"
88
$result[$testRoot] = (Get-ChildItem "$testRoot\TestResults" -Recurse -Directory | Get-ChildItem -Recurse -File)
99

10-
$testlogsPath = "$env:BUILD_ARTIFACTSTAGINGDIRECTORY\test_logs"
10+
$artifactStaging = & "$PSScriptRoot\..\Get-ArtifactsStagingDirectory.ps1"
11+
$testlogsPath = Join-Path $artifactStaging "test_logs"
1112
if (Test-Path $testlogsPath) {
12-
$result[$testlogsPath] = Get-ChildItem "$testlogsPath\*";
13+
$result[$testlogsPath] = Get-ChildItem $testlogsPath -Recurse;
1314
}
1415

1516
$result

tools/dotnet-test-cloud.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ if ($x86) {
4444
}
4545
}
4646

47+
$testBinLog = Join-Path $ArtifactStagingFolder (Join-Path build_logs test.binlog)
48+
$testDiagLog = Join-Path $ArtifactStagingFolder (Join-Path test_logs diag.log)
49+
4750
& $dotnet test $RepoRoot `
4851
--no-build `
4952
-c $Configuration `
@@ -52,8 +55,8 @@ if ($x86) {
5255
--settings "$PSScriptRoot/test.runsettings" `
5356
--blame-hang-timeout 60s `
5457
--blame-crash `
55-
-bl:"$ArtifactStagingFolder/build_logs/test.binlog" `
56-
--diag "$ArtifactStagingFolder/test_logs/diag.log;TraceLevel=info" `
58+
-bl:"$testBinLog" `
59+
--diag "$testDiagLog;TraceLevel=info" `
5760
--logger trx `
5861

5962
$unknownCounter = 0

0 commit comments

Comments
 (0)