From ba883ab999a43a9ae2ae4e4a7f906e8593a008b6 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Mon, 9 Dec 2024 18:13:06 -0500 Subject: [PATCH] SRE-2171 ci: Accept and propagate a run-gha variable (#15576) For the case where daos is being used as a downstream test. #Pragmas from previous commit message: Fixes: SRE-2570 Skip-checkpatch: true Skip-python-bandit: true Skip-build: true Quick-build: true Quick-Functional: true Allow-unstable-test: true #RPM-test-version: version[-release] #RPM-test-version: 2.6.2 # VM1-label: ci_vm1 # Ubuntu-VM9-label: ci_vm9 # Leap15-VM9-label: ci_vm9 # EL8-VM9-label: ci_vm9 # HW-medium-label: ci_nvme5 # HW-large-label: ci_nvme9 Signed-off-by: Brian J. Murrell --- .github/workflows/rpm-build-and-test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rpm-build-and-test.yml b/.github/workflows/rpm-build-and-test.yml index ead82bf2ac6a..e0d0142b6e26 100644 --- a/.github/workflows/rpm-build-and-test.yml +++ b/.github/workflows/rpm-build-and-test.yml @@ -42,6 +42,11 @@ on: functional-test-distros: description: 'Distros to run Functional testing on (i.e. el8 el9 leap15, etc.)' required: false + run-gha: + description: 'Run the GHA build and tests' + required: false + type: boolean + default: false pull_request: push: branches: @@ -85,7 +90,7 @@ jobs: Call-RPM-Build: name: Build RPM needs: Variables - if: inputs.rpm-test-version == '' + if: inputs.rpm-test-version == '' || inputs.run-gha permissions: statuses: write uses: daos-stack/actions-lib/.github/workflows/rpm-build.yml@v1 @@ -98,6 +103,7 @@ jobs: LEAP15_VERSION: ${{ needs.Variables.outputs.LEAP15_VERSION }} PACKAGING_DIR: ${{ needs.Variables.outputs.PACKAGING_DIR }} COVFN_DISABLED: ${{ fromJSON(needs.Variables.outputs.COVFN_DISABLED) }} + RUN_GHA: ${{ fromJSON(inputs.run-gha) }} Calc-functional-matrix: name: Calculate Functional Testing Matrix