Repository navigation
[next][tests][examples] pin fixtures and set up auto updates - #12979
Conversation
🦋 Changeset detectedLatest commit: 1478b72 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| github-token: ${{ secrets.GH_TOKEN_PULL_REQUESTS }} | ||
| script: | | ||
| const script = require('./utils/update-next.js') | ||
| await script({ github, context, tag: 'canary' }) |
There was a problem hiding this comment.
calls the script targeting the canary tag
| workflow_dispatch: | ||
| # Run every 10 minutes https://crontab.guru/every-10-minutes | ||
| schedule: | ||
| - cron: '*/10 * * * *' |
There was a problem hiding this comment.
run every 10 minutes for canary checks
| script: | | ||
| const script = require('./utils/update-next.js') | ||
| await script({ github, context }) | ||
| await script({ github, context, tag: 'latest' }) |
There was a problem hiding this comment.
existing script updated to explicitly update some fixtures to the latest tag
| "lint": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .", | ||
| "test": "vitest run --passWithNoTests", | ||
| "test:watch": "vitest", | ||
| "prepare": "husky install" |
There was a problem hiding this comment.
the husky stuff just gets in the way
| { | ||
| "dependencies": { | ||
| "next": "canary", | ||
| "next": "15.2.0-canary.33", |
There was a problem hiding this comment.
This is the point of the whole PR. These canary tests fail somewhat often for various reasons, blocking other work in this repository.
By pinning these versions, we isolate some of these failures to only a single PR that updates next versions (from the utils/update-next.js script).
| if (updatePackageJson(pkgJsonFile, newVersion)) { | ||
| updatedCount++; | ||
| } | ||
| continue; |
There was a problem hiding this comment.
This was preventing the script from processing all of the fixtures.
| ) { | ||
| console.log(`Branch ${branch} already exists, skipping update.`); | ||
| return; | ||
| if (pkgJson.ignoreNextjsUpdates) { |
There was a problem hiding this comment.
This ignoreNextjsUpdates value was removed from over 100 fixtures in this PR so that the canary fixtures can be pinned. Any fixture with this value that was already pinned to an old version was left in place.
Co-authored-by: Austin Merrick <[email protected]>
Co-authored-by: Austin Merrick <[email protected]>
| }, | ||
| "dependencies": { | ||
| "@jimmy/common": "^1.0.64", | ||
| "next": "^9.1.4", |
There was a problem hiding this comment.
should this be updated?
There was a problem hiding this comment.
This fixture is for next-offline, which appears to have been abandoned for 4 years. I couldn't get it to pass anymore, even pinning it to the supported versions of Next and React of the time.
Is it OK to remove this?
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @vercel/[email protected] ### Minor Changes - Support process tracing ([#12894](#12894)) ## [email protected] ### Minor Changes - Support process tracing ([#12894](#12894)) ### Patch Changes - Fixed bug where rewrites would be applied twice in some cases ([#13040](#13040)) - Updated dependencies \[[`cc0b7194b119f72f59f77f9fba7e7a1188dac03c`](cc0b719), [`7e1ee69be35db77d7692c07f5eab255ce24399de`](7e1ee69), [`1f1186f26c6189c36098c76e3acda69ccb1790e0`](1f1186f), [`6a4c779704d777e11370a19df5bcba168dd6dd48`](6a4c779)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Minor Changes - Support process tracing ([#12894](#12894)) ### Patch Changes - Fixed bug where rewrites would be applied twice in some cases ([#13040](#13040)) - pin fixtures and set up auto updates ([#12979](#12979)) ## @vercel/[email protected] ### Minor Changes - Add support for custom server entrypoint in React Router apps ([#13043](#13043)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`cc0b7194b119f72f59f77f9fba7e7a1188dac03c`](cc0b719)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`cc0b7194b119f72f59f77f9fba7e7a1188dac03c`](cc0b719)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`cc0b7194b119f72f59f77f9fba7e7a1188dac03c`](cc0b719)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
In #12979 the version for these test fixtures was locked to a specific Next.js canary which can cause us to miss regressions as no job is checking for failures on latest canary. We plan to migrate these tests out of this repo with the new adapter setup but we can't leave this in a potentially broken state letting our users encounter bugs we could have caught if we didn't have these locked. x-ref: https://vercel.slack.com/archives/C02CDC2ALJH/p1744481510502349
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @vercel/[email protected] ### Minor Changes - Support process tracing ([#12894](vercel/vercel#12894)) ## [email protected] ### Minor Changes - Support process tracing ([#12894](vercel/vercel#12894)) ### Patch Changes - Fixed bug where rewrites would be applied twice in some cases ([#13040](vercel/vercel#13040)) - Updated dependencies \[[`90dd70d026529fe592da78492536a83658432283`](vercel/vercel@90dd70d), [`0d025a1fe736563b876df7619e750e1552ac2ad3`](vercel/vercel@0d025a1), [`b4110af6ee40e3c0f617f38e1194c0ac6b8852e3`](vercel/vercel@b4110af), [`a3b803f90bd4fd3e81a52b44e118923ef7a110ad`](vercel/vercel@a3b803f)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Minor Changes - Support process tracing ([#12894](vercel/vercel#12894)) ### Patch Changes - Fixed bug where rewrites would be applied twice in some cases ([#13040](vercel/vercel#13040)) - pin fixtures and set up auto updates ([#12979](vercel/vercel#12979)) ## @vercel/[email protected] ### Minor Changes - Add support for custom server entrypoint in React Router apps ([#13043](vercel/vercel#13043)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`90dd70d026529fe592da78492536a83658432283`](vercel/vercel@90dd70d)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`90dd70d026529fe592da78492536a83658432283`](vercel/vercel@90dd70d)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`90dd70d026529fe592da78492536a83658432283`](vercel/vercel@90dd70d)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
In vercel/vercel#12979 the version for these test fixtures was locked to a specific Next.js canary which can cause us to miss regressions as no job is checking for failures on latest canary. We plan to migrate these tests out of this repo with the new adapter setup but we can't leave this in a potentially broken state letting our users encounter bugs we could have caught if we didn't have these locked. x-ref: https://vercel.slack.com/archives/C02CDC2ALJH/p1744481510502349
Having these tests run against
next@canaryandreact@latestallows changes in those projects to break the tests unpredictably. This happens somewhat often, disrupting other work in this repo that happens to touch the builder interface or some other global invalidation of the turbo cache.In order to bring those breaks to a predictable (and singular) place, this PR pins the Next versions to their current resolved values. There is already a cron set up to update these, which has been fixed in this PR to work more completely.
After this merges, when a new version of
next@canaryis published, a new PR will be opened to this repo with that change, scoping any breaks to that PR.Key Changes:
packages/nextcanary fixturesignoreNextjsUpdatesfrom most next fixtures, but left it where it appeared we wanted to test specific old versionsConsiderations:
react@latestto its resolved value?