-
Notifications
You must be signed in to change notification settings - Fork 360
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
[question] #3849
Comments
Hi @maitrey Thanks for your question.
This is not a Conan specific problem, this is intrinsic to any package manager with a decentralized approach, you cannot ask many package managers what packages depend on a given one in the different servers you might have packages for that package manager. The solution to this is that it is not necessary to know the consumers of a package for doing CI, in fact, even if it was possible it is still not a good approach, as it doesn't really scale. We are working right not in a new CI tutorial, and you will see there the recommended approach, like the "products pipeline". You can have a look in #3799, it is still missing some parts, but it is already very advanced, so you can read most of it. Thanks for your feedback! |
Moved this ticket to docs repo |
Thank you , I was wondering to have the lockfiles and introduce atleast 3 artifactory repositories(devel, staging and release). For branching strategy there shall be a develop branch and main. Feature branches shall be created from develop branch.At the first feature branch, stage only trigger a build do not upload artifacts to artifactory. When a PR is raised then also build and test and upload to staging repository along with lock files. Use this and pass the recipe revision to next stage where using conan list it gets all the packages from devel and finds out recursively if the rrev is matching in the lockfiles. If not match query for the graph build order and get the nodes with the help of "binary=missing". Collect and merge all the graph build orders. Since we have package names, repository and pipeline names as same, we need to trigger the correct Pipeline and only when they are successful the creator package is allowed to merge to develop. It might also be necessary to develop a queue so that if there are multiple branches in the creator package than the one that was pushed first is considered or all Pull requests are clubbed together so that the costs for the builds are controlled. After merging to develop the packages are published in the devel repo. On a regular basis the devel repo is merged to main along with same steps as for develop branch meaning that build and test , identify consumers of the package trigger their pipelines and once succesful push the artifacts to devel repo. Finally when a tag is created it shall also follow the same procedure as for main along wish publishing artifacts to release repo. |
Most likely not necessary. The
No, a |
Ok, I just upgraded to 2.7.0 and if a lockfile is present, then it says that the current package is not in the requires.If I delete the lock file locally, then its possible to get the build-order and yes you are right about binary:Build. Command that I used is:
|
What do you mean by the "current package"? Why it is not in the lockfile, maybe it should be in the lockfile? |
What is your question?
Dear Conan Folks,
Conan does not support reverse dependencies.
In that case, how does a package know its consumer?
Why is this needed as we would like to have fast feedback on already available packages from feature branches and /or pull requests via CI/CD.
Is not this an actual use-case?
Thanks!
Br,
Maitrey
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: