-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
removing the central cache has seemingly broken dependabot (sometimes!) #3919
Comments
nb: I filed a ticket for DB (which is private and can not share :-/ https://support.github.com/ticket/personal/0/2551888) |
Response from GitHub.
|
That seems complicated. Does that mean that the repo.jenkins-ci.org response (HTTP 200) will confuse dependabot if a snapshot release was published to repo.jenkins-ci.org for any artifact that hosts its releases on Maven central? Is there a reasonable way to configure the artifact repository to never respond with a snapshot release? If that configuration exists and we enable it, would that have other side effects? Is there a reasonable way to identify existing artifacts that are officially distributed by Maven central but have a snapshot published on repo.jenkins-ci.org? |
indeed - I would say that DB is broken... the amount of artifacts that this can affect is huge - alsmost anything that is published to a different repo will by its nature have non central first.
yup - that is exactly the case here I beleive.
Yes - but then we would need a different proxy group for snapshots and to publish new parent poms.
not just a snapshot - anything that had a private build. |
clearly there is a misunderstanding of Maven by the support staff as you never add central as a repository - it is implicit. and as for removing a stale entry - if it was a release version that would break things that still needed that version. (you never delete a version). but anyway... |
Any recommendation for next steps? Some alternatives:
|
Not sure I have any. I filed this mainly as an awareness task rather than expecting it to be solved. |
Same problem with Mina thanks to https://repo.jenkins-ci.org/public/org/apache/sshd/sshd-core/maven-metadata.xml existing. Dependabot CLI log
|
Deleting snapshots from Artifactory when we detect the issue seems like a reasonable next step, especially if the snapshots are over a year old. That wouldn't have helped in this case, though, since there we have a non-snapshot: https://repo.jenkins-ci.org/public/org/apache/sshd/sshd-core/0.11.0-sshd-314-1/ When publishing our own releases of upstream software, I would recommend against using the same group ID and artifact ID, but that doesn't help in the case of existing old releases. We could delete them (that one is from 2014), but this might risk breaking old builds. If the artifact is old enough, maybe we can accept that for the sake of cleaning up our repository. |
As far as I can tell this is caused by dependabot/dependabot-core#5872 potentially misinterpreting the Maven docs ("for artifacts" might not include |
Updates `org.apache.sshd:sshd` from 2.12.0 to 2.12.1 - [Release notes](https://github.com/apache/mina-sshd/releases/tag/sshd-2.12.1) - [Changelog](https://github.com/apache/mina-sshd/blob/master/docs/changes/2.12.1.md) Was not recommnded by Dependabot due to a bug in Dependabot. More details in jenkins-infra/helpdesk#3919 (comment)
FWIW, see #4173 and jenkinsci/jenkins#9459 (changing from Dependabot to Renovabot). |
Service(s)
Artifactory
Summary
jenkinsci/kubernetes-client-api-plugin#247 (comment)
dependabot is looking for updates in repos - it does this by using the list of repositories and obtaining the
maven-metadata.xml
for each in turn.it appears as though as soon as a repository returns
200
it no longer consults other repositories.in the above ticket it can be seen that the metadata for
io.fabric8:kubernetes-client
is contained https://repo.jenkins-ci.org:443/public/io/fabric8/kubernetes-client/maven-metadata.xml (it is a snapshot version).this confuses DB as it thinks that is all that is available and no longer proposes updates from central.
Whilst this appears to be a DB bug (the metadata being served is only SNAPSHOTs) this could have a wider impact for our API like plugins so filing here incase there is somethinh we can do.
Reproduction steps
publish a snapshot to repo.jenkins-ci.org for an artifact that is public. (an old version will do)
sit back and wait for the maintainer to publish a new release to central
sit back and wait for dependabot to not propose an update.
notice it will not arrive.
The text was updated successfully, but these errors were encountered: