conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.22k stars 980 forks source link

[question] How to publish mulitple package in parallel? #17211

Open barnou-psee opened 4 hours ago

barnou-psee commented 4 hours ago

What is your question?

Hello, in our CI we're building for different profiles and we're uploading them. Each profile is built in parallel and when published it happens that the upload steps doesn't see the recipe uploaded but when uploading it, another profile have done it already. How do you handle those cases? I saw there is a --only-recipe option that can be used to upload only the recipe, is there an opposite? liks --only-package maybe? Is it the objective of the -p option?

Have you read the CONTRIBUTING guide?

memsharded commented 2 hours ago

Hi @barnou-psee

Thanks for your question.

This is indeed a known issue, we have this ticket to track it: https://github.com/conan-io/conan/issues/16703 As you can see there, it is labeled as "complex:huge", because it is mostly a server-side issue, and that can be challenging and require time.

I saw there is a --only-recipe option that can be used to upload only the recipe, is there an opposite? liks --only-package maybe? Is it the objective of the -p option?

I think you are close to what would solve it. As Conan has checks to avoid uploading things that are already in the server, it is possible to do the following:

There could be other possible related approaches: