From 93182097eb58fc707cbeefe59631a1b9287eaa9e Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Thu, 19 Dec 2024 16:46:16 -0700 Subject: [PATCH] Add more environment variables for tests --- .github/workflows/test-action.yml | 120 +++++++++++++++++++++++++----- 1 file changed, 102 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 824c173c44a6..f00fe9a202e7 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -160,9 +160,23 @@ jobs: id: run-fast-changed-tests if: ${{ fromJSON(inputs.testrun)['type'] != 'full' }} run: | - docker exec -e SKIP_REQUIREMENTS_INSTALL=1 -e PRINT_TEST_SELECTION=0 -e PRINT_TEST_PLAN_ONLY=0 -e PRINT_SYSTEM_INFO=0 \ - -e RERUN_FAILURES=1 -e GITHUB_ACTIONS_PIPELINE=1 -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ - -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + docker exec \ + -e SKIP_REQUIREMENTS_INSTALL=1 \ + -e PRINT_TEST_SELECTION=0 \ + -e PRINT_TEST_PLAN_ONLY=0 \ + -e PRINT_SYSTEM_INFO=0 \ + -e RERUN_FAILURES=1 \ + -e GITHUB_ACTIONS_PIPELINE=1 \ + -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ + -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} \ + -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + -e COLUMNS=190 \ + -e PIP_INDEX_URL=${{ vars.PIP_INDEX_URL }} \ + -e PIP_TRUSTED_HOST=${{ vars.PIP_TRUSTED_HOST }} \ + -e PIP_EXTRA_INDEX_URL=${{ vars.PIP_EXTRA_INDEX_URL }} \ + -e PIP_DISABLE_PIP_VERSION_CHECK="1" \ + -e RAISE_DEPRECATIONS_RUNTIME_ERRORS="1" \ + -e SALT_TRANSPORT=${{ matrix.transport }} \ ${{ github.run_id}}_salt-test python3 -m nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} -- \ --core-tests --slow-tests --suppress-no-test-exit-code --from-filenames=testrun-changed-files.txt @@ -170,9 +184,23 @@ jobs: id: run-fast-tests if: ${{ fromJSON(inputs.testrun)['type'] != 'full' && fromJSON(inputs.testrun)['selected_tests']['fast'] }} run: | - docker exec -e SKIP_REQUIREMENTS_INSTALL=1 -e PRINT_TEST_SELECTION=0 -e PRINT_TEST_PLAN_ONLY=0 -e PRINT_SYSTEM_INFO=0 \ - -e RERUN_FAILURES=1 -e GITHUB_ACTIONS_PIPELINE=1 -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ - -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + docker exec \ + -e SKIP_REQUIREMENTS_INSTALL=1 \ + -e PRINT_TEST_SELECTION=0 \ + -e PRINT_TEST_PLAN_ONLY=0 \ + -e PRINT_SYSTEM_INFO=0 \ + -e RERUN_FAILURES=1 \ + -e GITHUB_ACTIONS_PIPELINE=1 \ + -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ + -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} \ + -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + -e COLUMNS=190 \ + -e PIP_INDEX_URL=${{ vars.PIP_INDEX_URL }} \ + -e PIP_TRUSTED_HOST=${{ vars.PIP_TRUSTED_HOST }} \ + -e PIP_EXTRA_INDEX_URL=${{ vars.PIP_EXTRA_INDEX_URL }} \ + -e PIP_DISABLE_PIP_VERSION_CHECK="1" \ + -e RAISE_DEPRECATIONS_RUNTIME_ERRORS="1" \ + -e SALT_TRANSPORT=${{ matrix.transport }} \ ${{ github.run_id}}_salt-test python3 -m nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} -- \ --suppress-no-test-exit-code @@ -180,9 +208,23 @@ jobs: id: run-slow-tests if: ${{ fromJSON(inputs.testrun)['type'] != 'full' && fromJSON(inputs.testrun)['selected_tests']['slow'] }} run: | - docker exec -e SKIP_REQUIREMENTS_INSTALL=1 -e PRINT_TEST_SELECTION=0 -e PRINT_TEST_PLAN_ONLY=0 -e PRINT_SYSTEM_INFO=0 \ - -e RERUN_FAILURES=1 -e GITHUB_ACTIONS_PIPELINE=1 -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ - -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + docker exec \ + -e SKIP_REQUIREMENTS_INSTALL=1 \ + -e PRINT_TEST_SELECTION=0 \ + -e PRINT_TEST_PLAN_ONLY=0 \ + -e PRINT_SYSTEM_INFO=0 \ + -e RERUN_FAILURES=1 \ + -e GITHUB_ACTIONS_PIPELINE=1 \ + -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ + -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} \ + -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + -e COLUMNS=190 \ + -e PIP_INDEX_URL=${{ vars.PIP_INDEX_URL }} \ + -e PIP_TRUSTED_HOST=${{ vars.PIP_TRUSTED_HOST }} \ + -e PIP_EXTRA_INDEX_URL=${{ vars.PIP_EXTRA_INDEX_URL }} \ + -e PIP_DISABLE_PIP_VERSION_CHECK="1" \ + -e RAISE_DEPRECATIONS_RUNTIME_ERRORS="1" \ + -e SALT_TRANSPORT=${{ matrix.transport }} \ ${{ github.run_id}}_salt-test python3 -m nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} -- \ --suppress-no-test-exit-code --no-fast-tests --slow-tests @@ -190,9 +232,23 @@ jobs: id: run-core-tests if: ${{ fromJSON(inputs.testrun)['type'] != 'full' && fromJSON(inputs.testrun)['selected_tests']['core'] }} run: | - docker exec -e SKIP_REQUIREMENTS_INSTALL=1 -e PRINT_TEST_SELECTION=0 -e PRINT_TEST_PLAN_ONLY=0 -e PRINT_SYSTEM_INFO=0 \ - -e RERUN_FAILURES=1 -e GITHUB_ACTIONS_PIPELINE=1 -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ - -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + docker exec \ + -e SKIP_REQUIREMENTS_INSTALL=1 \ + -e PRINT_TEST_SELECTION=0 \ + -e PRINT_TEST_PLAN_ONLY=0 \ + -e PRINT_SYSTEM_INFO=0 \ + -e RERUN_FAILURES=1 \ + -e GITHUB_ACTIONS_PIPELINE=1 \ + -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ + -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} \ + -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + -e COLUMNS=190 \ + -e PIP_INDEX_URL=${{ vars.PIP_INDEX_URL }} \ + -e PIP_TRUSTED_HOST=${{ vars.PIP_TRUSTED_HOST }} \ + -e PIP_EXTRA_INDEX_URL=${{ vars.PIP_EXTRA_INDEX_URL }} \ + -e PIP_DISABLE_PIP_VERSION_CHECK="1" \ + -e RAISE_DEPRECATIONS_RUNTIME_ERRORS="1" \ + -e SALT_TRANSPORT=${{ matrix.transport }} \ ${{ github.run_id}}_salt-test python3 -m nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} -- \ --suppress-no-test-exit-code --no-fast-tests --core-tests @@ -200,9 +256,23 @@ jobs: id: run-flaky-tests if: ${{ fromJSON(inputs.testrun)['selected_tests']['flaky'] }} run: | - docker exec -e SKIP_REQUIREMENTS_INSTALL=1 -e PRINT_TEST_SELECTION=0 -e PRINT_TEST_PLAN_ONLY=0 -e PRINT_SYSTEM_INFO=0 \ - -e RERUN_FAILURES=1 -e GITHUB_ACTIONS_PIPELINE=1 -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ - -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + docker exec \ + -e SKIP_REQUIREMENTS_INSTALL=1 \ + -e PRINT_TEST_SELECTION=0 \ + -e PRINT_TEST_PLAN_ONLY=0 \ + -e PRINT_SYSTEM_INFO=0 \ + -e RERUN_FAILURES=1 \ + -e GITHUB_ACTIONS_PIPELINE=1 \ + -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ + -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} \ + -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + -e COLUMNS=190 \ + -e PIP_INDEX_URL=${{ vars.PIP_INDEX_URL }} \ + -e PIP_TRUSTED_HOST=${{ vars.PIP_TRUSTED_HOST }} \ + -e PIP_EXTRA_INDEX_URL=${{ vars.PIP_EXTRA_INDEX_URL }} \ + -e PIP_DISABLE_PIP_VERSION_CHECK="1" \ + -e RAISE_DEPRECATIONS_RUNTIME_ERRORS="1" \ + -e SALT_TRANSPORT=${{ matrix.transport }} \ ${{ github.run_id}}_salt-test python3 -m nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} -- \ --suppress-no-test-exit-code --no-fast-tests --flaky-jail @@ -210,9 +280,23 @@ jobs: id: run-full-tests if: ${{ fromJSON(inputs.testrun)['type'] == 'full' }} run: | - docker exec -e SKIP_REQUIREMENTS_INSTALL=1 -e PRINT_TEST_SELECTION=0 -e PRINT_TEST_PLAN_ONLY=0 -e PRINT_SYSTEM_INFO=0 \ - -e RERUN_FAILURES=1 -e GITHUB_ACTIONS_PIPELINE=1 -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ - -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + docker exec \ + -e SKIP_REQUIREMENTS_INSTALL=1 \ + -e PRINT_TEST_SELECTION=0 \ + -e PRINT_TEST_PLAN_ONLY=0 \ + -e PRINT_SYSTEM_INFO=0 \ + -e RERUN_FAILURES=1 \ + -e GITHUB_ACTIONS_PIPELINE=1 \ + -e SKIP_INITIAL_GH_ACTIONS_FAILURES=1 \ + -e SKIP_CODE_COVERAGE=${{ inputs.skip-code-coverage && '1' || '0' }} \ + -e CONVERAGE_CONTEXT=${{ matrix.slug }} \ + -e COLUMNS=190 \ + -e PIP_INDEX_URL=${{ vars.PIP_INDEX_URL }} \ + -e PIP_TRUSTED_HOST=${{ vars.PIP_TRUSTED_HOST }} \ + -e PIP_EXTRA_INDEX_URL=${{ vars.PIP_EXTRA_INDEX_URL }} \ + -e PIP_DISABLE_PIP_VERSION_CHECK="1" \ + -e RAISE_DEPRECATIONS_RUNTIME_ERRORS="1" \ + -e SALT_TRANSPORT=${{ matrix.transport }} \ ${{ github.run_id}}_salt-test python3 -m nox --force-color -e ${{ inputs.nox-session }} -- ${{ matrix.tests-chunk }} -- \ --slow-tests --core-tests