From 2ef48d380178b6bdf6d561f9e73dde1cc91df9b4 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Mon, 11 Mar 2024 17:08:15 +0100 Subject: [PATCH] Add /test-platforms GH workflow --- .github/workflows/test-platforms.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-platforms.yml b/.github/workflows/test-platforms.yml index 68665436..776ff1f1 100644 --- a/.github/workflows/test-platforms.yml +++ b/.github/workflows/test-platforms.yml @@ -138,14 +138,19 @@ jobs: run: | set -eux + source ./containers/runner/skip-testtypes if [ ${{ matrix.platform }} == "daily-iso" ]; then echo "skip_tests=skip-on-fedora" >> $GITHUB_OUTPUT + echo "disabled_tests=$SKIP_TESTTYPES_DAILY_ISO" >> $GITHUB_OUTPUT elif [ ${{ matrix.platform }} == "rawhide" ]; then echo "skip_tests=skip-on-fedora" >> $GITHUB_OUTPUT + echo "disabled_tests=$SKIP_TESTTYPES_RAWHIDE" >> $GITHUB_OUTPUT elif [ ${{ matrix.platform }} == "rhel8" ]; then echo "skip_tests=skip-on-rhel,skip-on-rhel-8" >> $GITHUB_OUTPUT + echo "disabled_tests=$SKIP_TESTTYPES_RHEL8" >> $GITHUB_OUTPUT elif [ ${{ matrix.platform }} == "rhel9" ]; then echo "skip_tests=skip-on-rhel,skip-on-rhel-9" >> $GITHUB_OUTPUT + echo "disabled_tests=$SKIP_TESTTYPES_RHEL9" >> $GITHUB_OUTPUT else echo "Platform is not supported by kickstart tests yet!" exit 1 @@ -157,12 +162,14 @@ jobs: run: | set -eux + DISABLED_TESTS= if [ -n "${{ needs.pr-info.outputs.launch_args }}" ]; then echo "Running tests required by the comment explicitly." LAUNCH_ARGS="${{ needs.pr-info.outputs.launch_args }}" elif [ -n "${{steps.get_changed_tests.outputs.changed_tests }}" ]; then echo "Running tests affected by changes." LAUNCH_ARGS="${{ steps.get_changed_tests.outputs.changed_tests }}" + DISABLED_TESTS="${{ steps.get_platform_skiptest.outputs.disabled_tests }}" else echo "Running smoke tests." LAUNCH_ARGS="--testtype smoke" @@ -170,8 +177,7 @@ jobs: source ./containers/runner/skip-testtypes PERMIAN_QUERY=$(scripts/generate-permian-query.py \ - --skip-testtypes $SKIP_TESTTYPES_ANACONDA_PR \ - --skip-testtypes ${{ steps.get_platform_skiptest.outputs.skip_tests }} \ + --skip-testtypes $SKIP_TESTTYPES_ANACONDA_PR $DISABLED_TESTS ${{ steps.get_platform_skiptest.outputs.skip_tests }} \ ${LAUNCH_ARGS} ) if [ $? == 0 ]; then echo "launch_args=$LAUNCH_ARGS" >> $GITHUB_OUTPUT