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

JCenter not up-to-date #5782

Closed
ejona86 opened this issue May 23, 2019 · 10 comments
Closed

JCenter not up-to-date #5782

ejona86 opened this issue May 23, 2019 · 10 comments
Milestone

Comments

@ejona86
Copy link
Member

ejona86 commented May 23, 2019

Looking at https://jcenter.bintray.com/io/grpc/, I see:

Have 1.21.0:
all, api, auth, context, core, netty, netty-shaded, okhttp, protobuf-lite, protobuf-nano, protobuf, services, stub, testing, protoc-gen-grpc-java

Missing 1.21.0:
alts, android, benchmarks, bom, grpclb, interop-testing

I'm going to give it another day. If they don't show up I'll file yet another issue with JCenter.

@ejona86
Copy link
Member Author

ejona86 commented May 23, 2019

I didn't include grpc-testing-proto in the list, because it was weird and I needed to look into it a bit more. I checked Maven Central and it looks normal. It is missing v1.19.0, 1.20.0, and now 1.21.0. https://jcenter.bintray.com/io/grpc/grpc-testing-proto/

@ejona86
Copy link
Member Author

ejona86 commented May 24, 2019

Now have 1.21.0: android, bom
Still missing 1.21.0: alts, benchmarks, grpclb, interop-testing
(And of course, testing-proto)

Well... that's progress. Give it another day?

@ejona86 ejona86 added this to the Next milestone May 24, 2019
@ejona86 ejona86 self-assigned this May 24, 2019
@ejona86
Copy link
Member Author

ejona86 commented May 31, 2019

Now have 1.21.0: alts, grpclb
Still missing 1.21.0: benchmarks, interop-testing
(And of course, testing-proto)

Seems it's time to file an issue.

@ejona86
Copy link
Member Author

ejona86 commented Jun 27, 2019

Interop-testing and benchmarks now showing up. That leaves just testing-proto.

@creamsoup creamsoup assigned creamsoup and unassigned ejona86 Jul 8, 2019
@creamsoup
Copy link
Contributor

creamsoup commented Jul 8, 2019

also all of v1.22.0s are still missing. i'll file a bug for them. will wait for the fake request to jcenter works or not

@creamsoup creamsoup changed the title JCenter not up-to-date with v1.21.0 JCenter not up-to-date Jul 8, 2019
@creamsoup
Copy link
Contributor

jcenter has libs-release-bintray (https://repo.jfrog.org/artifactory/libs-release-bintray/io/grpc/) which has all the missing stuff (seems like this is the central cache).

so if the original jcenter (https://jcenter.bintray.com/io/grpc/) doesn't have the file. the jcenter redirects to libs-release-bintray. so even if we don't see it from jcenter ui. users can download from the jcenter. I ran a script to download all the new versions. I purposely didn't trigger missing testing-proto artifacts to see if this triggers jcenter to update the jcenter artifactory (and most importantly the ui) or not.

@ejona86
Copy link
Member Author

ejona86 commented Jul 8, 2019

So in further testing, it seems most files are seeing updates appropriately, but not maven-metadata.xml. Since we use versions like [1.22.0] for grpc-core and grpc-api, maven/gradle download the maven-metadata.xml for the version list. Since the maven-metadata.xml is old, maven/gradle don't find a compatible version. Explicitly listing grpc-core and grpc-api as dependencies can cause gradle (dunno about maven) to avoid needing to download maven-metadata.xml. Using the BOM did not change gradle's behavior.

@creamsoup
Copy link
Contributor

I reported the pinned version issue to the support of jcenter.

even though we released 2 new versions (1.22.0, 1.22.1) and explicitly requested artifacts to hint the jcenter, nothing is added. even the testing-proto is still at the 1.18.0. i'll keep an eye on it.

@creamsoup
Copy link
Contributor

up to dated (up to 1.21.1):
all, api, context, core, netty, okhttp, protobuf-lite, protobuf, services, stub, protoc-gen-grpc-java

missing 1.21.1:
alts, android, auth, benchmarks, bom ,grpclb, interop-testing, netty-shaded, protobuf-nano, testing

missing update since 1.18.0:
testing-proto

@ejona86
Copy link
Member Author

ejona86 commented Aug 12, 2020

This problem has continued virtually for every release. We have a pretty good understanding of which types of files fail to be updated in JCenter. There does not seem to be any real options available to resolve this. This was worked around in #7291. Closing since we aren't planning to spend additional time tracking this.

We suggest users that like JCenter should have JCenter as their first repository so it will be used most heavily, but have mavenCentral as a fallback in case JCenter is out-of-date.

@ejona86 ejona86 closed this as completed Aug 12, 2020
@ejona86 ejona86 modified the milestones: Next, 1.32 Aug 12, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2021
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

2 participants