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

Yarn 2.3 #12134

Merged
merged 6 commits into from Oct 5, 2020
Merged

Yarn 2.3 #12134

merged 6 commits into from Oct 5, 2020

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Oct 2, 2020

Q                       A
Fixed Issues? Fixes #12125
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes? Removed @yarn/plugin-duplicates
License MIT

@nicolo-ribaudo nicolo-ribaudo added the PR: Internal 🏠 A type of pull request used for our changelog categories label Oct 2, 2020
@babel-bot
Copy link
Collaborator

babel-bot commented Oct 2, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/29237/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 2, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e118831:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@nicolo-ribaudo
Copy link
Member Author

nicolo-ribaudo commented Oct 2, 2020

@arcanis / @larixer I think there is an hoisting bug: @babel/cli has a devDependency on @babel/core@workspace:^7.11.6, but if I run yarn after updating to 2.3 then

  • ./packages/babel-cli/node_modules doesn't contain @babel/core
  • ./node_modules/@babel/core is the version from npm and not the local one.

So @babel/cli doesn't find the correct @babel/core.

@JLHwung
Copy link
Contributor

JLHwung commented Oct 2, 2020

We should force publish all packages in e2e test so we are sure that in every commit all packages are publishable. It helps evaluate whether an yarn upgrade will break some package (but not published due to not changed in certain PR).

@nicolo-ribaudo
Copy link
Member Author

nicolo-ribaudo commented Oct 2, 2020

Note that the failing e2e test is not a Babel bug, it's only failing because of the wrong resolved @babel/core.

@arcanis
Copy link
Contributor

arcanis commented Oct 2, 2020

We're going to look into it and publish a patch fix if necessary.

We're currently running Babel installs for every change to the NM linker, but we don't try to pack them. How much time does it usually take? If it's ~15mns max it's something we can consider adding to our testsuite 🤔

@nicolo-ribaudo
Copy link
Member Author

nicolo-ribaudo commented Oct 2, 2020

Our main e2e test (publish + test) takes about 10 mins: https://app.circleci.com/pipelines/github/babel/babel/3987/workflows/12f7ebbe-a212-4372-96ec-7646dbff15df/jobs/29162 + https://app.circleci.com/pipelines/github/babel/babel/3987/workflows/12f7ebbe-a212-4372-96ec-7646dbff15df/jobs/29165. However, this bug wouldn't have been caught because it is only "detected" when testing @babel/cli with an old version of @babel/core as a top-level dependency (we do this in a different e2e test).

@arcanis
Copy link
Contributor

arcanis commented Oct 2, 2020

However, this bug wouldn't have been caught because it is only "detected" when testing @babel/cli with an old version of @babel/core as a top-level dependency (we do this in our e2e tests).

Actually we run a diagnostic pass after install, so our tests should have been enough even without packing. Thankfully we just discovered why they didn't catch this problem earlier: we're still cloning the old next-8-dev branch, which doesn't have the problematic dependency pattern 😅

@arcanis
Copy link
Contributor

arcanis commented Oct 2, 2020

Can you check with the 2.3.1?

.yarnrc Outdated Show resolved Hide resolved
Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

:shipit:

@nicolo-ribaudo nicolo-ribaudo merged commit 2a3dfa0 into babel:main Oct 5, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the yarn-2.3 branch October 5, 2020 15:39
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jan 5, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot Zip project when babel is installed: ZIP does not support timestamps before 1980
5 participants