From 63a2cbce8b8f39eefb3d4f18fe2030213da55959 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Fri, 4 Oct 2024 13:15:57 -0400 Subject: [PATCH] Add workflow to find flaky tests Callable with a dispatch or a `/find-flaky-tests` comment --- .github/workflows/find-flaky-tests.yml | 13 +++++++++++++ .github/workflows/test-build.yml | 1 + 2 files changed, 14 insertions(+) create mode 100644 .github/workflows/find-flaky-tests.yml diff --git a/.github/workflows/find-flaky-tests.yml b/.github/workflows/find-flaky-tests.yml new file mode 100644 index 000000000..11b89b3f5 --- /dev/null +++ b/.github/workflows/find-flaky-tests.yml @@ -0,0 +1,13 @@ +name: Find flaky tests +on: + issue_comment: + types: [created] + workflow_dispatch: + +jobs: + find-flaky-tests: + if: contains(github.event.comment.body, '/find-flaky-tests') + strategy: + matrix: + runs: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] # Run the build workflow 20 times + uses: ./.github/workflows/test-build.yml diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index c0907fa24..d80349196 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -4,6 +4,7 @@ on: branches: - main pull_request: + workflow_call: concurrency: # Cancel any running workflow for the same branch when new commits are pushed.