Skip to content

Commit

Permalink
Separating toolchain ptests from other ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelWMS committed Sep 9, 2024
1 parent 115c5e3 commit 59bbf9e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .pipelines/prchecks/PackageBuildPRCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ extends:
isCustom: true
name: ${{ configuration.agentPool }}
variables:
ob_artifactBaseName: ${{ variables.rpmsArtifactNameBase }}_${{ configuration.name }}
ob_artifactBaseName: ${{ variables.rpmsArtifactNameBase }}_BuildAndTest_${{ configuration.name }}
ob_outputDirectory: $(Build.ArtifactStagingDirectory)
testListFromToolchain: $[ stageDependencies.Toolchain_${{ configuration.name }}.Build.outputs['CalculateToolchainPackageRetestList.toolchainPackageRetestList'] ]
steps:
- template: .pipelines/templates/PackageBuild.yml@self
parameters:
Expand All @@ -113,11 +112,44 @@ extends:

- task: PublishPipelineArtifact@1
inputs:
artifact: ${{ variables.rpmsArtifactNameBase }}_${{ configuration.name }}
artifact: $(ob_artifactBaseName)
targetPath: $(ob_outputDirectory)
condition: always()
displayName: "Publish packages build artifacts"

- job: TestToolchain
pool:
type: linux
isCustom: true
name: ${{ configuration.agentPool }}
variables:
ob_artifactBaseName: ${{ variables.rpmsArtifactNameBase }}_TestToolchain_${{ configuration.name }}
ob_outputDirectory: $(Build.ArtifactStagingDirectory)
testListFromToolchain: $[ stageDependencies.Toolchain_${{ configuration.name }}.Build.outputs['CalculateToolchainPackageRetestList.toolchainPackageRetestList'] ]
steps:
- template: .pipelines/templates/PackageBuild.yml@self
parameters:
checkBuildRetries: "1"
customToolchainArtifactName: $(toolchainArtifactNameBase)_${{ configuration.name }}
isCheckBuild: true
isQuickRebuildPackages: true
outputArtifactsFolder: $(ob_outputDirectory)
outputRPMsTarballName: "" # We don't need to publish any output RPMs for toolchain tests.
outputSRPMsTarballName: "" # We don't need to publish any output SRPMs for toolchain tests.
maxCPU: "${{ configuration.maxCPUs }}"
packageBuildList: "$(testListFromToolchain)"
pipArtifactFeeds: "mariner/Mariner-Pypi-Feed"
selfRepoName: self
testRerunList: "$(testListFromToolchain)"
testSuiteName: "[${{ configuration.name }}] Toolchain package test"

- task: PublishPipelineArtifact@1
inputs:
artifact: $(ob_artifactBaseName)
targetPath: $(ob_outputDirectory)
condition: always()
displayName: "Publish toolchain test artifacts"

- stage: sodiff_${{ configuration.name }}
dependsOn: RPMs_${{ configuration.name }}
jobs:
Expand Down
5 changes: 5 additions & 0 deletions .pipelines/templates/PackageBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ parameters:
type: string
default: "srpms.tar.gz"

- name: packageBuildList
type: string
default: ""

- name: pipArtifactFeeds
type: string
default: ""
Expand Down Expand Up @@ -212,6 +216,7 @@ steps:
CONCURRENT_PACKAGE_BUILDS=${{ parameters.concurrentPackageBuilds }} \
CONFIG_FILE="" \
MAX_CPU="${{ parameters.maxCPU }}" \
PACKAGE_BUILD_LIST="${{ parameters.packageBuildList }}" \
REBUILD_TOOLS=y \
REPO_LIST="${{ parameters.extraPackageRepos }}" \
SPECS_DIR="${{ parameters.buildRepoRoot }}/${{ parameters.specsFolderPath }}" \
Expand Down

0 comments on commit 59bbf9e

Please sign in to comment.