Skip to content

Commit 5440cbd

Browse files
authored
[CI] updates to the CI report naming, and accelerate installation (huggingface#9429)
* chore: id accordingly to avoid duplicates. * update properly. * updates * updates * empty * updates * changing order helps?
1 parent b52119a commit 5440cbd

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

.github/workflows/nightly_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7474
python -m uv pip install -e [quality,test]
75-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
75+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
7676
python -m uv pip install pytest-reportlog
7777
- name: Environment
7878
run: |
@@ -130,8 +130,8 @@ jobs:
130130
run: |
131131
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
132132
python -m uv pip install -e [quality,test]
133-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
134133
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
134+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
135135
python -m uv pip install pytest-reportlog
136136
- name: Environment
137137
run: python utils/print_env.py
@@ -201,7 +201,7 @@ jobs:
201201
run: |
202202
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
203203
python -m uv pip install -e [quality,test]
204-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
204+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
205205
python -m uv pip install pytest-reportlog
206206
207207
- name: Environment
@@ -257,7 +257,7 @@ jobs:
257257
run: |
258258
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
259259
python -m uv pip install -e [quality,test]
260-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
260+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
261261
python -m uv pip install pytest-reportlog
262262
- name: Environment
263263
run: python utils/print_env.py
@@ -282,7 +282,7 @@ jobs:
282282
if: ${{ always() }}
283283
uses: actions/upload-artifact@v4
284284
with:
285-
name: ${{ matrix.config.report }}_test_reports
285+
name: tests_onnx_cuda_reports
286286
path: reports
287287

288288
- name: Generate Report and Notify Channel

.github/workflows/pr_test_peft_backend.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
if [ "${{ matrix.lib-versions }}" == "main" ]; then
9696
python -m pip install -U peft@git+https://github.com/huggingface/peft.git
9797
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
98-
python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
98+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
9999
else
100100
python -m uv pip install -U peft transformers accelerate
101101
fi
@@ -110,23 +110,23 @@ jobs:
110110
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
111111
python -m pytest -n 4 --max-worker-restart=0 --dist=loadfile \
112112
-s -v \
113-
--make-reports=tests_${{ matrix.config.report }} \
113+
--make-reports=tests_${{ matrix.lib-versions }} \
114114
tests/lora/
115115
python -m pytest -n 4 --max-worker-restart=0 --dist=loadfile \
116116
-s -v \
117-
--make-reports=tests_models_lora_${{ matrix.config.report }} \
117+
--make-reports=tests_models_lora_${{ matrix.lib-versions }} \
118118
tests/models/ -k "lora"
119119
120120
121121
- name: Failure short reports
122122
if: ${{ failure() }}
123123
run: |
124-
cat reports/tests_${{ matrix.config.report }}_failures_short.txt
125-
cat reports/tests_models_lora_${{ matrix.config.report }}_failures_short.txt
124+
cat reports/tests_${{ matrix.lib-versions }}_failures_short.txt
125+
cat reports/tests_models_lora_${{ matrix.lib-versions }}_failures_short.txt
126126
127127
- name: Test suite reports artifacts
128128
if: ${{ always() }}
129129
uses: actions/upload-artifact@v4
130130
with:
131-
name: pr_${{ matrix.config.report }}_test_reports
131+
name: pr_${{ matrix.lib-versions }}_test_reports
132132
path: reports

.github/workflows/pr_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
if: ${{ always() }}
171171
uses: actions/upload-artifact@v4
172172
with:
173-
name: pr_${{ matrix.config.report }}_test_reports
173+
name: pr_${{ matrix.config.framework }}_${{ matrix.config.report }}_test_reports
174174
path: reports
175175

176176
run_staging_tests:

.github/workflows/push_tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
run: |
7777
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7878
python -m uv pip install -e [quality,test]
79-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
79+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
8080
- name: Environment
8181
run: |
8282
python utils/print_env.py
@@ -127,8 +127,8 @@ jobs:
127127
run: |
128128
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
129129
python -m uv pip install -e [quality,test]
130-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
131130
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
131+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
132132
133133
- name: Environment
134134
run: |
@@ -142,20 +142,20 @@ jobs:
142142
run: |
143143
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
144144
-s -v -k "not Flax and not Onnx" \
145-
--make-reports=tests_torch_cuda \
145+
--make-reports=tests_torch_cuda_${{ matrix.module }} \
146146
tests/${{ matrix.module }}
147147
148148
- name: Failure short reports
149149
if: ${{ failure() }}
150150
run: |
151-
cat reports/tests_torch_cuda_stats.txt
152-
cat reports/tests_torch_cuda_failures_short.txt
151+
cat reports/tests_torch_cuda_${{ matrix.module }}_stats.txt
152+
cat reports/tests_torch_cuda_${{ matrix.module }}_failures_short.txt
153153
154154
- name: Test suite reports artifacts
155155
if: ${{ always() }}
156156
uses: actions/upload-artifact@v4
157157
with:
158-
name: torch_cuda_test_reports
158+
name: torch_cuda_test_reports_${{ matrix.module }}
159159
path: reports
160160

161161
flax_tpu_tests:
@@ -177,7 +177,7 @@ jobs:
177177
run: |
178178
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
179179
python -m uv pip install -e [quality,test]
180-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
180+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
181181
182182
- name: Environment
183183
run: |
@@ -225,7 +225,7 @@ jobs:
225225
run: |
226226
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
227227
python -m uv pip install -e [quality,test]
228-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
228+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
229229
230230
- name: Environment
231231
run: |

.github/workflows/release_tests_fast.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7777
python -m uv pip install -e [quality,test]
78-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
78+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
7979
- name: Environment
8080
run: |
8181
python utils/print_env.py
@@ -126,8 +126,8 @@ jobs:
126126
run: |
127127
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
128128
python -m uv pip install -e [quality,test]
129-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
130129
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
130+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
131131
132132
- name: Environment
133133
run: |
@@ -141,20 +141,20 @@ jobs:
141141
run: |
142142
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
143143
-s -v -k "not Flax and not Onnx" \
144-
--make-reports=tests_torch_cuda \
144+
--make-reports=tests_torch_${{ matrix.module }}_cuda \
145145
tests/${{ matrix.module }}
146146
147147
- name: Failure short reports
148148
if: ${{ failure() }}
149149
run: |
150-
cat reports/tests_torch_cuda_stats.txt
151-
cat reports/tests_torch_cuda_failures_short.txt
150+
cat reports/tests_torch_${{ matrix.module }}_cuda_stats.txt
151+
cat reports/tests_torch_${{ matrix.module }}_cuda_failures_short.txt
152152
153153
- name: Test suite reports artifacts
154154
if: ${{ always() }}
155155
uses: actions/upload-artifact@v4
156156
with:
157-
name: torch_cuda_test_reports
157+
name: torch_cuda_${{ matrix.module }}_test_reports
158158
path: reports
159159

160160
flax_tpu_tests:
@@ -176,7 +176,7 @@ jobs:
176176
run: |
177177
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
178178
python -m uv pip install -e [quality,test]
179-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
179+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
180180
181181
- name: Environment
182182
run: |
@@ -224,7 +224,7 @@ jobs:
224224
run: |
225225
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
226226
python -m uv pip install -e [quality,test]
227-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
227+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
228228
229229
- name: Environment
230230
run: |

0 commit comments

Comments
 (0)