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

Configure workflow concurrency for faster feedback and avoid double runs #331

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

dbast
Copy link
Member

@dbast dbast commented Feb 6, 2023

Description

Set cancel-in-progress: true so that updates to a PR cancel still running previous workflow runs. This leads to faster CI feedback, because otherwise the builds are all queued up. Also avoiding double builds caused by the push and pull_request events being activated for all branches and thus in PRs trigger two builds for the same thing.

Inspired by https://github.com/conda/conda/blob/main/.github/workflows/tests.yml#L18

Noticed this while preparing a PR (in a repo fork) where multiple updates to a PR led to a long waiting time due the queued up builds and double triggers.

@maresb maresb merged commit cfebac2 into conda:main Feb 6, 2023
@dbast dbast deleted the ci_tuning branch February 6, 2023 13:35
@maresb
Copy link
Contributor

maresb commented Feb 6, 2023

Thanks a lot for this, it's much appreciated!

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