-
Notifications
You must be signed in to change notification settings - Fork 31.7k
[CI] Automatic rerun of certain test failures #36694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c72b67c
dev-ci
gante be44144
dev-ci
gante 3d10d02
dev-ci
gante 7ac13ce
dev-ci
gante 48dedf0
dev-ci
gante 935d160
dev-ci
gante 65ccbee
dev-ci
gante 22a4df5
dev-ci
gante bb8f689
dev-ci
gante 20d15bf
dev-ci
gante a7f36dd
dev-ci
gante 5a4c6cc
dev-ci
gante c069c64
dev-ci
gante e4a4f9b
dev-ci
gante ef8a6f2
dev-ci
gante File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,13 @@ | ||
| FROM python:3.9-slim | ||
| ENV PYTHONDONTWRITEBYTECODE=1 | ||
| ARG REF=main | ||
| USER root | ||
| RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git | ||
| RUN apt-get install -y g++ cmake | ||
| ENV UV_PYTHON=/usr/local/bin/python | ||
| RUN pip --no-cache-dir install uv && uv venv | ||
| RUN uv pip install --no-cache-dir -U pip setuptools albumentations seqeval | ||
| RUN pip install --upgrade --no-cache-dir "transformers[tf-cpu,sklearn,testing,sentencepiece,tf-speech,vision]" | ||
| RUN uv pip install --no-cache-dir "protobuf==3.20.3" | ||
| RUN pip install --upgrade --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[tf-cpu,sklearn,testing,sentencepiece,tf-speech,vision]" | ||
| RUN uv pip install --no-cache-dir "protobuf==3.20.3" | ||
| RUN pip uninstall -y transformers | ||
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| FROM python:3.9-slim | ||
| ENV PYTHONDONTWRITEBYTECODE=1 | ||
| ARG REF=main | ||
| USER root | ||
| RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ cmake pkg-config openssh-client git | ||
| ENV UV_PYTHON=/usr/local/bin/python | ||
| RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools | ||
| RUN pip install --no-cache-dir 'torch' 'torchvision' 'torchaudio' --index-url https://download.pytorch.org/whl/cpu | ||
| RUN uv pip install --no-deps timm accelerate --extra-index-url https://download.pytorch.org/whl/cpu | ||
| RUN uv pip install --no-cache-dir librosa "transformers[sklearn,sentencepiece,vision,testing]" seqeval albumentations jiwer | ||
| RUN uv pip install --no-deps timm accelerate --extra-index-url https://download.pytorch.org/whl/cpu | ||
| RUN uv pip install --no-cache-dir librosa "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[sklearn,sentencepiece,vision,testing]" seqeval albumentations jiwer | ||
| RUN pip uninstall -y transformers | ||
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little confused about this line - is this to ensure the tests get fixed now rather than waiting for a release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is to build the dev image correctly :)
Previous version of these dockerfiles: we installed from pypi's
transformers, the latest release.This version: we install from the latest commit in the
REFbranch,REFbeing the branch that pushes a commit.In other words, these images were not affected by the changes in
setup.pyuntil a release, even when building new dev images. This pattern exists in all docker images, but was missing on these. As a result, before the changes in the dockerfiles, CI crashed because these images didn't have the newtestingrequirement :)