diff --git a/.github/workflows/flaky-test-detector.yml b/.github/workflows/flaky-test-detector.yml deleted file mode 100644 index fbde86cf1a0f..000000000000 --- a/.github/workflows/flaky-test-detector.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: 'CI: Detect flaky tests' -on: - workflow_dispatch: - pull_request: - paths: - - 'dev-packages/browser-integration-tests/suites/**/test.ts' - branches-ignore: - - master - -env: - HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }} - -# Cancel in progress workflows on pull_requests. -# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - flaky-detector: - runs-on: namespace-profile-sentry-javascript-large - timeout-minutes: 60 - name: 'Check tests for flakiness' - # Also skip if PR is from master -> develop - if: ${{ github.base_ref != 'master' && github.ref != 'refs/heads/master' }} - steps: - - name: Check out current branch - uses: actions/checkout@v7 - - name: Install pnpm - uses: ./.github/actions/install-pnpm - - name: Set up Node - uses: actions/setup-node@v7 - with: - node-version-file: 'package.json' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build packages - run: pnpm run build - - - name: Install Playwright - uses: ./.github/actions/install-playwright - with: - browsers: 'chromium' - cwd: dev-packages/browser-integration-tests - - - name: Determine changed tests - uses: dorny/paths-filter@v4.0.3 - id: changed - with: - list-files: json - filters: | - browser_integration: dev-packages/browser-integration-tests/suites/**/test.ts - - - name: Detect flaky tests - id: test - run: pnpm run test:detect-flaky - working-directory: dev-packages/browser-integration-tests - env: - CHANGED_TEST_PATHS: ${{ steps.changed.outputs.browser_integration_files }} - TEST_RUN_COUNT: 'AUTO' - - - name: Upload Playwright Traces - uses: actions/upload-artifact@v7 - if: failure() && steps.test.outcome == 'failure' - with: - name: playwright-test-results - path: dev-packages/browser-integration-tests/test-results - retention-days: 5