Skip to content
Closed
Changes from all 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
21 changes: 20 additions & 1 deletion eng/pipelines/common/templates/runtimes/run-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,29 @@ jobs:
# Download and unzip target specific tests
- template: /eng/pipelines/common/download-artifact-step.yml
parameters:
unpackFolder: '$(managedTestArtifactRootFolderPath)'
artifactFileName: '$(managedTestArtifactName)$(archiveExtension)'
artifactName: '$(managedTestArtifactName)'
displayName: 'managed test artifacts (built on ${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }})'
${{ if ne(parameters.testBuildPhased, true) }}:
# These are the only tests unpack directly
unpackFolder: '$(managedTestArtifactRootFolderPath)'
${{ if eq(parameters.testBuildPhased, true) }}:
# We want the specific tests to overlay the generic tests
# Unpacking directly casues issues due to not handling overwriting existing files
# Unpack to a temp folder and copy below
unpackFolder: '$(Build.SourcesDirectory)/__unpack__/$(managedTestArtifactName)'

- ${{ if eq(parameters.testBuildPhased, true) }}:
# Copy target specific tests on top of the generic test
# Expected to overwrite duplicates
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to instead port into this PR building the target specific tests as part of the run job, or is that a very big change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That PR already exists #35645. If it is right it should fix the issue.

It is a bigger change, so it may take longer to review/merge.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, since this is a temp workaround, if it fixes the issue I don't want to block on this, so fine with me and we can remove this workaround on #35645

- task: CopyFiles@2
displayName: Gather binaries for publish to artifacts
inputs:
SourceFolder: '$(Build.SourcesDirectory)/__unpack__/$(managedTestArtifactName)'
Contents: '**'
TargetFolder: '$(managedTestArtifactRootFolderPath)'
CleanTargetFolder: false
OverWrite: true


# Download product binaries directory
Expand Down