Skip to content

Commit 576f833

Browse files
authored
Merge branch 'main' into dev/sbo.public
2 parents c536b7d + 2a57734 commit 576f833

File tree

379 files changed

+14471
-4499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+14471
-4499
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Automatically adds labels to PRs based on the files changed
33

44
# Router specific (Rust code in sgl-router)
5-
router:
5+
model-gateway:
66
- changed-files:
77
- any-glob-to-any-file: 'sgl-router/**/*'
88

.github/workflows/nightly-release-router.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ jobs:
6666
- name: Modify version for nightly release
6767
run: |
6868
# Get current version from pyproject.toml
69-
CURRENT_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])" 2>/dev/null || python -c "import tomli; print(tomli.load(open('pyproject.toml', 'rb'))['project']['version'])")
69+
CURRENT_VERSION=$(python -c "import tomllib; print(tomllib.load(open('bindings/python/pyproject.toml', 'rb'))['project']['version'])" 2>/dev/null || python -c "import tomli; print(tomli.load(open('bindings/python/pyproject.toml', 'rb'))['project']['version'])")
7070
# Create nightly version with date: e.g., 0.2.1.dev20250128
7171
NIGHTLY_VERSION="${CURRENT_VERSION}.dev$(date +%Y%m%d)"
7272
echo "Nightly version: $NIGHTLY_VERSION"
7373
7474
# Update pyproject.toml with nightly version (temporary, not committed)
75-
sed -i.bak "s/version = \"${CURRENT_VERSION}\"/version = \"${NIGHTLY_VERSION}\"/" pyproject.toml
75+
sed -i.bak "s/version = \"${CURRENT_VERSION}\"/version = \"${NIGHTLY_VERSION}\"/" bindings/python/pyproject.toml
7676
7777
# Verify the change
78-
cat pyproject.toml | grep "^version"
78+
cat bindings/python/pyproject.toml | grep "^version"
7979
shell: bash
8080

8181
- name: Install twine and tomli
@@ -92,6 +92,7 @@ jobs:
9292
- name: Build wheels
9393
uses: PyO3/maturin-action@v1
9494
with:
95+
working-directory: bindings/python
9596
target: ${{ matrix.target }}
9697
manylinux: ${{ matrix.manylinux || 'auto' }}
9798
args: --release --out dist --features vendored-openssl --interpreter ${{ matrix.interpreter || '3.9 3.10 3.11 3.12 3.13 3.14' }}
@@ -119,15 +120,15 @@ jobs:
119120
protoc --version
120121
121122
- name: List built packages
122-
run: ${{ matrix.ls || 'ls -lh' }} dist/
123+
run: ${{ matrix.ls || 'ls -lh' }} bindings/python/dist/
123124

124125
- name: Check packages
125-
run: twine check --strict dist/*
126+
run: twine check --strict bindings/python/dist/*
126127

127128
- uses: actions/upload-artifact@v4
128129
with:
129130
name: packages-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.manylinux || 'auto' }}
130-
path: dist/
131+
path: bindings/python/dist/
131132

132133
build-sdist:
133134
name: Build SDist
@@ -151,28 +152,29 @@ jobs:
151152
- name: Modify version for nightly release
152153
run: |
153154
# Get current version from pyproject.toml
154-
CURRENT_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])" 2>/dev/null || python -c "import tomli; print(tomli.load(open('pyproject.toml', 'rb'))['project']['version'])")
155+
CURRENT_VERSION=$(python -c "import tomllib; print(tomllib.load(open('bindings/python/pyproject.toml', 'rb'))['project']['version'])" 2>/dev/null || python -c "import tomli; print(tomli.load(open('bindings/python/pyproject.toml', 'rb'))['project']['version'])")
155156
# Create nightly version with date: e.g., 0.2.1.dev20250128
156157
NIGHTLY_VERSION="${CURRENT_VERSION}.dev$(date +%Y%m%d)"
157158
echo "Nightly version: $NIGHTLY_VERSION"
158159
159160
# Update pyproject.toml with nightly version (temporary, not committed)
160-
sed -i "s/version = \"${CURRENT_VERSION}\"/version = \"${NIGHTLY_VERSION}\"/" pyproject.toml
161+
sed -i "s/version = \"${CURRENT_VERSION}\"/version = \"${NIGHTLY_VERSION}\"/" bindings/python/pyproject.toml
161162
162163
# Verify the change
163-
cat pyproject.toml | grep "^version"
164+
cat bindings/python/pyproject.toml | grep "^version"
164165
165166
- name: Build SDist
166167
uses: PyO3/maturin-action@v1
167168
with:
169+
working-directory: bindings/python
168170
command: sdist
169171
args: --out dist
170172
rust-toolchain: stable
171173

172174
- uses: actions/upload-artifact@v4
173175
with:
174176
name: sdist
175-
path: dist/*.tar.gz
177+
path: bindings/python/dist/*.tar.gz
176178

177179
upload:
178180
name: Upload to TestPyPI

.github/workflows/nightly-test-amd.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,21 @@ jobs:
3939
run: |
4040
bash scripts/ci/amd_ci_exec.sh -e GITHUB_STEP_SUMMARY="/sglang-checkout/github_summary.md" python3 run_suite.py --suite nightly-amd --timeout-per-file 7200
4141
echo "$(<github_summary.md )" >> $GITHUB_STEP_SUMMARY
42+
43+
check-all-jobs:
44+
if: always() && (github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch')
45+
needs:
46+
- nightly-test
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Check if any job failed
50+
run: |
51+
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
52+
echo "One or more nightly test jobs failed"
53+
exit 1
54+
fi
55+
if [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
56+
echo "One or more nightly test jobs were cancelled"
57+
exit 1
58+
fi
59+
echo "All nightly test jobs passed"

.github/workflows/nightly-test-b200.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Nightly Test (Intel)
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- "python/sglang/version.py"
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: nightly-test-intel-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
# Placeholder for Intel GPU tests
19+
# Add Intel-specific nightly test workflows here when available
20+
21+
placeholder:
22+
if: github.repository == 'sgl-project/sglang'
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Placeholder
26+
run: echo "Intel nightly tests will be added here"

0 commit comments

Comments
 (0)