diff --git a/.pipelines/prchecks/PackageBuildPRCheck.yml b/.pipelines/prchecks/PackageBuildPRCheck.yml index 4a0bb7d6703..dc78772b478 100644 --- a/.pipelines/prchecks/PackageBuildPRCheck.yml +++ b/.pipelines/prchecks/PackageBuildPRCheck.yml @@ -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: @@ -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: diff --git a/.pipelines/templates/PackageBuild.yml b/.pipelines/templates/PackageBuild.yml index 02964e0bc77..76ee387ca7e 100644 --- a/.pipelines/templates/PackageBuild.yml +++ b/.pipelines/templates/PackageBuild.yml @@ -105,6 +105,10 @@ parameters: type: string default: "srpms.tar.gz" + - name: packageBuildList + type: string + default: "" + - name: pipArtifactFeeds type: string default: "" @@ -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 }}" \