Skip to content

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

Merged
ArthurZucker merged 22 commits intomainfrom
fix-ci-small
Sep 3, 2024
Merged

fix the parallel number of CI nodes when it is smaller than number of tests#33276
ArthurZucker merged 22 commits intomainfrom
fix-ci-small

Conversation

@ArthurZucker
Copy link
Copy Markdown
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
Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread .circleci/config.yml
@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
@ArthurZucker ArthurZucker deleted the fix-ci-small branch September 3, 2024 14:53
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 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