-
Notifications
You must be signed in to change notification settings - Fork 213
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
kie-issues#1750: Try Maven Central before hitting repository.apache.org
#3816
base: main
Are you sure you want to change the base?
Conversation
We have noticed some builds causing many 404 errors on `repository.apache.org`, causing GitHub Actions runners to be banned (https://infra.apache.org/infra-ban.html). Looking at various logs, it looks like this workflow may be one of the jobs triggering this problem. Including Maven Central explicitly in the repositories section will make Maven check that repository first, which should help a lot.
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.
[INFO] Downloading from apache-public-repository-group: https://repository.apache.org/content/groups/public/com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.pom
[INFO] Downloading from jenkins-releases: https://repo.jenkins-ci.org/releases/com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.pom
[INFO] Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.pom
[INFO] Downloaded from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.pom (11 kB at 277 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.pom (11 kB at 39 kB/s)
@raboof thx for the PR and bring to our attention the issue. we have other repos as part of kie: drools, optaplanner, kogito-apps, kie-tools looks like we might to review all of them |
repository.apache.org
repository.apache.org
I guess an alternative is just to change that line --->
|
I wasn't sure the ASF repo's were only used for snapshots - if so that'd make sense to do as well. |
@raboof Of course, that makes sense - I approved your change, so I agree with your proposal. My scope was to share that alternative with the rest of the team because it's currently used in other KIE repos. |
Part of apache/incubator-kie-issues#1750
Description:
We have noticed some builds causing many 404 errors on
repository.apache.org
, causing GitHub Actions runners to be banned (https://infra.apache.org/infra-ban.html).Looking at various logs, it looks like this workflow may be one of the jobs triggering this problem. Including Maven Central explicitly in the repositories section will make Maven check that repository first, which should help a lot.
Please make sure that your PR meets the following requirements:
Issue-XYZ Subject
[0.9.x] Issue-XYZ Subject
How to replicate CI configuration locally?
Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.
build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.