From 4c650f2687647fa7d4767524ad91139dc990fbe6 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Tue, 25 Aug 2026 19:16:20 +0900 Subject: [PATCH] [SPARK-58995][INFRA] Cancel superseded CI runs with a concurrency group Add a `concurrency` group keyed on the workflow and ref with `cancel-in-progress: true` to rust.yml, lint.yml, and build_python_connect.yml, so a newer commit cancels the older, now-superseded run instead of letting stale runs pile up in the Actions queue. release.yml is intentionally left out (releases must not be cancelled); docs.yml already has this. Co-authored-by: Isaac --- .github/workflows/build_python_connect.yml | 5 +++++ .github/workflows/lint.yml | 5 +++++ .github/workflows/rust.yml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.github/workflows/build_python_connect.yml b/.github/workflows/build_python_connect.yml index e8fe9c83..f6c5cd93 100644 --- a/.github/workflows/build_python_connect.yml +++ b/.github/workflows/build_python_connect.yml @@ -19,6 +19,11 @@ name: Python Connect Parity (Spark 4.2.0) +# Cancel an in-progress run when a newer commit supersedes it (per workflow + ref). +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # Mirrors Apache Spark's build_python_connect.yml approach, adapted for the # Rust-backed client: download the Spark 4.2.0 Connect server, start it, pull the # official v4.2.0 connect test files, and run them BOTH with the reference pyspark diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ea0949af..c54657fc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,6 +19,11 @@ name: Lint +# Cancel an in-progress run when a newer commit supersedes it (per workflow + ref). +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: push: branches: [master] diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 70538ce0..8b4f37ba 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,6 +19,11 @@ name: Rust CI +# Cancel an in-progress run when a newer commit supersedes it (per workflow + ref). +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: push: branches: [master]