Skip to content

Only download hub cache for pipelines_torch job#46544

Merged
ydshieh merged 1 commit into
mainfrom
less_download
Jun 10, 2026
Merged

Only download hub cache for pipelines_torch job#46544
ydshieh merged 1 commit into
mainfrom
less_download

Conversation

@ydshieh

@ydshieh ydshieh commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The "download and unzip hub cache" step in .circleci/create_circleci_config.py was running for all CircleCI jobs
  • Restricted it to only run when job_name == "pipelines_torch", avoiding unnecessary downloads in other jobs

We get more download failures recently. This PR might avoid that until we migrate to GH.

"command": 'curl -L -o huggingface-cache.tar.gz https://huggingface.co/datasets/hf-internal-testing/hf_hub_cache/resolve/main/huggingface-cache.tar.gz && apt-get install pigz && tar --use-compress-program="pigz -d -p 8" -xf huggingface-cache.tar.gz && mv -n hub/* /root/.cache/huggingface/hub/ && ls -la /root/.cache/huggingface/hub/',
}
},
*(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There is a * here, so it's just add this step or not (i.e. with [] list).

@ydshieh ydshieh requested review from tarekziade and removed request for tarekziade June 10, 2026 16:20
@github-actions

Copy link
Copy Markdown
Contributor

CI Dashboard: View test results in Grafana

@zucchini-nlp zucchini-nlp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One q: iirc we have few other tests that download artifacts from hf-testing, like processor with tiny videos/images. Are those downloaded in a different process?

@ydshieh

ydshieh commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

One q: iirc we have few other tests that download artifacts from hf-testing, like processor with tiny videos/images. Are those downloaded in a different process?

That are in one step above that I didn't remove in this PR

            {
                "run": {
                    "name": "fetch hub objects before pytest",
                    "command": "cp -r /test_data/* . 2>/dev/null || true; python3 utils/fetch_hub_objects_for_ci.py",
                }
            },

@github-actions

Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46544&sha=d173dc

@ydshieh ydshieh merged commit 7c57402 into main Jun 10, 2026
115 of 121 checks passed
@ydshieh ydshieh deleted the less_download branch June 10, 2026 16:32
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.

2 participants