Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

sonatype.org is erring with 'too many requests' on CI #922

Closed
rkirov opened this issue Sep 10, 2019 · 8 comments
Closed

sonatype.org is erring with 'too many requests' on CI #922

rkirov opened this issue Sep 10, 2019 · 8 comments

Comments

@rkirov
Copy link
Contributor

rkirov commented Sep 10, 2019

I restarted it three times and always fails the same way - https://circleci.com/gh/angular/clutz/483?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

Hopefully it is intermittent.

@DominicKramer
Copy link
Contributor

DominicKramer commented Sep 10, 2019

It also doesn't sometimes work on my local machine. Sometimes it works though.

@rkirov
Copy link
Contributor Author

rkirov commented Sep 10, 2019

I don't know enough about Maven ecosystem, but maybe there is another mirror to use?

@DominicKramer
Copy link
Contributor

I don't know why we are not using Maven Central. @concavelenz do you have a suggestion for a better mirror?

@DominicKramer
Copy link
Contributor

It looks like closure-compiler-1.0-SNAPSHOT.jar is not in Maven Central, which is why we can't just us it.

@shicks
Copy link
Contributor

shicks commented Sep 10, 2019

I don't really understand it, but Sonatype is how we get our jars onto Maven. As far as I'm aware, everyone at Google uses it.

@DominicKramer
Copy link
Contributor

Here is a great resource here about the differences between Maven Central, JCenter, and sonatype.org.

TL;DR
Maven Central is the central place where all jars are stored. Next, JCenter is a newer superset of Maven Central, can have better download performance in some regions, and is the default repo used in Android projects and in build scripts made with gradle init.

https://oss.sonatype.org/content/repositories/snapshots is the location where releases are staged before they are released to Maven Central.

Since clutz is relying on the -SNAPSHOT version of closure compiler, we need to get it from https://oss.sonatype.org/content/repositories/snapshots. This is because -SNAPSHOT versions are special in Maven and specify the latest development version. On every build, when Maven resolves dependencies, it will always try the remote repository to get the latest -SNAPSHOT (as apposed to explicit versions that are cached).

Since clutz is relying directly on the development head of closure compiler, we need to use https://oss.sonatype.org/content/repositories/snapshots.

Long story short, we can't just use JCenter or Maven Central. Because of that I'm going to close this.

@rkirov
Copy link
Contributor Author

rkirov commented Sep 11, 2019

This keeps on failing, which means we have no recourse other than turning off tests :( Maybe it is time to switch to internal first development.

@alexeagle
Copy link
Contributor

If you care to make 3p development work, I can solve this problem for you, just have JSCompiler and clutz in the same build. Using Bazel to solve this problem in open-source gives you the same-shaped solution as using Blaze to solve the problem in Piper.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants