forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Remove React 17 (vercel#41629)
Next.js 13 will require React 18. In this PR I've only updated the peerDependency and removed the test runs in GH actions. Further cleanup will follow later, this allows us to remove the code supporting it later. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by: Jiachi Liu <[email protected]>
- Loading branch information
1 parent
7102050
commit 14c9376
Showing
45 changed files
with
45 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -316,82 +316,6 @@ jobs: | |
path: | | ||
test/traces | ||
testDevReact17: | ||
name: Test Development (react v17) | ||
runs-on: ubuntu-latest | ||
needs: [build, build-native-test] | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
NEXT_TEST_REACT_VERSION: ^17 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
group: [1, 2] | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
node-version: 16 | ||
check-latest: true | ||
|
||
- run: echo ${{needs.build.outputs.docsChange}} | ||
|
||
# https://github.com/actions/virtual-environments/issues/1187 | ||
- name: tune linux network | ||
run: sudo ethtool -K eth0 tx off rx off | ||
|
||
- uses: actions/cache@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }}-${{ github.run_number }} | ||
|
||
- uses: actions/download-artifact@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
name: next-swc-test-binary | ||
path: packages/next-swc/native | ||
|
||
- run: npm i -g pnpm@${PNPM_VERSION} | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
timeout-minutes: 10 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npx @replayio/playwright install chromium | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: node run-tests.js --type development --timings -g ${{ matrix.group }}/2 | ||
name: Run test/development | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
env: | ||
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testDevReact17 / Group ${{ matrix.group }} | ||
RECORD_ALL_CONTENT: 1 | ||
RECORD_REPLAY: 1 | ||
RECORD_REPLAY_TEST_METRICS: 1 | ||
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }} | ||
|
||
- uses: replayio/[email protected] | ||
if: always() | ||
with: | ||
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti | ||
public: true | ||
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }} | ||
|
||
- name: Upload test trace | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-trace | ||
if-no-files-found: ignore | ||
retention-days: 2 | ||
path: | | ||
test/traces | ||
testDevE2E: | ||
name: Test Development (E2E) | ||
runs-on: ubuntu-latest | ||
|
@@ -471,84 +395,6 @@ jobs: | |
path: | | ||
test/traces | ||
testDevE2EReact17: | ||
name: Test Development (E2E) (react v17) | ||
runs-on: ubuntu-latest | ||
needs: [build, build-native-test] | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
NEXT_TEST_REACT_VERSION: ^17 | ||
TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
group: [1, 2, 3] | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
node-version: 16 | ||
check-latest: true | ||
|
||
- run: echo ${{needs.build.outputs.docsChange}} | ||
|
||
# https://github.com/actions/virtual-environments/issues/1187 | ||
- name: tune linux network | ||
run: sudo ethtool -K eth0 tx off rx off | ||
|
||
- uses: actions/cache@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }}-${{ github.run_number }} | ||
|
||
- uses: actions/download-artifact@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
name: next-swc-test-binary | ||
path: packages/next-swc/native | ||
|
||
- run: npm i -g pnpm@${PNPM_VERSION} | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
timeout-minutes: 10 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npx @replayio/playwright install chromium | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3 | ||
name: Run test/e2e (dev) | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
env: | ||
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testDevE2EReact17 / Group ${{ matrix.group }} | ||
RECORD_ALL_CONTENT: 1 | ||
RECORD_REPLAY: 1 | ||
NEXT_TEST_MODE: dev | ||
RECORD_REPLAY_TEST_METRICS: 1 | ||
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }} | ||
|
||
- uses: replayio/[email protected] | ||
if: always() | ||
with: | ||
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti | ||
public: true | ||
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }} | ||
|
||
- name: Upload test trace | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-trace | ||
if-no-files-found: ignore | ||
retention-days: 2 | ||
path: | | ||
test/traces | ||
testProd: | ||
name: Test Production | ||
runs-on: ubuntu-latest | ||
|
@@ -616,72 +462,6 @@ jobs: | |
public: true | ||
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }} | ||
|
||
testProdReact17: | ||
name: Test Production (react v17) | ||
runs-on: ubuntu-latest | ||
needs: [build, build-native-test] | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
NEXT_TEST_REACT_VERSION: ^17 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
group: [1, 2] | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
node-version: 16 | ||
check-latest: true | ||
|
||
- run: echo ${{needs.build.outputs.docsChange}} | ||
|
||
# https://github.com/actions/virtual-environments/issues/1187 | ||
- name: tune linux network | ||
run: sudo ethtool -K eth0 tx off rx off | ||
|
||
- uses: actions/cache@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }}-${{ github.run_number }} | ||
|
||
- uses: actions/download-artifact@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
name: next-swc-test-binary | ||
path: packages/next-swc/native | ||
|
||
- run: npm i -g pnpm@${PNPM_VERSION} | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
timeout-minutes: 10 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npx @replayio/playwright install chromium | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: node run-tests.js --type production --timings -g ${{ matrix.group }}/2 | ||
name: Run test/production | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
env: | ||
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testProdReact17 / Group ${{ matrix.group }} | ||
RECORD_ALL_CONTENT: 1 | ||
RECORD_REPLAY: 1 | ||
RECORD_REPLAY_TEST_METRICS: 1 | ||
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }} | ||
|
||
- uses: replayio/[email protected] | ||
if: always() | ||
with: | ||
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti | ||
public: true | ||
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }} | ||
|
||
testProdE2E: | ||
name: Test Production (E2E) | ||
runs-on: ubuntu-latest | ||
|
@@ -751,74 +531,6 @@ jobs: | |
public: true | ||
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }} | ||
|
||
testProdE2EReact17: | ||
name: Test Production (E2E) (react v17) | ||
runs-on: ubuntu-latest | ||
needs: [build, build-native-test] | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
NEXT_TEST_REACT_VERSION: ^17 | ||
TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
group: [1, 2, 3] | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
node-version: ${{ matrix.node }} | ||
check-latest: true | ||
|
||
- run: echo ${{needs.build.outputs.docsChange}} | ||
|
||
# https://github.com/actions/virtual-environments/issues/1187 | ||
- name: tune linux network | ||
run: sudo ethtool -K eth0 tx off rx off | ||
|
||
- uses: actions/cache@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }}-${{ github.run_number }} | ||
|
||
- uses: actions/download-artifact@v3 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
with: | ||
name: next-swc-test-binary | ||
path: packages/next-swc/native | ||
|
||
- run: npm i -g pnpm@${PNPM_VERSION} | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
timeout-minutes: 10 | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: npx @replayio/playwright install chromium | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
|
||
- run: node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3 | ||
name: Run test/e2e (production) | ||
if: ${{needs.build.outputs.docsChange == 'nope'}} | ||
env: | ||
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testProdE2EReact17 / Group ${{ matrix.group }} | ||
RECORD_ALL_CONTENT: 1 | ||
RECORD_REPLAY: 1 | ||
NEXT_TEST_MODE: start | ||
RECORD_REPLAY_TEST_METRICS: 1 | ||
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }} | ||
|
||
- uses: replayio/[email protected] | ||
if: always() | ||
with: | ||
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti | ||
public: true | ||
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }} | ||
|
||
testIntegration: | ||
name: Test Integration | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.