浏览代码

retry failed tests (#4675)

* retry failed tests

* retry even more
Khaleel Al-Adhami 3 月之前
父节点
当前提交
a923f657ac
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/integration_app_harness.yml

+ 2 - 2
.github/workflows/integration_app_harness.yml

@@ -47,14 +47,14 @@ jobs:
           python-version: ${{ matrix.python-version }}
           python-version: ${{ matrix.python-version }}
           run-poetry-install: true
           run-poetry-install: true
           create-venv-at-path: .venv
           create-venv-at-path: .venv
-      - run: poetry run uv pip install pyvirtualdisplay pillow pytest-split
+      - run: poetry run uv pip install pyvirtualdisplay pillow pytest-split pytest-retry
       - name: Run app harness tests
       - name: Run app harness tests
         env:
         env:
           SCREENSHOT_DIR: /tmp/screenshots/${{ matrix.state_manager }}/${{ matrix.python-version }}/${{ matrix.split_index }}
           SCREENSHOT_DIR: /tmp/screenshots/${{ matrix.state_manager }}/${{ matrix.python-version }}/${{ matrix.split_index }}
           REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }}
           REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }}
         run: |
         run: |
           poetry run playwright install chromium
           poetry run playwright install chromium
-          poetry run pytest tests/integration --splits 2 --group ${{matrix.split_index}}
+          poetry run pytest tests/integration --retries 3 --maxfail=5 --splits 2 --group ${{matrix.split_index}}
       - uses: actions/upload-artifact@v4
       - uses: actions/upload-artifact@v4
         name: Upload failed test screenshots
         name: Upload failed test screenshots
         if: always()
         if: always()