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

CI: Concurrency group #926

Merged

Conversation

pmikolajczyk41
Copy link
Contributor

Currently, CI workflow will continue to run even if a new commit has been pushed to a PR branch / master. For simple Rust checks and tests this usually is just wasting resources. By introducing:

concurrency:
  group: ${{ github.ref }}-${{ github.workflow }}
  cancel-in-progress: true

(see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency) we ensure that for every branch (github.ref) the Rust workflow (github.workflow) will be run only for the newest change - the previous launches will be canceled.

@pmikolajczyk41 pmikolajczyk41 requested review from a team as code owners April 24, 2023 10:16
Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

Ooh sounds awesome; anything to speed up CI is a win for me!

@jsdw jsdw merged commit 97bd198 into paritytech:master Apr 24, 2023
@pmikolajczyk41 pmikolajczyk41 deleted the pmikolajczyk41/ci-concurrency-group branch May 29, 2023 11:24
@jsdw jsdw mentioned this pull request Jun 1, 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