Skip to content

Commit c1edb03

Browse files
authored
Fix for pipeline slow test fetcher (#7824)
* update * update
1 parent 0d08370 commit c1edb03

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.github/workflows/nightly_tests.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
jobs:
2020
setup_torch_cuda_pipeline_matrix:
2121
name: Setup Torch Pipelines Matrix
22-
runs-on: ubuntu-latest
22+
runs-on: diffusers/diffusers-pytorch-cpu
2323
outputs:
2424
pipeline_test_matrix: ${{ steps.fetch_pipeline_matrix.outputs.pipeline_test_matrix }}
2525
steps:
@@ -67,19 +67,19 @@ jobs:
6767
fetch-depth: 2
6868
- name: NVIDIA-SMI
6969
run: nvidia-smi
70-
70+
7171
- name: Install dependencies
7272
run: |
7373
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7474
python -m uv pip install -e [quality,test]
7575
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
7676
python -m uv pip install pytest-reportlog
77-
77+
7878
- name: Environment
7979
run: |
8080
python utils/print_env.py
81-
82-
- name: Nightly PyTorch CUDA checkpoint (pipelines) tests
81+
82+
- name: Nightly PyTorch CUDA checkpoint (pipelines) tests
8383
env:
8484
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
8585
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
@@ -88,9 +88,9 @@ jobs:
8888
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
8989
-s -v -k "not Flax and not Onnx" \
9090
--make-reports=tests_pipeline_${{ matrix.module }}_cuda \
91-
--report-log=tests_pipeline_${{ matrix.module }}_cuda.log \
91+
--report-log=tests_pipeline_${{ matrix.module }}_cuda.log \
9292
tests/pipelines/${{ matrix.module }}
93-
93+
9494
- name: Failure short reports
9595
if: ${{ failure() }}
9696
run: |
@@ -103,7 +103,7 @@ jobs:
103103
with:
104104
name: pipeline_${{ matrix.module }}_test_reports
105105
path: reports
106-
106+
107107
- name: Generate Report and Notify Channel
108108
if: always()
109109
run: |
@@ -139,7 +139,7 @@ jobs:
139139
run: python utils/print_env.py
140140

141141
- name: Run nightly PyTorch CUDA tests for non-pipeline modules
142-
if: ${{ matrix.module != 'examples'}}
142+
if: ${{ matrix.module != 'examples'}}
143143
env:
144144
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
145145
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
@@ -148,7 +148,7 @@ jobs:
148148
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
149149
-s -v -k "not Flax and not Onnx" \
150150
--make-reports=tests_torch_${{ matrix.module }}_cuda \
151-
--report-log=tests_torch_${{ matrix.module }}_cuda.log \
151+
--report-log=tests_torch_${{ matrix.module }}_cuda.log \
152152
tests/${{ matrix.module }}
153153
154154
- name: Run nightly example tests with Torch
@@ -161,13 +161,13 @@ jobs:
161161
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
162162
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
163163
-s -v --make-reports=examples_torch_cuda \
164-
--report-log=examples_torch_cuda.log \
164+
--report-log=examples_torch_cuda.log \
165165
examples/
166166
167167
- name: Failure short reports
168168
if: ${{ failure() }}
169169
run: |
170-
cat reports/tests_torch_${{ matrix.module }}_cuda_stats.txt
170+
cat reports/tests_torch_${{ matrix.module }}_cuda_stats.txt
171171
cat reports/tests_torch_${{ matrix.module }}_cuda_failures_short.txt
172172
173173
- name: Test suite reports artifacts
@@ -218,13 +218,13 @@ jobs:
218218
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
219219
-s -v -k "not Flax and not Onnx" \
220220
--make-reports=tests_torch_lora_cuda \
221-
--report-log=tests_torch_lora_cuda.log \
221+
--report-log=tests_torch_lora_cuda.log \
222222
tests/lora
223-
223+
224224
- name: Failure short reports
225225
if: ${{ failure() }}
226226
run: |
227-
cat reports/tests_torch_lora_cuda_stats.txt
227+
cat reports/tests_torch_lora_cuda_stats.txt
228228
cat reports/tests_torch_lora_cuda_failures_short.txt
229229
230230
- name: Test suite reports artifacts
@@ -239,12 +239,12 @@ jobs:
239239
run: |
240240
pip install slack_sdk tabulate
241241
python scripts/log_reports.py >> $GITHUB_STEP_SUMMARY
242-
242+
243243
run_flax_tpu_tests:
244244
name: Nightly Flax TPU Tests
245245
runs-on: docker-tpu
246246
if: github.event_name == 'schedule'
247-
247+
248248
container:
249249
image: diffusers/diffusers-flax-tpu
250250
options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --privileged
@@ -274,7 +274,7 @@ jobs:
274274
python -m pytest -n 0 \
275275
-s -v -k "Flax" \
276276
--make-reports=tests_flax_tpu \
277-
--report-log=tests_flax_tpu.log \
277+
--report-log=tests_flax_tpu.log \
278278
tests/
279279
280280
- name: Failure short reports
@@ -302,7 +302,7 @@ jobs:
302302
container:
303303
image: diffusers/diffusers-onnxruntime-cuda
304304
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/
305-
305+
306306
steps:
307307
- name: Checkout diffusers
308308
uses: actions/checkout@v3
@@ -321,15 +321,15 @@ jobs:
321321
322322
- name: Environment
323323
run: python utils/print_env.py
324-
324+
325325
- name: Run nightly ONNXRuntime CUDA tests
326326
env:
327327
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
328328
run: |
329329
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
330330
-s -v -k "Onnx" \
331331
--make-reports=tests_onnx_cuda \
332-
--report-log=tests_onnx_cuda.log \
332+
--report-log=tests_onnx_cuda.log \
333333
tests/
334334
335335
- name: Failure short reports
@@ -344,7 +344,7 @@ jobs:
344344
with:
345345
name: ${{ matrix.config.report }}_test_reports
346346
path: reports
347-
347+
348348
- name: Generate Report and Notify Channel
349349
if: always()
350350
run: |

.github/workflows/push_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
jobs:
2222
setup_torch_cuda_pipeline_matrix:
2323
name: Setup Torch Pipelines CUDA Slow Tests Matrix
24-
runs-on: ubuntu-latest
24+
runs-on: diffusers/diffusers-pytorch-cpu
2525
outputs:
2626
pipeline_test_matrix: ${{ steps.fetch_pipeline_matrix.outputs.pipeline_test_matrix }}
2727
steps:

0 commit comments

Comments
 (0)