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

Use GitHub Actions concurrency #71

Open
rahulporuri opened this issue Jul 19, 2021 · 1 comment
Open

Use GitHub Actions concurrency #71

rahulporuri opened this issue Jul 19, 2021 · 1 comment

Comments

@rahulporuri
Copy link
Contributor

rahulporuri commented Jul 19, 2021

At the moment, pushing commits to a PR where GitHub Actions CI is alreaady running does not cancel the running job. Instead, the job continues running and a new job is scheduled. This is unnecessarily wasteful and adds delays to the time CI takes on our PRs.

It looks like GitHub Actions concurrency is the answer to this problem. We need to include the following in our jobs -

concurrency: 
  # These lines should have the effect of cancelling CI runs for
  # existing commits when a new commit is pushed to the PR.
  group: ${{ github.head_ref }}
  cancel-in-progress: true
@rahulporuri
Copy link
Contributor Author

Note that we should probably take this opportunity to also set the PYTHONUNBUFFERED environment variable in all github actions configuration files.

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

No branches or pull requests

1 participant