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

build: migrate to Yarn v1 from npm v7 #1141

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

petermetz
Copy link
Contributor

@petermetz petermetz commented Jul 16, 2021

Dependencies

Depends on #1111

Commit to review

Author: Peter Somogyvari peter.somogyvari@accenture.com
Author Date: Thu Jul 15 2021 22:10:04 GMT-0700 (Pacific Daylight Time)
Committer: Peter Somogyvari peter.somogyvari@accenture.com
Committer Date: Thu Jul 15 2021 22:12:29 GMT-0700 (Pacific Daylight Time)

build: migrate to Yarn v1 from npm v7

Why?
It was reported by other maintainers that yarn behaves much
better in corporate proxy/firewalled environments.

Future plans: Once Berry (Yarn v2) is stable, we should take
a look at migrating onto that one. I did give it a try this
time to see if their release candidate happened to be stable
enough but it was not unfortunately (there were dependency
resolution issues that lead the Yarn v2 not installing
certain runtime dependencies at all so v1 it is for now)

Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com

@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2021

Codecov Report

Merging #1141 (56abb24) into main (291dd3b) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1141      +/-   ##
==========================================
- Coverage   73.19%   73.15%   -0.05%     
==========================================
  Files         246      246              
  Lines        8619     8620       +1     
  Branches      996      996              
==========================================
- Hits         6309     6306       -3     
- Misses       1779     1783       +4     
  Partials      531      531              
Impacted Files Coverage Δ
...s-cmd-api-server/src/main/typescript/api-server.ts 85.47% <100.00%> (+0.04%) ⬆️
...t-tooling/src/main/typescript/common/containers.ts 73.66% <0.00%> (-1.65%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 291dd3b...56abb24. Read the comment docs.

@petermetz petermetz marked this pull request as ready for review July 16, 2021 16:42
@petermetz petermetz self-assigned this Jul 16, 2021
@petermetz petermetz added dependencies Pull requests that update a dependency file Developer_Experience labels Jul 16, 2021
@petermetz petermetz added this to the v0.7.0 milestone Jul 16, 2021
@petermetz petermetz force-pushed the deps-yarn-v1 branch 3 times, most recently from f1e9a39 to 3461a25 Compare July 17, 2021 02:54
Copy link
Contributor

@jonathan-m-hamilton jonathan-m-hamilton left a comment

Choose a reason for hiding this comment

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

LGTM

@petermetz petermetz removed the request for review from kikoncuo July 19, 2021 19:18
@petermetz petermetz force-pushed the deps-yarn-v1 branch 2 times, most recently from 12ba79c to dedb650 Compare July 20, 2021 17:53
@github-actions
Copy link

🎉 Great news! Looks like all the dependencies have been resolved:

💡 To add or remove a dependency please update this issue/PR description.

Brought to you by Dependent Issues (:robot: ). Happy coding!

@petermetz petermetz force-pushed the deps-yarn-v1 branch 2 times, most recently from 75e93d6 to 4776d81 Compare July 21, 2021 03:31
Why?
It was reported by other maintainers that yarn behaves much
better in corporate proxy/firewalled environments.

Future plans: Once Berry (Yarn v2) is stable, we should take
a look at migrating onto that one. I did give it a try this
time to see if their release candidate happened to be stable
enough but it was not unfortunately (there were dependency
resolution issues that lead the Yarn v2 not installing
certain runtime dependencies at all so v1 it is for now)

Also:
1. Made the CI not fail fast along the test matrix dimensions
2. Sequentialized the test:all script to always run one test at a time
hoping to get some additional insight into the flaky tests this way.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@petermetz petermetz merged commit a3d84ec into hyperledger-cacti:main Jul 21, 2021
@petermetz petermetz deleted the deps-yarn-v1 branch July 21, 2021 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Developer_Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants