Skip to content

Commit

Permalink
SRE-2171 ci: Accept and propagate a run-gha variable (#15576)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
brianjmurrell committed Dec 11, 2024
1 parent edf811e commit ba883ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/rpm-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ba883ab

Please sign in to comment.