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

build-recipes: Add --keep-going option #4491

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hoodmane
Copy link
Member

@hoodmane hoodmane commented Feb 8, 2024

This adds a --keep-going option to build-recipes that will continue building packages even if some builds fail.
I think this will make updating the Python version or a bunch of packages less annoying.

As a followup, we should figure out how to stick the failed list somewhere we can easily use to:

  • revert updates to packages that failed to build
  • disable packages that failed to build
  • pin packages that failed to the current version so that auto update ignores them

Checklist

hoodmane and others added 2 commits February 7, 2024 17:46
This adds a --keep-going option to build-recipes that will continue building
packages even if some builds fail.

As a followup, we should figure out how to stick the failed list somewhere we
can easily use to:
 - revert updates to packages that failed to build
 - disable packages that failed to build
 - pin packages that failed to the current version so that auto update ignores them
Comment on lines +214 to +215
color = SUCCESS_BLUE if success else FAIL_RED
print(color + done_message + END_COLOR)
Copy link
Member Author

Choose a reason for hiding this comment

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

Using logger.error here just leaves an empty line on the console. I couldn't figure out how to get it to print correctly. I think this is a reasonable alternative.

Copy link
Member

Choose a reason for hiding this comment

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

That's very strange. Could you add a comment about it so we can revisit this later?

Copy link
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

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

Thanks! Indeed this will be useful when we upgrade packages.

@@ -167,6 +167,10 @@ def build_recipes(
no_deps: bool = typer.Option(
False, help="Removed, use `pyodide build-recipes-no-deps` instead."
),
keep_going: bool = typer.Option(
Copy link
Member

Choose a reason for hiding this comment

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

I think this command will not be very useful except for maintainers. So maybe add hidden=True to hide if from the help text?

)
logger.error(
"Failed to build the following packages: "
f"[bold]{format_name_list(build_state.failed_list)}[/bold]"
Copy link
Member

Choose a reason for hiding this comment

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

why not sort failed and skipped list too?

Comment on lines +214 to +215
color = SUCCESS_BLUE if success else FAIL_RED
print(color + done_message + END_COLOR)
Copy link
Member

Choose a reason for hiding this comment

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

That's very strange. Could you add a comment about it so we can revisit this later?

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.

None yet

2 participants