Skip to content

Commit

Permalink
Fixed: Added more verbose output to terminal
Browse files Browse the repository at this point in the history
Fixed: Set an timeout to 12h as tests can be lengthy

Signed-off-by: Milosz Linkiewicz <milosz.linkiewicz@intel.com>
  • Loading branch information
Mionsz committed Feb 12, 2025
1 parent 5e18b83 commit 5855a2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/validation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ jobs:
python3 -m pipenv install -r requirements.txt
echo "VIRTUAL_ENV=$(python3 -m pipenv --venv)/bin/activate" >> "$GITHUB_ENV"
# Timeout of this job is set to 12h [60m/h*12h=720m]
validation-run-tests:
needs: [validation-build-mtl]
runs-on: [Linux, self-hosted, DPDK]
timeout-minutes: 720
env:
PYTEST_ALIAS: 'sudo --preserve-env python3 -m pipenv run pytest'
PYTEST_PARAMS: '--media=/mnt/media --build="../.."'
Expand Down Expand Up @@ -239,6 +241,7 @@ jobs:
working-directory: tests/validation
run: |
set +e
echo "::group::pre-execution-summary"
export TEST_PORT_P="${{ env.TEST_PORT_P }}"
export TEST_PORT_R="${{ env.TEST_PORT_R }}"
TESTS_INCLUDED_IN_EXECUTION=( $(grep -v "collected in" <(${{ env.PYTEST_ALIAS }} "tests/${{ inputs.validation-tests-1 }}" ${{ env.PYTEST_PARAMS }} --nic="${TEST_PORT_P},${TEST_PORT_R}" --collect-only -q --no-summary 2>&1)) )
Expand All @@ -251,9 +254,14 @@ jobs:
NUMBER_OF_TESTS="${#TESTS_INCLUDED_IN_EXECUTION[@]}"
TESTS_FAIL=()
TESTS_SUCCESS=()
echo "${SUMMARY_MAIN_HEADER} tests (total ${NUMBER_OF_TESTS}) :rocket:\n----------------------------------"
echo "Tests to be executed:\n${TESTS_INCLUDED_IN_EXECUTION[@]}"
echo "## ${SUMMARY_MAIN_HEADER} tests (total ${NUMBER_OF_TESTS}) :rocket:" >> "$GITHUB_STEP_SUMMARY"
echo "| ❌/✅ | Collected Test | Started | Ended | Took (s) | Result |" >> "$GITHUB_STEP_SUMMARY"
echo "| --- | ---| --- | --- | --- | --- |" >> "$GITHUB_STEP_SUMMARY"
echo "::endgroup::"
for test in ${TESTS_INCLUDED_IN_EXECUTION[@]}; do
echo "::group::${test}"
Expand Down

0 comments on commit 5855a2b

Please sign in to comment.