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

fix the parallel number of CI nodes when it is smaller than number of tests #33276

Merged
merged 22 commits into from
Sep 3, 2024

Conversation

ArthurZucker
Copy link
Collaborator

@ArthurZucker ArthurZucker commented Sep 3, 2024

What does this PR do?

This fixes a bug where the self.parallel which defines the number of nodes to run the tests on circle-ci was bigger than the actual number of tests.

This caused the split tests step to only give 1 test to 1 node, and all tests to other parallel nodes, thus failing them!
This is related to the recent #30674.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@ArthurZucker ArthurZucker marked this pull request as ready for review September 3, 2024 14:31
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Thanks! Is it possible to document what's happening here somewhere? (ideally in the inline comments).

This looks like it could rapidly grow into something hard to understand

.circleci/config.yml Show resolved Hide resolved
@ArthurZucker ArthurZucker changed the title fix the parallel number for small CI fix the parallel number of CI nodes when smaller than number of tests Sep 3, 2024
@ArthurZucker ArthurZucker changed the title fix the parallel number of CI nodes when smaller than number of tests fix the parallel number of CI nodes when it is smaller than number of tests Sep 3, 2024
@ArthurZucker ArthurZucker merged commit 979d24e into main Sep 3, 2024
23 checks passed
@ArthurZucker ArthurZucker deleted the fix-ci-small branch September 3, 2024 14:53
itazap pushed a commit to NielsRogge/transformers that referenced this pull request Sep 20, 2024
… tests (huggingface#33276)

* fix the parallel number

* this?

* keep it simple

* woups

* nit

* style

* fix param name

* fix

* fix dtype

* yups

* ???

* ??

* this?

* ????

* no default flow style

* ??

* print config

* ????

* there we go!

* documentation

* update

* remove unwanted file
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