Skip to content

Commit 1f71411

Browse files
committed
Exclude newer packages for ci stability
Signed-off-by: Dmitry Rogozhkin <[email protected]>
1 parent 8ea8189 commit 1f71411

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

.github/workflows/_linux_accelerate.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ concurrency:
4545
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
4646
cancel-in-progress: true
4747
env:
48+
EXCLUDE_NEWER: '2025-09-22'
4849
TORCH_INDEX: '--pre --index-url https://download.pytorch.org/whl/nightly/xpu'
4950

5051
defaults:
@@ -158,7 +159,7 @@ jobs:
158159
uv pip install $TORCH_INDEX torch torchvision torchaudio
159160
# Do NOT install HF transformers or accelerate before torch as we need
160161
# very specific version of the torch and HF would bring its own.
161-
uv pip install \
162+
uv pip install --exclude-newer ${{ env.EXCLUDE_NEWER}} \
162163
junitparser \
163164
pytest \
164165
pytest-timeout \
@@ -167,8 +168,8 @@ jobs:
167168
- name: Prepare Accelerate
168169
run: |
169170
cd $WORK_DIR
170-
uv pip install -e .
171-
uv pip install -e ".[testing]"
171+
uv pip install --exclude-newer ${{ env.EXCLUDE_NEWER}} -e .
172+
uv pip install --exclude-newer ${{ env.EXCLUDE_NEWER}} -e ".[testing]"
172173
rm -rf tests_log && mkdir -p tests_log
173174
rm -rf reports
174175
cp ${{ github.workspace }}/torch-xpu-ops/.github/scripts/spec.py ./

.github/workflows/_linux_transformers.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ on:
3838
type: string
3939
default: 'v1.7.0'
4040
description: Accelerate version
41-
datasets:
42-
required: false
43-
type: string
44-
default: 'v3.6.0'
45-
description: Accelerate version
4641
transformers:
4742
required: false
4843
type: string
@@ -60,8 +55,8 @@ env:
6055
HF_HUB_DOWNLOAD_TIMEOUT: 120
6156
python: ${{ inputs.python != '' && inputs.python || '3.10' }}
6257
accelerate: ${{ inputs.accelerate != '' && inputs.accelerate || 'v1.7.0'}}
63-
datasets: ${{ inputs.datasets != '' && inputs.datasets || 'v3.6.0'}}
6458
transformers: ${{ inputs.transformers != '' && inputs.transformers || 'v4.51.3' }}
59+
EXCLUDE_NEWER: '2025-06-14'
6560
PACKAGES: |
6661
espeak-ng
6762
git-lfs
@@ -271,7 +266,7 @@ jobs:
271266
- name: Prepare OS environment
272267
run: |
273268
sudo apt-get update
274-
sudo apt-get install -y $PACKAGES
269+
sudo apt-get install -y --no-install-recommends $PACKAGES
275270
git lfs install
276271
rm -rf $VIRTUAL_ENV
277272
uv venv $VIRTUAL_ENV
@@ -288,7 +283,7 @@ jobs:
288283
torchvision==${{ needs.prepare.outputs.torchvision }} \
289284
torchaudio==${{ needs.prepare.outputs.torchaudio }} \
290285
pytorch-triton-xpu==${{needs.prepare.outputs.triton }}
291-
uv pip install \
286+
uv pip install --exclude-newer ${{ env.EXCLUDE_NEWER}} \
292287
junitparser \
293288
pytest \
294289
pytest-timeout \
@@ -298,11 +293,10 @@ jobs:
298293
run: |
299294
pwd
300295
cd transformers
301-
uv pip install \
302-
accelerate==${{ env.accelerate }} \
303-
datasets==${{ env.datasets }}
304-
uv pip install -e .
305-
uv pip install -e ".[dev-torch,testing,video]"
296+
uv pip install --exclude-newer ${{ env.EXCLUDE_NEWER}} \
297+
accelerate==${{ env.accelerate }}
298+
uv pip install --exclude-newer ${{ env.EXCLUDE_NEWER}} -e .
299+
uv pip install --exclude-newer ${{ env.EXCLUDE_NEWER}} -e ".[dev-torch,testing,video]"
306300
rm -rf logs && mkdir -p logs
307301
rm -rf reports
308302
cp ${{ github.workspace }}/torch-xpu-ops/.github/scripts/spec.py ./

0 commit comments

Comments
 (0)