6262
6363 steps :
6464 - name : Checkout repository
65- uses : actions/checkout@v6
65+ uses : actions/checkout@v4
6666
6767 - name : Install
6868 shell : bash
@@ -118,7 +118,7 @@ jobs:
118118
119119 steps :
120120 - name : Checkout repository
121- uses : actions/checkout@v6
121+ uses : actions/checkout@v4
122122
123123 - name : Install
124124 shell : bash
@@ -174,7 +174,7 @@ jobs:
174174
175175 steps :
176176 - name : Checkout repository
177- uses : actions/checkout@v6
177+ uses : actions/checkout@v4
178178
179179 - name : Install
180180 shell : bash
@@ -187,7 +187,11 @@ jobs:
187187 if [[ "$TEST_PATH" != tests/* ]]; then
188188 TEST_PATH="tests/$TEST_PATH"
189189 fi
190- python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
190+ if [ "${{ matrix.info.num_gpus }}" = "0" ]; then
191+ python "$TEST_PATH"
192+ else
193+ python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
194+ fi
191195
192196 e2e-test-precision :
193197 if : (github.event_name == 'workflow_dispatch') || (github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'run-ci-precision'))
@@ -226,7 +230,7 @@ jobs:
226230
227231 steps :
228232 - name : Checkout repository
229- uses : actions/checkout@v6
233+ uses : actions/checkout@v4
230234
231235 - name : Install
232236 shell : bash
@@ -239,7 +243,11 @@ jobs:
239243 if [[ "$TEST_PATH" != tests/* ]]; then
240244 TEST_PATH="tests/$TEST_PATH"
241245 fi
242- python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
246+ if [ "${{ matrix.info.num_gpus }}" = "0" ]; then
247+ python "$TEST_PATH"
248+ else
249+ python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
250+ fi
243251
244252 e2e-test-ckpt :
245253 if : (github.event_name == 'workflow_dispatch') || (github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'run-ci-ckpt'))
@@ -278,7 +286,7 @@ jobs:
278286
279287 steps :
280288 - name : Checkout repository
281- uses : actions/checkout@v6
289+ uses : actions/checkout@v4
282290
283291 - name : Install
284292 shell : bash
@@ -291,7 +299,67 @@ jobs:
291299 if [[ "$TEST_PATH" != tests/* ]]; then
292300 TEST_PATH="tests/$TEST_PATH"
293301 fi
294- python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
302+ if [ "${{ matrix.info.num_gpus }}" = "0" ]; then
303+ python "$TEST_PATH"
304+ else
305+ python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
306+ fi
307+
308+ e2e-test-plugin-contracts :
309+ if : (github.event_name == 'workflow_dispatch') || (github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'run-ci-plugin-contracts'))
310+ runs-on : self-hosted
311+ container :
312+ image : slimerl/slime:latest
313+ options : >
314+ --gpus all
315+ --ipc=host
316+ --shm-size=16g
317+ --ulimit memlock=-1
318+ --ulimit stack=67108864
319+ --memory=0
320+ --memory-swap=0
321+ -e http_proxy=$http_proxy
322+ -e https_proxy=$https_proxy
323+ -e HTTP_PROXY=$HTTP_PROXY
324+ -e HTTPS_PROXY=$HTTPS_PROXY
325+ -v /mnt/nvme0n1/slime_ci:/data/slime_ci
326+ -v /mnt/nvme0n1/slime_ci/models:/root/models
327+ -v /mnt/nvme0n1/slime_ci/datasets:/root/datasets
328+ strategy :
329+ fail-fast : false
330+ matrix :
331+ info : [{"num_gpus": 0, "test_file": "plugin_contracts/test_plugin_rollout_contracts.py"}, {"num_gpus": 0, "test_file": "plugin_contracts/test_plugin_runtime_hook_contracts.py"}, {"num_gpus": 0, "test_file": "plugin_contracts/test_plugin_path_loading_contracts.py"}, {"num_gpus": 0, "test_file": "plugin_contracts/test_plugin_generate_contracts.py"}]
332+ defaults :
333+ run :
334+ working-directory : ${{ github.workspace }}
335+ env :
336+ GITHUB_COMMIT_NAME : ${{ github.sha }}_${{ github.event.pull_request.number || 'non-pr' }}
337+ WANDB_API_KEY : ${{ secrets.WANDB_API_KEY }}
338+ SLIME_TEST_ENABLE_INFINITE_RUN : ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.infinite_run) || 'false' }}
339+ SLIME_TEST_USE_DEEPEP : ${{ matrix.info.use_deepep || '0' }}
340+ SLIME_TEST_USE_FP8_ROLLOUT : ${{ matrix.info.use_fp8_rollout || '0' }}
341+ SLIME_TEST_ENABLE_EVAL : ${{ matrix.info.enable_eval || '1' }}
342+
343+ steps :
344+ - name : Checkout repository
345+ uses : actions/checkout@v4
346+
347+ - name : Install
348+ shell : bash
349+ run : cd $GITHUB_WORKSPACE && pip install -e . --no-deps --break-system-packages
350+
351+ - name : Execute
352+ shell : bash
353+ run : |
354+ TEST_PATH="${{ matrix.info.test_file }}"
355+ if [[ "$TEST_PATH" != tests/* ]]; then
356+ TEST_PATH="tests/$TEST_PATH"
357+ fi
358+ if [ "${{ matrix.info.num_gpus }}" = "0" ]; then
359+ python "$TEST_PATH"
360+ else
361+ python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
362+ fi
295363
296364 e2e-test-image :
297365 if : (github.event_name == 'workflow_dispatch') || (github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'run-ci-image'))
@@ -330,7 +398,7 @@ jobs:
330398
331399 steps :
332400 - name : Checkout repository
333- uses : actions/checkout@v6
401+ uses : actions/checkout@v4
334402
335403 - name : Install
336404 shell : bash
@@ -343,7 +411,11 @@ jobs:
343411 if [[ "$TEST_PATH" != tests/* ]]; then
344412 TEST_PATH="tests/$TEST_PATH"
345413 fi
346- python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
414+ if [ "${{ matrix.info.num_gpus }}" = "0" ]; then
415+ python "$TEST_PATH"
416+ else
417+ python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
418+ fi
347419
348420
349421 e2e-test-changed-detect :
@@ -432,7 +504,7 @@ jobs:
432504
433505 steps :
434506 - name : Checkout repository
435- uses : actions/checkout@v6
507+ uses : actions/checkout@v4
436508
437509 - name : Install
438510 shell : bash
@@ -449,4 +521,4 @@ jobs:
449521 python "$TEST_PATH"
450522 else
451523 python tests/ci/gpu_lock_exec.py --count ${{ matrix.info.num_gpus }} -- python "$TEST_PATH"
452- fi
524+ fi
0 commit comments