-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
What is your question?
Not sure if this is a bug or intentional for some reason.
A conan config change (core.package_id:default_python_mode in global.conf) caused our conan installs to search for different package ids, which were then missing because the recipe revisions that were locked in lockfiles did not have packages for the new config. To address this, we used -b missing in CI and wrote json output to a graph, then ran conan list on the graph and finally an upload on the list, causing the missing packages to be built and uploaded to Artifactory.
So far, everything worked well and projects that locked these revisions could find and install the new packages.
However, when updating lockfiles with -u to get the latest revision, we noticed that the rebuilt revisions are now being picked up as the latest. Checking in Artifactory confirms that the recipe revision .timestamp files have changed for the revisions that we uploaded new packages for.
This is a problem because it means that the revision that is actually supposed to be the latest either needs to be rebuilt and reuploaded or the timestamp manually edited to make it the latest revision again. And since the latest revision is already built with the new config before rebuilding the older revision upload of the latest revision is skipped, making it hard to restore the latest revision (though I guess force uploading may help if that also changes the timestamp). Wouldn't it make more sense if only the .timestamp files in the added packages were new and not the one for the recipe revision, since the recipe hasn't changed?
We are using conan 2.4.1 and Artifactory 7.55.10.
Is there some reason I'm not aware of why the recipe timestamp needs to change or is this a bug? Would it make sense with a feature request to add a flag to the conan upload command to upload packages without altering the recipe timestamp in order to simply add additional packages without changing the order of revs?
Have you read the CONTRIBUTING guide?
- I've read the CONTRIBUTING guide