-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(maven): Check each release for corresponding jar #5614
fix(maven): Check each release for corresponding jar #5614
Conversation
Do we still need cache entire results by |
Still leaves room for bugs if directory with |
As per #5538 (comment) there is a need for two levels of caching:
The goal is: if the list of releases in the XML doesn't change, then we shouldn't query the JAR files again unless a long time has elapsed. We don't want to be requerying every JAR file once every 10 minutes, for example. |
What logger messages to add? |
Test on real repo is okay |
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.
Do we have any public examples that I can test/debug against? e.g. can you give me pom.xml
that will demonstrate this filtering behaviour?
lib/datasource/maven/index.spec.ts
Outdated
'8.0.11', | ||
'8.0.12', | ||
// '8.0.11', | ||
// '8.0.12', |
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.
Should we just delete these now?
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.
Let's leave it to inform they're still in use later?
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.
Maybe, it would be nice to refactor this file
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.
Do we have any public examples that I can test/debug against? e.g. can you give me pom.xml
that will demonstrate this filtering behaviour?
lib/datasource/maven/index.ts
Outdated
|
||
if (!isValidArtifactsInfo(artifactsInfo, versions)) { | ||
artifactsInfo = {}; | ||
for (const version of versions) { |
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.
Wondering if doing this in series is too slow
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.
Good point, already made it concurrent
I have this example from the original issue, which upgrades to |
@zharinov needs refactoring to use util/http |
b1b4c92
to
2cc09c2
Compare
🎉 This PR is included in version 19.225.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Rel #5538
Closes #4471