Skip to content
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

Update fixtures-image-utils #28080

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Update fixtures-image-utils #28080

merged 3 commits into from
Dec 15, 2023

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Dec 15, 2023

The hf-internal-testing/fixtures_image_utils dataset fixture will break with the next release of datasets .
This dataset has a script that writes cache image files that are used in tests.
But in the next release the dataset is loaded from the Parquet files (so there is no local cache image file anymore).

FYI the issue appears because of new security features: datasets now loads the datasets Parquet exports by default to not let users run dataset scripts if possible.

To fix this I opened a PR on to remove the datasets script here: https://huggingface.co/datasets/hf-internal-testing/fixtures_image_utils/discussions/1

And in this PR I pass revision="refs/pr/1" in the tests to use the fixed dataset fixture and update the tests that rely on it.

IMO later we can merge the PR on HF and remove the revision argument (if we do this right now it will break tests in the other PRs on github)

cc @NielsRogge I think it's impacting tests you implemented

@lhoestq lhoestq requested a review from ydshieh December 15, 2023 16:24
Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot of taking care of this ahead the release ❤️

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this PR and making sure everything is safely handled ❤️ !

@amyeroberts amyeroberts merged commit 26ea725 into main Dec 15, 2023
18 checks passed
@amyeroberts amyeroberts deleted the update-fixtures_image_utils branch December 15, 2023 16:58
iantbutler01 pushed a commit to BismuthCloud/transformers that referenced this pull request Dec 16, 2023
* fix hf-internal-testing/fixtures_image_utils

* fix test

* comments
staghado pushed a commit to staghado/transformers that referenced this pull request Jan 15, 2024
* fix hf-internal-testing/fixtures_image_utils

* fix test

* comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants