Skip to content

Commit 03820eb

Browse files
authored
Merge branch 'main' into docs_update
2 parents 4507262 + c495418 commit 03820eb

File tree

228 files changed

+43511
-15757
lines changed

Some content is hidden

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

228 files changed

+43511
-15757
lines changed

.github/workflows/development.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python: ["3.9", "3.13"]
12+
python: ["3.10", "3.13"]
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
1818
python-version: ${{ matrix.python }}
1919
- name: Install dependencies
20-
run: pip install tox
20+
run: |
21+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
22+
pip install tox tox-pdm
2123
- name: Run quality checks
2224
run: tox -e quality
2325

@@ -44,15 +46,17 @@ jobs:
4446
runs-on: ubuntu-latest
4547
strategy:
4648
matrix:
47-
python: ["3.9", "3.13"]
49+
python: ["3.10", "3.13"]
4850
steps:
4951
- uses: actions/checkout@v4
5052
- name: Set up Python
5153
uses: actions/setup-python@v5
5254
with:
5355
python-version: ${{ matrix.python }}
5456
- name: Install dependencies
55-
run: pip install tox
57+
run: |
58+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
59+
pip install tox tox-pdm
5660
- name: Run quality checks
5761
run: tox -e types
5862

@@ -79,7 +83,7 @@ jobs:
7983
runs-on: ubuntu-latest
8084
strategy:
8185
matrix:
82-
python: ["3.9"]
86+
python: ["3.10"]
8387
steps:
8488
- uses: actions/checkout@v4
8589
- name: Set up Python
@@ -114,15 +118,17 @@ jobs:
114118
runs-on: ubuntu-latest
115119
strategy:
116120
matrix:
117-
python: ["3.9", "3.13"]
121+
python: ["3.10", "3.13"]
118122
steps:
119123
- uses: actions/checkout@v4
120124
- name: Set up Python
121125
uses: actions/setup-python@v5
122126
with:
123127
python-version: ${{ matrix.python }}
124128
- name: Install dependencies
125-
run: pip install tox
129+
run: |
130+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
131+
pip install tox tox-pdm
126132
- name: Run unit tests
127133
run: tox -e test-unit
128134

@@ -149,15 +155,17 @@ jobs:
149155
runs-on: ubuntu-latest
150156
strategy:
151157
matrix:
152-
python: ["3.9", "3.13"]
158+
python: ["3.10", "3.13"]
153159
steps:
154160
- uses: actions/checkout@v4
155161
- name: Set up Python
156162
uses: actions/setup-python@v5
157163
with:
158164
python-version: ${{ matrix.python }}
159165
- name: Install dependencies
160-
run: pip install tox
166+
run: |
167+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
168+
pip install tox tox-pdm
161169
- name: Run integration tests
162170
run: tox -e test-integration -- -m smoke
163171

.github/workflows/e2e.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# This workflow builds a Docker artifact, caches it based on the Dockerfile content,
2+
# and then runs e2e tests using that artifact.
3+
4+
name: E2E Tests
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
workflow_dispatch:
14+
15+
jobs:
16+
build-and-test:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@v4
22+
23+
# Cache the binary artifact
24+
# The key is based on the runner's OS and the hash of the Dockerfile.
25+
# If the Dockerfile changes, the hash changes, and a new cache is created.
26+
- name: Cache vLLM-sim binary
27+
id: cache-vllm-sim
28+
uses: actions/cache@v4
29+
with:
30+
# The path to the file you want to cache
31+
path: bin/llm-d-inference-sim
32+
# The unique key for the cache
33+
key: vllm-sim-binary-${{ runner.os }}-${{ hashFiles('tests/e2e/vllm-sim.Dockerfile') }}
34+
35+
# Set up Docker Buildx (required for the 'docker build -o' command)
36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v3
38+
39+
# Conditionally build the artifact
40+
# This step only runs if the cache step above did NOT find a match.
41+
# 'steps.cache-vllm-sim.outputs.cache-hit' will be 'true' if the cache was restored.
42+
- name: Build vLLM-sim artifact (if not cached)
43+
if: steps.cache-vllm-sim.outputs.cache-hit != 'true'
44+
run: |
45+
echo "Cache miss. Building artifact..."
46+
docker build . -f tests/e2e/vllm-sim.Dockerfile -o type=local,dest=./
47+
shell: bash
48+
49+
- name: Verify artifact
50+
run: |
51+
if [ -f "bin/llm-d-inference-sim" ]; then
52+
echo "Artifact found."
53+
else
54+
echo "ERROR: Artifact bin/llm-d-inference-sim not found!"
55+
exit 1
56+
fi
57+
shell: bash
58+
59+
- name: Set up Python
60+
uses: actions/setup-python@v5
61+
with:
62+
python-version: ${{ matrix.python }}
63+
- name: Install dependencies
64+
run: |
65+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
66+
pip install tox tox-pdm
67+
- name: Run E2E tests
68+
run: tox -e test-e2e
69+
shell: bash

.github/workflows/main.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
13+
python: ["3.10", "3.11", "3.12", "3.13"]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python }}
2020
- name: Install dependencies
21-
run: pip install tox
21+
run: |
22+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
23+
pip install tox tox-pdm
2224
- name: Run quality checks
2325
run: tox -e quality
2426

@@ -45,15 +47,17 @@ jobs:
4547
runs-on: ubuntu-latest
4648
strategy:
4749
matrix:
48-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
50+
python: ["3.10", "3.11", "3.12", "3.13"]
4951
steps:
5052
- uses: actions/checkout@v4
5153
- name: Set up Python
5254
uses: actions/setup-python@v5
5355
with:
5456
python-version: ${{ matrix.python }}
5557
- name: Install dependencies
56-
run: pip install tox
58+
run: |
59+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
60+
pip install tox tox-pdm
5761
- name: Run quality checks
5862
run: tox -e types
5963

@@ -80,7 +84,7 @@ jobs:
8084
runs-on: ubuntu-latest
8185
strategy:
8286
matrix:
83-
python: ["3.9"]
87+
python: ["3.10"]
8488
steps:
8589
- uses: actions/checkout@v4
8690
- name: Set up Python
@@ -115,15 +119,17 @@ jobs:
115119
runs-on: ubuntu-latest
116120
strategy:
117121
matrix:
118-
python: ["3.9", "3.13"]
122+
python: ["3.10", "3.13"]
119123
steps:
120124
- uses: actions/checkout@v4
121125
- name: Set up Python
122126
uses: actions/setup-python@v5
123127
with:
124128
python-version: ${{ matrix.python }}
125129
- name: Install dependencies
126-
run: pip install tox
130+
run: |
131+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
132+
pip install tox tox-pdm
127133
- name: Run unit tests
128134
run: tox -e test-unit
129135

@@ -150,15 +156,17 @@ jobs:
150156
runs-on: ubuntu-latest
151157
strategy:
152158
matrix:
153-
python: ["3.9", "3.13"]
159+
python: ["3.10", "3.13"]
154160
steps:
155161
- uses: actions/checkout@v4
156162
- name: Set up Python
157163
uses: actions/setup-python@v5
158164
with:
159165
python-version: ${{ matrix.python }}
160166
- name: Install dependencies
161-
run: pip install tox
167+
run: |
168+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
169+
pip install tox tox-pdm
162170
- name: Run integration tests
163171
run: tox -e test-integration -- -m smoke
164172

.github/workflows/nightly.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,35 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python: ["3.9"]
13+
python: ["3.10"]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python }}
2020
- name: Install dependencies
21-
run: pip install tox
21+
run: |
22+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
23+
pip install tox tox-pdm
2224
- name: Run link checks
2325
run: tox -e links
2426

2527
unit-tests:
2628
runs-on: ubuntu-latest
2729
strategy:
2830
matrix:
29-
python: ["3.9", "3.13"]
31+
python: ["3.10", "3.13"]
3032
steps:
3133
- uses: actions/checkout@v4
3234
- name: Set up Python
3335
uses: actions/setup-python@v5
3436
with:
3537
python-version: ${{ matrix.python }}
3638
- name: Install dependencies
37-
run: pip install tox
39+
run: |
40+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
41+
pip install tox tox-pdm
3842
- name: Run unit tests
3943
run: tox -e test-unit
4044

@@ -61,15 +65,17 @@ jobs:
6165
runs-on: ubuntu-latest
6266
strategy:
6367
matrix:
64-
python: ["3.9", "3.13"]
68+
python: ["3.10", "3.13"]
6569
steps:
6670
- uses: actions/checkout@v4
6771
- name: Set up Python
6872
uses: actions/setup-python@v5
6973
with:
7074
python-version: ${{ matrix.python }}
7175
- name: Install dependencies
72-
run: pip install tox
76+
run: |
77+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
78+
pip install tox tox-pdm
7379
- name: Run integration tests
7480
run: tox -e test-integration -- -m "smoke or sanity"
7581

@@ -96,15 +102,17 @@ jobs:
96102
runs-on: ubuntu-latest
97103
strategy:
98104
matrix:
99-
python: ["3.9", "3.13"]
105+
python: ["3.10", "3.13"]
100106
steps:
101107
- uses: actions/checkout@v4
102108
- name: Set up Python
103109
uses: actions/setup-python@v5
104110
with:
105111
python-version: ${{ matrix.python }}
106112
- name: Install dependencies
107-
run: pip install tox
113+
run: |
114+
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
115+
pip install tox tox-pdm
108116
- name: Run integration tests
109117
run: tox -e test-e2e -- -m smoke
110118

@@ -142,7 +150,7 @@ jobs:
142150
runs-on: ubuntu-latest
143151
strategy:
144152
matrix:
145-
python: ["3.9"]
153+
python: ["3.10"]
146154
steps:
147155
- name: Checkout code
148156
uses: actions/checkout@v4
@@ -153,7 +161,7 @@ jobs:
153161
with:
154162
python-version: ${{ matrix.python }}
155163
- name: Install dependencies
156-
run: pip install tox
164+
run: pip install tox tox-pdm
157165
- name: Build the package
158166
run: |
159167
export GUIDELLM_BUILD_TYPE=nightly

0 commit comments

Comments
 (0)