This is an automated email from the ASF dual-hosted git repository. gurwls223 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 93d83c347042 [SPARK-48379][INFRA] Cancel previous builds on a PR when new commit is pushed 93d83c347042 is described below commit 93d83c347042d434064dd229164603ead6556a6d Author: Stefan Kandic <stefan.kan...@databricks.com> AuthorDate: Wed May 22 19:02:19 2024 +0900 [SPARK-48379][INFRA] Cancel previous builds on a PR when new commit is pushed ### What changes were proposed in this pull request? When there is an open PR with a build in progress and a new commit is pushed I propose that we should cancel the previous build. The exceptions are branches `master` and `branch-*` where we still want to be able to have multiple builds executing concurrently (if two PRs are merged to main at the same time we don't want to just run the build on the second one). [Concurrecy docs](https://docs.github.com/en/actions/using-jobs/using-concurrency) ### Why are the changes needed? To reduce wait times for newer commit's and save compute resources. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #46689 from stefankandic/cancelOlderBuilds. Lead-authored-by: Stefan Kandic <stefan.kan...@databricks.com> Co-authored-by: Hyukjin Kwon <gurwls...@apache.org> Signed-off-by: Hyukjin Kwon <gurwls...@apache.org> --- .github/workflows/build_main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build_main.yml b/.github/workflows/build_main.yml index 9ef52f326375..bd399691210e 100644 --- a/.github/workflows/build_main.yml +++ b/.github/workflows/build_main.yml @@ -24,6 +24,11 @@ on: branches: - '**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + # only cancel in forked repositories + cancel-in-progress: ${{ github.repository_owner != 'apache' }} + jobs: call-build-and-test: permissions: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org