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

👷 Deduplicate cron GHA through workflow reuse #1899

Merged

Conversation

webknjaz
Copy link
Member

@webknjaz webknjaz commented Jul 4, 2023

This patch melts most of the separate cron workflow into the main CI workflow which it then includes as reusable.
Such an approach allows for less duplication of the same CI steps while keeping the cron workflow as a separate entity.

@webknjaz webknjaz added the skip-changelog Avoid listing in changelog label Jul 4, 2023
@webknjaz webknjaz requested a review from chrysle July 4, 2023 15:44
@webknjaz webknjaz enabled auto-merge July 4, 2023 17:04
@webknjaz webknjaz requested a review from jezdez July 4, 2023 17:04
@webknjaz webknjaz force-pushed the maintenance/gha-reusable-ci-on-cron branch 2 times, most recently from 50a0723 to 4528200 Compare July 4, 2023 17:21
Copy link
Contributor

@chrysle chrysle left a comment

Choose a reason for hiding this comment

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

LGTM, but quite complex.

@webknjaz
Copy link
Member Author

webknjaz commented Jul 4, 2023

It is a bit complex due to the slight differences. Hopefully, we'll rethink those later. I didn't know that cron tested against the pip main branch but there was also another cron in the main workflow that added the usual latest+previous. Plus, it's not really clear why we skip coverage in one of the cron runs. Maybe we could get rid of that conditional as well. That's if someone wants a follow up improvement..

This patch melts most of the separate cron workflow into the main
CI workflow which it then includes as reusable.
Such an approach allows for less duplication of the same CI steps
while keeping the cron workflow as a separate entity.
@webknjaz webknjaz force-pushed the maintenance/gha-reusable-ci-on-cron branch from 4528200 to 9c87b0e Compare July 4, 2023 18:12
@webknjaz
Copy link
Member Author

webknjaz commented Jul 4, 2023

I think I managed to simplify it a bit.

@webknjaz webknjaz merged commit 1db8ddd into jazzband:main Jul 4, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Avoid listing in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants