Skip to content
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

new build-order-prepare subcommand #13685

Conversation

memsharded
Copy link
Member

Changelog: Feature: New conan graph build-order-prepare for CI flows simplification
Docs: https://github.com/conan-io/docs/pull/XXXX

@memsharded memsharded added this to the 2.0.5 milestone Apr 13, 2023
@memsharded memsharded marked this pull request as ready for review April 13, 2023 16:01
@memsharded memsharded requested a review from AbrilRBS April 13, 2023 16:01
@memsharded memsharded self-assigned this Apr 13, 2023
Comment on lines +94 to +95
subparser.add_argument("ref", help="recipe to build")
subparser.add_argument("package_id", help="package to build")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we put this two arguments together so that you need to pass pkg/1.0:abc123? Your way is more explicit which might avoid confusion though..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is doable, whatever UI the team prefers.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think I agree with adding the package_id in the reference too instead of a separate argument

@conan_subcommand(formatters={"text": cli_out_write})
def graph_build_order_prepare(conan_api, parser, subparser, *args):
"""
Compute the build order of a dependency graph.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be updated

@@ -83,6 +85,37 @@ def graph_build_order(conan_api, parser, subparser, *args):
return install_order_serialized


@conan_subcommand(formatters={"text": cli_out_write})
def graph_build_order_prepare(conan_api, parser, subparser, *args):
Copy link
Contributor

@czoido czoido Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that maybe the name of the subcommand it's not so intuitive, what about something like:

  • conan graph install-prepare
  • conan graph install-config
    Maybe more explicit like this?
  • conan graph generate-install-args

@memsharded memsharded marked this pull request as draft April 14, 2023 10:08
@memsharded
Copy link
Member Author

Dropping this:

  • The build-order will embed build_args processed string
  • Adding --lockfile-overrides CLI arg that allows injecting the overrides from build-order

Continue in #13597

@memsharded memsharded closed this Apr 14, 2023
@memsharded memsharded deleted the feature/build_order_prepare branch April 14, 2023 11:04
@czoido czoido removed this from the 2.0.5 milestone May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants