Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions eng/pipelines/templates/jobs/ci.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
# This will contain things such as heap dumps hprofs if testing hit OutOfMemory errors, log files captured
# during testing if tests failed, and linting reports.
- output: pipelineArtifact
artifactName: troubleshooting-$(System.StageName)-$(System.JobName)
artifactName: troubleshooting-$(System.StageName)-$(System.JobName)-$(System.JobAttempt)
targetPath: $(System.DefaultWorkingDirectory)/troubleshooting
displayName: 'Capture troubleshooting artifacts'
condition: and(not(succeeded()), eq(variables['HAS_TROUBLESHOOTING'], 'true'))
Expand All @@ -109,16 +109,6 @@ jobs:
parameters:
runProxy: true

- pwsh: |
$files = Get-ChildItem -Path $(Build.SourcesDirectory) -Filter test-proxy.log
foreach($file in $files){
Write-Host "##[group]$file"
cat $file
Write-Host "##[endgroup]"
}
displayName: Dump Test-Proxy Logs
condition: succeededOrFailed()

# If the Java test versions isn't one of the LTS versions, or in other words is the latest Java version we're
# testing against and that isn't an LTS version at the time (ex. latest LTS is Java 17 but we're testing against
# Java 18), then install the latest Java version and use that to run a full build for validation of the latest
Expand Down Expand Up @@ -159,3 +149,13 @@ jobs:
# Shut down proxy to prevent file locks on the log file for auto-injected credscan
# steps on windows
- template: /eng/common/testproxy/test-proxy-tool-shutdown.yml

- pwsh: |
$files = Get-ChildItem -Path $(Build.SourcesDirectory) -Filter test-proxy.log
foreach($file in $files){
Write-Host "##[group]$file"
cat $file
Write-Host "##[endgroup]"
}
displayName: Dump Test-Proxy Logs
condition: succeededOrFailed()
24 changes: 13 additions & 11 deletions eng/pipelines/templates/jobs/ci.versions.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
# This will contain things such as heap dumps hprofs if testing hit OutOfMemory errors, log files captured
# during testing if tests failed, and linting reports.
- output: pipelineArtifact
artifactName: 'troubleshooting-vo-${{ versionOverride }}-troubleshooting-$(System.StageName)-$(System.JobName)'
artifactName: 'troubleshooting-vo-${{ versionOverride }}-troubleshooting-$(System.StageName)-$(System.JobName)-$(System.JobAttempt)'
targetPath: $(System.DefaultWorkingDirectory)/troubleshooting
displayName: 'Capture troubleshooting artifacts for version override ${{ versionOverride }}'
condition: and(not(succeeded()), eq(variables['HAS_TROUBLESHOOTING'], 'true'))
Expand All @@ -86,16 +86,6 @@ jobs:
parameters:
runProxy: true

- pwsh: |
$files = Get-ChildItem -Path $(Build.SourcesDirectory) -Filter test-proxy.log
foreach($file in $files){
Write-Host "##[group]$file"
cat $file
Write-Host "##[endgroup]"
}
displayName: Dump Test-Proxy Logs
condition: succeededOrFailed()

- template: /eng/pipelines/templates/steps/install-reporting-tools.yml
parameters:
JdkVersion: $(JavaTestVersion)
Expand All @@ -120,4 +110,16 @@ jobs:
Write-Host "##vso[task.setvariable variable=FirstTestOverrideRan]true"
displayName: "Reset version override changes"

- template: /eng/common/testproxy/test-proxy-tool-shutdown.yml

- pwsh: |
$files = Get-ChildItem -Path $(Build.SourcesDirectory) -Filter test-proxy.log
foreach($file in $files){
Write-Host "##[group]$file"
cat $file
Write-Host "##[endgroup]"
}
displayName: Dump Test-Proxy Logs
condition: succeededOrFailed()

- template: /eng/pipelines/templates/steps/post-job-cleanup.yml
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
# This will contain things such as heap dumps hprofs if testing hit OutOfMemory errors, log files captured
# during testing if tests failed, and linting reports.
- output: pipelineArtifact
artifactName: troubleshooting-$(System.StageName)-$(System.JobName)
artifactName: troubleshooting-$(System.StageName)-$(System.JobName)-$(System.JobAttempt)
targetPath: $(System.DefaultWorkingDirectory)/troubleshooting
displayName: 'Capture troubleshooting artifacts'
condition: and(not(succeeded()), eq(variables['HAS_TROUBLESHOOTING'], 'true'))
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/native.live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
# This will contain things such as heap dumps hprofs if testing hit OutOfMemory errors, log files captured
# during testing if tests failed, and linting reports.
- output: pipelineArtifact
artifactName: troubleshooting-$(System.StageName)-$(System.JobName)
artifactName: troubleshooting-$(System.StageName)-$(System.JobName)-$(System.JobAttempt)
targetPath: $(System.DefaultWorkingDirectory)/troubleshooting
displayName: 'Capture troubleshooting artifacts'
condition: and(not(succeeded()), eq(variables['HAS_TROUBLESHOOTING'], 'true'))
Expand Down
Loading