Uh oh!
There was an error while loading. Please reload this page.
feat(ci): Run yarn-deduplicate in CI - #15119
Conversation
nwalters512
commented
Feb 28, 2025
@AbhiPrasad 👋 do you have any interest in merging this? I think it'll be a net positive for the project and should make it easier to keep dependencies up-to-date. |
AbhiPrasad
commented
Mar 4, 2025
Hey @nwalters512 sorry for the delay! was on vacation and then a bunch of other things came up. I agree this is a net positive, just need to find some time to set aside to merge it in and update team process stuff for us internally. |
lforst
commented
Mar 10, 2025
E2E tests do not seem to like the deduplication. Will close for now. |
Pull request was closed
lforst
commented
Mar 10, 2025
It's probably an issue with how we defined deps in our packages but not sure. |
lforst
commented
Mar 10, 2025
Nvm, seems to fail on develop too |
nwalters512
commented
Mar 11, 2025
@lforst one potential way to narrow down the issue is to dedupe dependencies one-by-one in separate PRs until we find the one that breaks the E2E tests (currently seems to just be |
lforst
commented
Mar 12, 2025
@nwalters512 I'd love to merge this but I can't justify spending time on it. None of this is user facing unfortunately. |
nwalters512
commented
Mar 12, 2025
@lforst understood, hence my offer to continue driving this forward myself. If you don't even want to spend time reviewing other dependency bump/dedupe PRs, I'd understand that too though. |
lforst
commented
Mar 12, 2025
@nwalters512 Oh if you manage to make the tests pass please go ahead 😄 I they pass we can merge. I just won't spend time on it any longer I think. |
nwalters512
commented
Mar 12, 2025
I'll see what I can do! The fact that just changing dependencies within their semver-compatible versions can make tests fail is a bit of a red flag, so there's probably some interesting deeper issue here. |
nwalters512
commented
Mar 12, 2025
First round of this is #15639, all tests pass after deduping all |
Splitting this out of #15119 in the hope that gradually deduping things will help identify which dependency is causing the Next E2E tests to fail in that PR.
nwalters512
commented
Mar 13, 2025
I was able to get the |
nwalters512
commented
Mar 14, 2025
I've narrowed it down to |
nwalters512
commented
Mar 14, 2025
I believe Rollup is stripping properties out of an object when it shouldn't be. Here's the relevant code: Here's how it looks when things work (old version of Rollup): constgetInitialPropsWrappers={'/_app': Sentry.wrapAppGetInitialPropsWithSentry,'/_document': Sentry.wrapDocumentGetInitialPropsWithSentry,'/_error': Sentry.wrapErrorGetInitialPropsWithSentry,};And when things break (newest version of Rollup): constgetInitialPropsWrappers={}; |
nwalters512
commented
Mar 14, 2025
I opened #15651 to independently upgrade to the latest version of Rollup and fix the bug that it caused in the |
This PR introduces a CI step to use
yarn-deduplicateto ensure that packages are maximally deduped. This makes version upgrades easier and minimizes the amount of packages that need to be installed by Yarn.I added this to the lint job, as that seemed the best place for it. Happy to move it elsewhere if desired.
Related to #14968.