Skip to content

Use certifi certs for buck download #10095

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

Merged

Conversation

GregoryComer
Copy link
Member

@GregoryComer GregoryComer commented Apr 11, 2025

Summary

Depending on how Python is installed and managed, it is common for certificates to not be installed out of box on Macs. This can cause the download of buck2 as part of the build process to fail with a certificate error.

While the ultimate solution for this is for the user to install certs in their environment, we can smooth this over a bit for build by pointing urllib at the certifi package certs, which we install as part of install_requirements.

Test plan

I worked with @nil-is-all to verify that this fix allowed him to build and install ExecuTorch from a clean environment. Without this change, he was seeing cert failure errors during buck download.

Copy link

pytorch-bot bot commented Apr 11, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10095

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit b879186 with merge base 94f7b10 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 11, 2025
@GregoryComer GregoryComer force-pushed the fix-buck-download-cert-error branch 2 times, most recently from 7936b21 to d82d024 Compare April 11, 2025 20:40
@GregoryComer GregoryComer force-pushed the fix-buck-download-cert-error branch from d82d024 to 0c87204 Compare May 3, 2025 21:47
@GregoryComer GregoryComer added release notes: misc Miscellaneous topic: not user facing module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch and removed release notes: misc Miscellaneous labels May 3, 2025
@GregoryComer GregoryComer force-pushed the fix-buck-download-cert-error branch from 0c87204 to c2454fc Compare May 3, 2025 22:11
@GregoryComer GregoryComer force-pushed the fix-buck-download-cert-error branch from c2454fc to b879186 Compare May 3, 2025 22:32
@GregoryComer GregoryComer requested review from jathu and larryliu0820 May 5, 2025 02:51
@GregoryComer GregoryComer merged commit b30f912 into pytorch:main May 13, 2025
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants