-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
dev/ci: deploy npm pull-through cache #38701
Comments
Alright @kalanchan and I looked at this for a few hours, and I think Verdaccio is a non-starter - the deployment we set up is at https://github.com/sourcegraph/infrastructure/pull/3655 . How it works:
Now the problems arise:
This means that no matter how hard you try with Now, if you use a registry, e.g.
It gets committed to IMO the above makes the registry proxy a complete non-starter 😬 I had expected this to work similarly to |
The alternative is to look at https://yarnpkg.com/configuration/yarnrc#httpsProxy , with something like http://www.squid-cache.org/ |
One idea from @jhchabran is to hot-patch |
It is a known issue with the If it's the only blocker for using
Not a best practice but a workaround that people came up with because of the limitations of |
Note that this is the documentation for modern versions of |
It looks like this was specifically accounted for in Yarn 2: yarnpkg/yarn#5892 (comment) I'd rather not do the hack for now if a migration is on the horizon, so I'd say this (using Yarn 2 or |
@jasongornall is there a migration on the horizon btw? Because the dirty fix could still save a lot of time is it's not coming in the next 3 weeks :D |
@jhchabran, I will create a tracking issue for GitStart to pick up. They should be able to deliver it in three weeks. I will let you know if we hit any blockers along the way. |
I did some tests over https://buildkite.com/sourcegraph/sourcegraph/builds/162466#_ and sadly, changing the registry in yarn.lock seems to tell yarn to re-download everything, even if stuff in Given the crudeness of the code to hotpatch yarn.lock, I think it's better to call it a day and wait for GitStart to update yarn to the next major version. |
@jhchabran, @bobheadxi, the Verdacio integration is unblocked by the yarn upgrade. |
Flakes as a result of npm failures have become a quite common source of failures:
https://sourcegraph.grafana.net/goto/GEAhSC6nk?orgId=1 (I think this is a correct query)
We should investigate deploying a pull-through cache for npm to mitigate these issues, such as Verdacio:
The text was updated successfully, but these errors were encountered: