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

Add concurrency to the GitHub workflows to auto-cancel older runs of some actions in PRs. #5327

Closed
langleyd opened this issue Feb 23, 2022 · 0 comments · Fixed by #5328
Closed
Assignees
Labels
X-DevOps Issues that require some infrastructure support

Comments

@langleyd
Copy link
Member

langleyd commented Feb 23, 2022

Within a particular PR we currently run actions for every commit. Some of these are very resource heavy like integration tests.
While we might want to run these for every commit on develop and main branches, within a PR we can probably afford to cancel jobs for all but the most recent commit.

For main and develop github.sha can be used in the group id to ensure every commit starts a job.
For feature branches github.ref in the group id to ensure all but the most recent job are cancelled.

Candidates for concurrency in PR branches are:

  • Integration test
  • Unit tests
  • GPlay/FDriod Builds
  • Quality checks

Example on element-ios -> element-hq/element-ios#5101

Documentation on concurrency -> https://docs.github.com/en/actions/using-jobs/using-concurrency

@langleyd langleyd added the X-DevOps Issues that require some infrastructure support label Feb 23, 2022
@langleyd langleyd self-assigned this Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
X-DevOps Issues that require some infrastructure support
Projects
None yet
1 participant