Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
[ProGet] Incorrect package publish date affecting policies
-
Hi @stevedennis,
I understand, an update by the end of the week would be great - thank you!
-
Hi,
Just wondering if there are any updates?
Thank you
-
Hi @amy.j,
Good news! We've decided to correct this, along with some other errant behavior with carrying over certain server-side metadata from connectors.
We are planning to ship this in the upcoming maintenance release (scheduled for August 7) via PG-3342 (FIX: Ensure correct server-side metadata (publish date, listed, deprecated) is set when adding package via pull, download, or promote from remote connectors).
This is currently in testing / code review now, asit's a bit of a riskier change. But assuming there's no issues with it, it will be available after the release.
Thanks,
Steve -
Thank you @stevedennis, really appreciated!
-
Hi, it seems like PG-3342 is open and scheduled for the next release? Did something change whilst in testing?
Thanks
-
Hi @amy.j ,
Looks like the code was actually merged in and shipped, but that status wasn't reflected on the YouTrack issue, so the note didn't get added to the release.
Anyway I've modified the status and manually updated the release notes now.
-- Dean
-
Hi @dean-houston,
Thanks for the update! After testing, the original issue appears to be resolved.
I did notice that aged package warnings are not appearing on the feeds I tested. Packages are showing as compliant, even where I would have expected an aged package warning. The package metadata is now more visible, which is helpful, but I was just wondering if you could confirm whether this functionality is working as expected, or if there is something I'm missing?
Thank you
-
Hi @amy.j ,
If the package is already cached in ProGet, then the publish date is already set. So, i would make sure to delete the package and try it again.
Otherwise, can you share more specifics? That way we can create a reproduction case.
Thanks,
Alana -
Apologies for opening this up again, would really appreciate any guidance on the below, thanks!
In our external Maven feed, org.springframework:spring-webflux 6.2.19 shows as non-compliant due to the recently published policy.
The module, sources.jar, and javadoc.jar show as published back in June (which is correct and therefore shouldn't be blocked). However, a publish date is not set for the pom file.Once the package is actually pulled into ProGet, the pom file publish date is set to the promoted date and is therefore blocked in the external feed. Also noticed a similar issue with some NuGet packages, displaying the publish date as 01/01/1900 00:00:00. Not sure if there's a bug if the publish date metadata cannot be retrieved? For some packages, the pom file just doesn't show when you look at the external feed. If you promote, it promotes without the pom file. If you explicitly download the pom file, it then appears in the external feed and can be promoted.
-
Hi @amy.j ,
I'm afraid publish dates won't work reliably on Maven feeds.
A Maven repository does not contain server-side metadata like Download Count, Publish Date, Deprecated, etc., or even a search capability It's little more than web-based file system with
maven-metadata.xmlfiles that are generally maintained by the mvn client (e.g. it will always upload a newmaven-metadata.xmlfile as part of a publish).The Maven Index file (i.e.
nexus-maven-repository-index.gz) attempted to solve the lack of metadata, but it's quite problematic these days (it's like 20-30GB at this point) and is generally disabled by default in most other products (e.g. Artifactory, Sona). On of the problems is that the file does not contain entries for all artifacts, including the.pom.Publish date is part of the NuGet API, but old packages or some servers may not maintain. It's server-side metadata (like download count), and some basic repositories will just use default dates and 0.
Thanks,
Alana -
Thanks Alana for the clarification regarding Maven metadata and publish dates.
Our challenge is that feed policies are currently used as part of an automated promotion process. If a .pom file has no upstream publish date and ProGet falls back to the cache/promote date, older packages can be incorrectly treated as newly published and become non-compliant.
Given that publish date metadata is not reliably available for Maven repositories, is there a recommended workaround or best practice for Maven feeds?
What would Inedo recommend as an alternative approach for implementing newly published package controls where publish date information is unavailable or inconsistent? Would you recommend changing our approach for Maven packages altogether?
Thank you!
-
Also there seems to be an issue with pulling in certain jar files, eg, when org.springframework:spring-webflux 6.2.19 is promoted no jar file is listed - so cannot be consumed. This has happened for a few packages. I'm not sure if this is a behaviour due to the policy that is set, however other required files are pulled through?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login