-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: stop ADO extension reliance on pipeline-installed Node and Yarn versions (by migrating to yarn v3) #1559
Merged
microsoft-github-policy-service
merged 14 commits into
microsoft:main
from
dbjorge:bundle-yarn
Mar 1, 2023
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0e9a615
steps 1-6 of yarn berry migration guide
dbjorge 993d23e
Steps 7-9 of yarn berry migration guide
dbjorge 22ec3a6
add workspace-tools plugin
dbjorge 29b6d10
Use a workspace ref for ado to shared dep
dbjorge 113aecf
Update lockfile for workspace ref
dbjorge 8f32270
Migrate scripts to yarn v3
dbjorge 356f63f
Update installRuntimeDependencies with yarn 3 syntax
dbjorge 23b75ef
update install-runtime-dependencies to use agent node16 and bundled yarn
dbjorge 8a9c500
fix lint issues
dbjorge 549dce0
update CI builds with updated yarn syntax
dbjorge 184eeb4
add comment explaining importance of nodePath choice
dbjorge 8e89098
add more details to new comment
dbjorge 3d5c4c5
delete obsolete lerna.json per PR comment
dbjorge 523802e
Merge branch 'main' into bundle-yarn
dbjorge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
.gitattributes | ||
.github | ||
.prettierignore | ||
.yarn | ||
**/.DS_Store | ||
**/.funcignore | ||
**/.gitignore | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: '@yarnpkg/plugin-workspace-tools' | ||
|
||
yarnPath: .yarn/releases/yarn-3.4.1.cjs |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,19 @@ | |
], | ||
"description": "This project welcomes contributions and suggestions. Most contributions require you to agree to a\r Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\r the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.", | ||
"scripts": { | ||
"build": "lerna run build --stream", | ||
"clean": "lerna run clean --stream", | ||
"cbuild": "lerna run cbuild --stream", | ||
"packages": "yarn workspaces foreach --exclude accessibility-insights-action --verbose", | ||
"build": "yarn packages --topological-dev run build", | ||
"cbuild": "yarn packages --topological-dev run cbuild", | ||
"clean": "yarn packages run clean", | ||
"format:check": "prettier --check \"**/*\"", | ||
"format:fix": "prettier --write \"**/*\"", | ||
"lint:check": "lerna run lint:check --stream", | ||
"lint:fix": "lerna run lint:fix --stream", | ||
"lint:check": "yarn packages run lint:check", | ||
"lint:fix": "yarn packages run lint:fix", | ||
"copyright:check": "license-check-and-add check -f ./license-check-and-add-config.json", | ||
"copyright:fix": "license-check-and-add add -f ./license-check-and-add-config.json", | ||
"test": "lerna run test --stream", | ||
"test:e2e": "lerna run test:e2e --stream", | ||
"docs": "lerna run docs --stream", | ||
"test": "yarn packages run test", | ||
"test:e2e": "yarn packages run test:e2e", | ||
"docs": "yarn packages run docs", | ||
"precheckin": "npm-run-all --serial copyright:check format:check cbuild lint:check test docs", | ||
"publish-code-coverage": "npx codecov" | ||
}, | ||
|
@@ -35,6 +36,7 @@ | |
"url": "https://github.com/microsoft/accessibility-insights-action/issues" | ||
}, | ||
"homepage": "https://github.com/microsoft/accessibility-insights-action#readme", | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@types/express": "^4.17.17", | ||
"@types/jest": "^29.4.0", | ||
|
@@ -55,7 +57,7 @@ | |
"jest-extended": "^3.2.4", | ||
"jest-file-snapshot": "^0.5.0", | ||
"jest-junit": "^15.0.0", | ||
"lerna": "^6.5.1", | ||
"js-yaml": "^4.1.0", | ||
"license-check-and-add": "^4.0.5", | ||
"mockdate": "^3.0.5", | ||
"npm-run-all": "^4.1.5", | ||
|
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
31 changes: 24 additions & 7 deletions
31
packages/ado-extension/src/install-runtime-dependencies.ts
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
js-yaml
is here because bundling a working.yarnrc.yml
required manipulating our base one a bit at build time. I picked this over other yaml libraries (particularly,yaml
) by asking "among widely-used and recently-maintained options, which one do we already have the latest version of in our transitive dependency tree anyway?"