-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[SG-39284] Upgrade yarn to the latest version #39728
Conversation
8b4ac1c
to
90f0c27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gitstart-sourcegraph, please force-push to remove the latest commit from the git history of our the repository. Removing all zip archives committed to the repo is important to avoid polluting git history with large files.
We do not want to use the Plug'n'Play feature with zero installs. It's mentioned in the issue description. Initially, we want to use the node-modules
nodeLinker
to minimize the changes required for the upgrade.
We want to upgrade to the latest version of yarn
with minimal changes required in our codebase. Mainly it should be commands and some configuration files. Let me know if you bump into any sweeping changes while working on the task.
:D thanks @valerybugakov actually we are going to ask you about it too |
90f0c27
to
e1e8ae8
Compare
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try removing web-ext
package, which is not used in the repo anymore, to remove transitive dependency on the dtrace-provider
package, which causes failure here.
Also, let's explicitly add @sentry/cli
to our package.json
to see if it resolves another issue reported by the build linked above.
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
As discussed on Slack, we may need to upgrade Yarn on |
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current state looks great! I'm still testing different commands locally and asked a couple more people to take a look. Let's merge it tomorrow if nothing comes up.
no longer seeing the issue with |
client/web/package.json
Outdated
"test:regression": "yarn task:mocha './src/regression/**/*.test.ts' --exit", | ||
"test": "yarn run -T jest --testPathIgnorePatterns end-to-end --testPathIgnorePatterns regression integration", | ||
"task:mocha": "yarn run -T cross-env TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha", | ||
"test:regression": "yarn run -T task:mocha './src/regression/**/*.test.ts' --exit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might the -T
flag here be the reason for this CI failure?
client/vscode/package.json
Outdated
@@ -224,18 +224,18 @@ | |||
"prewatch": "yarn build-inline-extensions", | |||
"vscode:prepublish": "yarn build-inline-extensions && yarn build", | |||
"build-inline-extensions": "node scripts/build-inline-extensions", | |||
"task:gulp": "cross-env NODE_OPTIONS=\"--max_old_space_size=8192\" gulp", | |||
"task:gulp": "yarn cross-env NODE_OPTIONS=\"--max_old_space_size=8192\" gulp", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the -T
flag here in the same manner we do it for the task:gulp
NPM script in the web
package?
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
…thub.com/sourcegraph/sourcegraph into contractors/SG-39284.base
ac55f0d
to
a55c0f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a couple of fixes and triggered the main-dry-run
build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Description
Setup:
Migrate:
yarn-deduplicate
package, replaceyarn deduplicate
with nativeyarn dudupe
—mutex
—silient
—ignore-script
—ignore-engine
--cwd package/path
withworkspace package_name
yarn
in front of binary script in scripts config, ex.cross-env
->yarn cross-env
client/extension-api/node_modules
.yarn/cache
Refs
Sourcegraph Issue
Gitstart Ticket
Test plan
Ensure that CI checks are green.
App preview:
Check out the client app preview documentation to learn more.