Open lordjaxom opened 16 hours ago
Hi @lordjaxom
Thanks for your question.
After updating to Conan 2.7.0, I get the same JSON but Conan exits with code 1 and reports
Indeed, this was changed in Conan 2.7, considered a bug not raising an error for a couple of reasons:
conan install
fails, but a conan graph build-order
happily returns a build-order json for the same graph.invalid
or missing
cannot be used for build, even the missing
ones, because forcing their build will create a different graph that the one that was computed in the graph build-order
and that defeats the purpose of the command in the first place.Please let me know if this clarifies the change. In theory it shouldn't block the recommended build-order (without reduce) + build-order-merge later.
BTW: Is there any documentation how the CI/CD stack of conan-center-index works? I am getting the impression that our approach isn't ideal and I'm sure there a lots of ideas waiting to be discovered :-)
There is little documentation about CI processes, but we are on it, we are writing a whole new tutorial for it, see https://github.com/conan-io/docs/pull/3799. I think this can help a lot, and the plan is to finish and release it soon (a few weeks hopefully)
What is your question?
Suppose I have a recipe that can only be built on Windows. So the validate method raises ConanInvalidConfiguration on other platforms.
Previously, with Conan 2.5.0 I could do a
conan graph build-order --order-by=configuration --format=json --requires=myrecipe/1.0
, which would exit with code 0 and a node with"binary": "Invalid"
.After updating to Conan 2.7.0, I get the same JSON but Conan exits with code 1 and reports
Is this an intended behaviour change?
We are using build-order in the pipeline of our conan-center-index fork to determine which packages have to be built in which order, in case a commit changes more than one package. Since each package can yield multiple versions, we can't use --reduce, but use build-order-merge later on.
BTW: Is there any documentation how the CI/CD stack of conan-center-index works? I am getting the impression that our approach isn't ideal and I'm sure there a lots of ideas waiting to be discovered :-)
Have you read the CONTRIBUTING guide?