From 562654e9ac0dd1812d0d729b772a85a963a5872c Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Tue, 14 Jan 2025 10:28:38 +0000 Subject: [PATCH] donotmerge: try to reproduce ingress test failures This test has been reported as flaky, we'll run 50 iterations per job, trying to catch a failure. --- .github/workflows/e2e-tests.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index c86d1ae86..9a53a01a9 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -70,7 +70,15 @@ jobs: TEST_STRICT_INTERFACE_CHANNELS: "recent 6 strict" TEST_MIRROR_LIST: '[{"name": "ghcr.io", "port": 5000, "remote": "https://ghcr.io", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}, {"name": "docker.io", "port": 5001, "remote": "https://registry-1.docker.io", "username": "", "password": ""}, {"name": "rocks.canonical.com", "port": 5002, "remote": "https://rocks.canonical.com/cdk"}]' run: | - cd tests/integration && sudo --user "$USER" --preserve-env --preserve-env=PATH -- env -- tox -e integration -- --tags ${{ inputs.test-tags }} + + cd tests/integration + set -e + iteration=0 + while [[ $iteration -lt 50 ]]; do + iteration=$(( iteration + 1 )) + echo "Starting test iteration: $iteration" + sudo --user "$USER" --preserve-env --preserve-env=PATH -- env -- tox -e integration -- --tags ${{ inputs.test-tags }} -k test_ingress + done - name: Prepare inspection reports if: failure() run: |