From 25ba4235008f1a82f23dcdcce4e242e4072385fa Mon Sep 17 00:00:00 2001 From: Sherry Date: Wed, 12 Jun 2024 11:47:54 +0800 Subject: [PATCH] CI: Comment to look up Flaky test tracker on e2e test failure (#6292) --- .github/workflows/call-e2e-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/call-e2e-test.yml b/.github/workflows/call-e2e-test.yml index a7ab4e4d4..263004319 100644 --- a/.github/workflows/call-e2e-test.yml +++ b/.github/workflows/call-e2e-test.yml @@ -66,3 +66,9 @@ jobs: name: Test Results ${{ inputs.os }}-${{ inputs.browser }}-${{ inputs.editor-mode }}-${{ inputs.events-mode }}-${{ inputs.prod && 'prod' || 'dev' }}-${{ inputs.node-version }}-${{ inputs.override-react-version }} path: ${{ env.test_results_path }} retention-days: 7 + - name: Flaky test notice PR comment + if: failure() + uses: thollander/actions-comment-pull-request@v2 + with: + message: | + E2E tests failed on [this run](https://github.com/facebook/lexical/actions/runs/${{ github.run_id }}). Please check if the failure is due to a flaky test. Visit the [Flaky Test Tracker](https://github.com/facebook/lexical/discussions/6289) for known flaky tests, and record the failed test run there if its a flaky failure.