Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
67a7d1f6
"src/vscode:/vscode.git/clone" did not exist on "bcc570b910ec9e73ec146b17b0b60b5e6f3e4f38"
Unverified
Commit
67a7d1f6
authored
Aug 08, 2025
by
Lianmin Zheng
Committed by
GitHub
Aug 08, 2025
Browse files
Create cancel-all-pr-test-runs (#8986)
parent
92cbef59
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
13 deletions
+60
-13
.github/workflows/cancel-all-pending-pr-test-runs.yml
.github/workflows/cancel-all-pending-pr-test-runs.yml
+32
-0
.github/workflows/cancel-pr-workflow-on-merge.yml
.github/workflows/cancel-pr-workflow-on-merge.yml
+0
-0
.github/workflows/pr-test-amd.yml
.github/workflows/pr-test-amd.yml
+1
-1
.github/workflows/pr-test-npu.yml
.github/workflows/pr-test-npu.yml
+1
-1
.github/workflows/pr-test-xeon.yml
.github/workflows/pr-test-xeon.yml
+25
-11
python/pyproject.toml
python/pyproject.toml
+1
-0
No files found.
.github/workflows/cancel-all-pending-pr-test-runs.yml
0 → 100644
View file @
67a7d1f6
name
:
Cancel All Pending PR Test Runs
on
:
workflow_dispatch
:
# Manual trigger
jobs
:
cancel-pending
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Install GitHub CLI
run
:
apt-get install -y gh jq
-
name
:
Authenticate GitHub CLI
env
:
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
gh auth login --with-token <<< "$GH_TOKEN"
-
name
:
Cancel all pending/waiting pr-test.yml runs
env
:
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
REPO
:
${{ github.repository }}
run
:
|
# Get all pending or waiting runs of pr-test.yml across all branches
gh run list \
--workflow pr-test.yml \
--json databaseId,status,conclusion \
--limit 1000 \
| jq -r '.[] | select(.status=="queued" or .status=="in_progress") | .databaseId' \
| while read run_id; do
echo "Cancelling run ID: $run_id"
gh run cancel "$run_id"
done
.github/workflows/cancel-pr-workflow.yml
→
.github/workflows/cancel-pr-workflow
-on-merge
.yml
View file @
67a7d1f6
File moved
.github/workflows/pr-test-amd.yml
View file @
67a7d1f6
...
@@ -323,7 +323,7 @@ jobs:
...
@@ -323,7 +323,7 @@ jobs:
docker exec -w /sglang-checkout/sgl-kernel/tests ci_sglang python3 -m pytest test_moe_topk_softmax.py
docker exec -w /sglang-checkout/sgl-kernel/tests ci_sglang python3 -m pytest test_moe_topk_softmax.py
docker exec -w /sglang-checkout/sgl-kernel/tests/speculative ci_sglang python3 -m pytest test_eagle_utils.py
docker exec -w /sglang-checkout/sgl-kernel/tests/speculative ci_sglang python3 -m pytest test_eagle_utils.py
finish
:
pr-test-amd-
finish
:
if
:
always()
if
:
always()
needs
:
[
needs
:
[
accuracy-test-1-gpu-amd
,
mla-test-1-gpu-amd
,
bench-test-2-gpu-amd
,
accuracy-test-1-gpu-amd
,
mla-test-1-gpu-amd
,
bench-test-2-gpu-amd
,
...
...
.github/workflows/pr-test-npu.yml
View file @
67a7d1f6
...
@@ -109,7 +109,7 @@ jobs:
...
@@ -109,7 +109,7 @@ jobs:
cd test/srt
cd test/srt
python3 run_suite.py --suite per-commit-4-ascend-npu --timeout-per-file 3600
python3 run_suite.py --suite per-commit-4-ascend-npu --timeout-per-file 3600
finish
:
pr-test-npu-
finish
:
if
:
always()
if
:
always()
needs
:
needs
:
-
per-commit-1-ascend-npu
-
per-commit-1-ascend-npu
...
...
.github/workflows/pr-test-xeon.yml
View file @
67a7d1f6
name
:
PR Test (Xeon)
name
:
PR Test (Xeon)
on
:
on
:
push
:
branches
:
[
main
]
paths
:
-
"
python/**"
-
"
scripts/**"
-
"
test/**"
-
"
sgl-kernel/**"
-
"
.github/workflows/pr-test-xeon.yml"
pull_request
:
pull_request
:
branches
:
branches
:
[
main
]
-
main
paths
:
-
"
python/**"
-
"
scripts/**"
-
"
test/**"
-
"
sgl-kernel/**"
-
"
.github/workflows/pr-test-xeon.yml"
workflow_dispatch
:
workflow_dispatch
:
concurrency
:
concurrency
:
group
:
pr-test-xeon
group
:
pr-test-xeon
-${{ github.ref }}
cancel-in-progress
:
false
cancel-in-progress
:
false
jobs
:
jobs
:
build-test
:
build-test
:
if
:
github.event_name == 'pull_request'
if
:
(github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request') &&
github.event.pull_request.draft ==
false
runs-on
:
sglang-pvc
runs-on
:
sglang-pvc
strategy
:
strategy
:
matrix
:
matrix
:
...
@@ -34,16 +49,15 @@ jobs:
...
@@ -34,16 +49,15 @@ jobs:
--name ci_sglang_xeon \
--name ci_sglang_xeon \
sglang_xeon
sglang_xeon
-
name
:
Install
D
ependenc
y
-
name
:
Install
d
ependenc
ies
timeout-minutes
:
20
timeout-minutes
:
20
run
:
|
run
:
|
docker exec ci_sglang_xeon bash -c "python3 -m pip install --upgrade pip"
docker exec ci_sglang_xeon bash -c "python3 -m pip install --upgrade pip"
docker exec ci_sglang_xeon pip uninstall sgl-kernel -y || true
docker exec ci_sglang_xeon pip uninstall sgl-kernel -y || true
docker exec -w /sglang-checkout/sgl-kernel ci_sglang_xeon bash -c "cp pyproject_cpu.toml pyproject.toml && pip install -v ."
docker exec -w /sglang-checkout/sgl-kernel ci_sglang_xeon bash -c "cp pyproject_cpu.toml pyproject.toml && pip install -v ."
docker exec -w /sglang-checkout/ ci_sglang_xeon bash -c "pip install -e "python[all_cpu]""
docker exec -w /sglang-checkout/ ci_sglang_xeon bash -c "pip install -e "python[dev_cpu]""
docker exec ci_sglang_xeon bash -c "python3 -m pip install pytest expecttest"
-
name
:
Check AMX
S
upport
-
name
:
Check AMX
s
upport
id
:
check_amx
id
:
check_amx
timeout-minutes
:
5
timeout-minutes
:
5
run
:
|
run
:
|
...
@@ -51,7 +65,7 @@ jobs:
...
@@ -51,7 +65,7 @@ jobs:
bash -c "python3 -c 'import torch; import sgl_kernel; assert torch._C._cpu._is_amx_tile_supported(); assert hasattr(torch.ops.sgl_kernel, \"convert_weight_packed\"); '"
bash -c "python3 -c 'import torch; import sgl_kernel; assert torch._C._cpu._is_amx_tile_supported(); assert hasattr(torch.ops.sgl_kernel, \"convert_weight_packed\"); '"
continue-on-error
:
true
continue-on-error
:
true
-
name
:
Run
UT Case
s
-
name
:
Run
unit test
s
if
:
steps.check_amx.outcome == 'success'
if
:
steps.check_amx.outcome == 'success'
timeout-minutes
:
20
timeout-minutes
:
20
run
:
|
run
:
|
...
@@ -63,10 +77,10 @@ jobs:
...
@@ -63,10 +77,10 @@ jobs:
run
:
|
run
:
|
docker rm -f ci_sglang_xeon || true
docker rm -f ci_sglang_xeon || true
finish
:
pr-test-xeon-
finish
:
if
:
always()
if
:
always()
needs
:
[
build-test
]
needs
:
[
build-test
]
runs-on
:
ubuntu-
24.04
runs-on
:
ubuntu-
latest
steps
:
steps
:
-
name
:
Check all dependent job statuses
-
name
:
Check all dependent job statuses
run
:
|
run
:
|
...
...
python/pyproject.toml
View file @
67a7d1f6
...
@@ -105,6 +105,7 @@ torch_memory_saver = ["torch_memory_saver>=0.0.8"]
...
@@ -105,6 +105,7 @@ torch_memory_saver = ["torch_memory_saver>=0.0.8"]
decord
=
["decord"]
decord
=
["decord"]
test
=
[
test
=
[
"accelerate"
,
"accelerate"
,
"expecttest"
,
"jsonlines"
,
"jsonlines"
,
"matplotlib"
,
"matplotlib"
,
"pandas"
,
"pandas"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment