From a13dd24594d694d36f82dae9aa3117bbd2e74b0d Mon Sep 17 00:00:00 2001 From: OJ Kwon <1210596+kwonoj@users.noreply.github.com> Date: Thu, 16 Feb 2023 11:29:10 -0800 Subject: [PATCH] ci(workflow): move integration test to daily (#3842) This PR attempts to move next.js integration workflow to the daily cron job, and then post it to the slack since we don't write comment to the PR. --- .../daily-nextjs-integration-test.yml | 18 ++++++++++++++++++ .github/workflows/test.yml | 11 ----------- .../upload-nextjs-integration-test-results.yml | 1 + 3 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/daily-nextjs-integration-test.yml diff --git a/.github/workflows/daily-nextjs-integration-test.yml b/.github/workflows/daily-nextjs-integration-test.yml new file mode 100644 index 0000000000000..afb531f374a64 --- /dev/null +++ b/.github/workflows/daily-nextjs-integration-test.yml @@ -0,0 +1,18 @@ +# A workflow to run next.js integration test with turbopack for each day. +# This runs against main branch with latest Next.js release. +name: Daily Next.js integration test with turbopack + +on: + schedule: + - cron: "0 8 * * *" + workflow_dispatch: + +jobs: + # Trigger actual next.js integration tests. + next_js_integration: + name: Execute Next.js integration workflow + permissions: + pull-requests: write + uses: ./.github/workflows/nextjs-integration-test.yml + with: + force_post_to_slack: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e9a3f997253a..01f5a3714ff82 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1032,17 +1032,6 @@ jobs: file_pattern: data/** commit_message: Benchmark result for ${{ steps.date.outputs.pretty }} (${{ github.sha }}) - next_js_integration: - name: Execute Next.js integration workflow - needs: [determine_jobs] - permissions: - pull-requests: write - if: needs.determine_jobs.outputs.rust == 'true' && needs.determine_jobs.outputs.push == 'true' - uses: ./.github/workflows/nextjs-integration-test.yml - # Uncomment to test against a specific version of Next.js - # with: - # version: v13.1.6-canary.0 - format_lint: name: Formatting runs-on: ubuntu-latest diff --git a/.github/workflows/upload-nextjs-integration-test-results.yml b/.github/workflows/upload-nextjs-integration-test-results.yml index dd5983549909b..834036cced137 100644 --- a/.github/workflows/upload-nextjs-integration-test-results.yml +++ b/.github/workflows/upload-nextjs-integration-test-results.yml @@ -33,6 +33,7 @@ jobs: # Read next.js version from test results, set necessary environment variables. - name: Print test results run: | + rm -rf ./test-results/main/slack-payload.json ls -al ./test-results/main echo "Print failed test path list:" cat ./test-results/main/failed-test-path-list.json