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

[CI update] Try to use dockers and no cache #29202

Merged
merged 234 commits into from
May 6, 2024
Merged

[CI update] Try to use dockers and no cache #29202

merged 234 commits into from
May 6, 2024

Conversation

ArthurZucker
Copy link
Collaborator

@ArthurZucker ArthurZucker commented Feb 22, 2024

What does this PR do?

So we have:

1. setup_and_quality 83% faster on average, instead of a total of 11min it's down to 2min36.

I think we can do even better with check repo consistency by reducing the size of the docker used! (purging nvidia-*, and else not needed for checks). Breakdown:

  • 2x on check circle ci user (from 14sec -> 7s)
  • 10x on check code quality (from 6min -> 30s)
  • 2x on check repo consistency (from 1min -> 30s)
  • 2x on test fetching (from 1min -> 30s)

2. run_tests from 17min on average to 6min

image

before vs after:
image

@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
Copy link
Collaborator Author

I mostly need the approval of the security team at this point...

@ArthurZucker
Copy link
Collaborator Author

image

@ydshieh
Copy link
Collaborator

ydshieh commented May 3, 2024

Wow, all ✅ ! I ❤️ seeing this. Will take a look this afternoon.
(But you can already remove Draft from the title 😉 )

@ArthurZucker ArthurZucker changed the title [Draft CI update] Try to use dockers and no cache [CI update] Try to use dockers and no cache May 3, 2024
Comment on lines -351 to -355
# Might need to add doc-builder and some specific deps in the future
extras["docs_specific"] = ["hf-doc-builder"]

# "docs" needs "all" to resolve all the references
extras["docs"] = extras["all"] + extras["docs_specific"]
Copy link
Member

Choose a reason for hiding this comment

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

:)

@LysandreJik
Copy link
Member

(please wait for Yih-Dar's review before merging)

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.

Thank you @ArthurZucker . This is really great work 🚀 .

Mostly some nit comments, and let discuss/think about the image push process after this being merged.

(Please don't merge yet before I DM you on slack)

@ArthurZucker ArthurZucker merged commit 307f632 into main May 6, 2024
30 of 34 checks passed
@ArthurZucker ArthurZucker deleted the change-ci branch May 6, 2024 08:10
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.

4 participants