Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new build and test workflow #50436

Merged
merged 1 commit into from
May 28, 2023
Merged

Add new build and test workflow #50436

merged 1 commit into from
May 28, 2023

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented May 27, 2023

This adds new build and test and build and deploy workflows in favor of the existing massive build, test, and deploy workflow. Since the new workflows will use pull_request_target this waits to remove the existing workflow until the new one is tested.

While testing this new workflow flakey behavior in tests have also been addressed. Along with the new workflow we will also be leveraging new runners which allow us to run tests against the production binary of next-swc so this avoids slight differences in tests we've seen due to running against the dev binary.

Furthermore we will have a new flow for allowing workflow runs on PRs from external forks which will either require a comment be checking a box approving the run after each change or a label added by the team.

The new flow also no longer relies on actions/cache or similar which have proven to be pretty unreliable.

Tests runs with the new workflow can be seen here https://github.com/vercel/next.js/actions/runs/5100673508/jobs/9169416949

@ijjk ijjk added area: tests Turbopack Related to Turbopack with Next.js. created-by: Next.js team PRs by the Next.js team. type: next labels May 27, 2023
@ijjk ijjk force-pushed the ijjk/update-ci-workflow branch 6 times, most recently from 1e79d26 to 37b5e40 Compare May 28, 2023 00:17
@socket-security
Copy link

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore [email protected] bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

⬆️ Updated Package Version Diff Added Capability Access +/- Transitive Count Publisher
[email protected] 1.6.3...1.9.6 None +0/-0 turbobot

@ijjk ijjk force-pushed the ijjk/update-ci-workflow branch 4 times, most recently from 1e22c65 to e76e708 Compare May 28, 2023 03:12
@ijjk ijjk force-pushed the ijjk/update-ci-workflow branch from e76e708 to 9fdc180 Compare May 28, 2023 03:30
@ijjk ijjk marked this pull request as ready for review May 28, 2023 03:53
@ijjk ijjk merged commit a3ab542 into canary May 28, 2023
@ijjk ijjk deleted the ijjk/update-ci-workflow branch May 28, 2023 04:02
@AnandChowdhary
Copy link

@ijjk is the thank you, next there to check if GitHub Actions itself is functioning properly?

@@ -0,0 +1,430 @@
name: build-and-deploy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this temp file build_and_deploy.yml.tmp needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was temporary for #50584

@ijjk ijjk mentioned this pull request May 31, 2023
kodiakhq bot pushed a commit that referenced this pull request May 31, 2023
hydRAnger pushed a commit to hydRAnger/next.js that referenced this pull request Jun 12, 2023
This adds new `build and test` and `build and deploy` workflows in favor
of the existing massive `build, test, and deploy` workflow. Since the
new workflows will use `pull_request_target` this waits to remove the
existing workflow until the new one is tested.

While testing this new workflow flakey behavior in tests have also been
addressed. Along with the new workflow we will also be leveraging new
runners which allow us to run tests against the production binary of
`next-swc` so this avoids slight differences in tests we've seen due to
running against the dev binary.

Furthermore we will have a new flow for allowing workflow runs on PRs
from external forks which will either require a comment be checking a
box approving the run after each change or a label added by the team.

The new flow also no longer relies on `actions/cache` or similar which
have proven to be pretty unreliable.

Tests runs with the new workflow can be seen here
https://github.com/vercel/next.js/actions/runs/5100673508/jobs/9169416949
hydRAnger pushed a commit to hydRAnger/next.js that referenced this pull request Jun 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team. Turbopack Related to Turbopack with Next.js. type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants