Skip to content

Commit 926b9c8

Browse files
committed
[CI] auto-cancel in-progress PR CI when new commits are pushed
1 parent f6d4bd3 commit 926b9c8

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

.github/workflows/amd_ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI Test on AMD
22
on: [pull_request]
33

4+
concurrency:
5+
group: "${{ github.workflow }}-${{ github.ref }}"
6+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7+
48
env:
59
PYTHON_VERSION: '3.12'
610
VENV_DIR: tilelang_ci
@@ -11,7 +15,7 @@ jobs:
1115
runs-on: [self-hosted, amd, gpu]
1216

1317
permissions:
14-
contents: write
18+
contents: write
1519

1620
steps:
1721
- name: Checkout repository
@@ -84,7 +88,7 @@ jobs:
8488
set -e
8589
REQS_HASH=$(sha256sum requirements-rocm.txt | cut -d ' ' -f 1)
8690
MARKER="${{ runner.tool_cache }}/.venv_marker_${{ env.PYTHON_VERSION }}_${REQS_HASH:0:8}"
87-
91+
8892
echo "Installing requirements"
8993
if [[ -f "$MARKER" ]] && [[ -f "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" ]]; then
9094
echo "venv exists and hash matches – reuse it"

.github/workflows/bot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bot
22

3-
on:
3+
on:
44
issue_comment:
55
types: [created]
66

@@ -36,7 +36,7 @@ jobs:
3636
- name: Build original version
3737
run: |
3838
echo "Check files to be deleted!"
39-
git clean -dxn | grep -v 'tll/' | xargs -I{} echo {}
39+
git clean -dxn | grep -v 'tll/' | xargs -I{} echo {}
4040
git clean -dxn | grep -v 'tll/' | xargs -I{} rm -rf {}
4141
echo "Delete files completed!"
4242
git checkout main

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22
on: [pull_request]
33

4+
concurrency:
5+
group: "${{ github.workflow }}-${{ github.ref }}"
6+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7+
48
env:
59
PYTHON_VERSION: '3.12'
610
VENV_DIR: tilelang_ci
@@ -10,7 +14,7 @@ jobs:
1014
runs-on: [self-hosted, nvidia]
1115

1216
permissions:
13-
contents: write
17+
contents: write
1418

1519
steps:
1620
- name: Checkout repository

.github/workflows/metal_ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI Test on Metal
22
on: [pull_request]
33

4+
concurrency:
5+
group: "${{ github.workflow }}-${{ github.ref }}"
6+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7+
48
env:
59
PYTHON_VERSION: '3.12'
610
VENV_DIR: tilelang_ci
@@ -10,7 +14,7 @@ jobs:
1014
runs-on: [macos-latest]
1115

1216
permissions:
13-
contents: write
17+
contents: write
1418

1519
steps:
1620
- name: Checkout repository

.github/workflows/publish_docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ jobs:
4141
else
4242
echo "No changes detected, skipping commit and push."
4343
fi
44-

.github/workflows/reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
'🚀'
2121
})
2222
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)