next.js
13fcfabf - refactor(CI): Convert daily turbopack (areweturboyet) integration tests into reusable workflows (#76251)

Commit
1 year ago
refactor(CI): Convert daily turbopack (areweturboyet) integration tests into reusable workflows (#76251) This builds on top of work that @timneutkens did in the `wbinnssmith/try-ci-test` branch to rebuild the integration test CI on top of `build_reusable.yml` and work around issues with the `next-integration-stat`, but takes it a few steps further: - As much of the integration test logic as possible is moved into a single re-usable workflow so that we won't need to duplicate logic between 6 workflows going forward (turbopack dev, turbopack build, turbopack examples, rspack dev, rspack build, rspack examples). Right now this just ports turbopack dev and build. - Cleaned up a ton of legacy dead/broken code in `next-integration-stat`. We might want to revive the comment-on-PR functionality, so I didn't completely remove it, just the very obviously broken parts (e.g. references to a >2-year-old stale branch of the turborepo repository). --- Manually triggered the workflows: Dev tests: https://github.com/vercel/next.js/actions/runs/13466611352 Prod tests: https://github.com/vercel/next.js/actions/runs/13466609857 Tested by patching the `test/build-turbopack-*-tests-manifest.js` scripts like so: ```diff diff --git a/test/build-turbopack-dev-tests-manifest.js b/test/build-turbopack-dev-tests-manifest.js index bc1928cf2d..e6546e0018 100644 --- a/test/build-turbopack-dev-tests-manifest.js +++ b/test/build-turbopack-dev-tests-manifest.js @@ -91,7 +91,11 @@ async function fetchLatestTestArtifact() { const res = JSON.parse(stdout) for (const artifact of res.artifacts) { - if (artifact.expired || artifact.workflow_run.head_branch !== 'canary') { + if ( + artifact.expired || + artifact.workflow_run.head_branch !== + 'bgw/reusable-integration-test-workflow' + ) { continue } ``` And then diffing the generated json manifests: https://gist.github.com/bgw/08778b5f63861811fbe88e3f466a8679 Note that some differences are expected: These jobs have been broken for at least 2-3 weeks.
Author
bgw bgw
Parents
Loading