diff --git a/.github/workflows/stage-4-acceptance.yaml b/.github/workflows/stage-4-acceptance.yaml index df628f7f..127446a5 100644 --- a/.github/workflows/stage-4-acceptance.yaml +++ b/.github/workflows/stage-4-acceptance.yaml @@ -130,6 +130,31 @@ jobs: - name: "Save result" run: | echo "Nothing to save" + + - name: Upload Test Results + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: test-results.xml + + - name: Gather summaries + if: always() + uses: actions/download-artifact@v4 + with: + path: summary + pattern: ci-summary-* + merge-multiple: true + + - name: Test Report + if: always() + uses: phoenix-actions/test-reporting@v15 + with: + name: Test Summary + path: test-results.xml + reporter: java-junit + output-to: step-summary + test-accessibility: name: "Accessibility test" runs-on: ubuntu-latest diff --git a/scripts/tests/integration.sh b/scripts/tests/integration.sh index e3537940..e6eff2a8 100755 --- a/scripts/tests/integration.sh +++ b/scripts/tests/integration.sh @@ -18,4 +18,4 @@ cd "$(git rev-parse --show-toplevel)" # tasks in scripts/test.mk. make dependencies install-python -poetry run pytest tests/integration/ --durations=10 --cov-report= --cov src/ +poetry run pytest tests/integration/ --durations=10 --cov-report= --cov src/ --disable-warnings --tb=short --junitxml=test-results.xml diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index f7441bf0..598f891b 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -116,7 +116,7 @@ class FunctionNotActiveError(Exception): def wait_for_function_active(function_name, lambda_client): - for attempt in stamina.retry_context(on=FunctionNotActiveError): + for attempt in stamina.retry_context(on=FunctionNotActiveError, attempts=20, timeout=120): with attempt: logger.info("waiting") response = lambda_client.get_function(FunctionName=function_name)