pytorch / executorch

On-device AI across mobile, embedded and edge for PyTorch
https://pytorch.org/executorch/
Other
1.31k stars 206 forks source link

Only unset HOME when running cmake as root #3512

Open dbort opened 2 weeks ago

dbort commented 2 weeks ago

This hack is required to work around pytorch/test-infra#5091, which runs some CI jobs as root, which buck2 doesn't like.

But we saw in #3502 that this can break things for some normal users.

Reduce the blast radius of this hack, only modifying HOME when actually running as root.

Cherry-pick #3507

pytorch-bot[bot] commented 2 weeks ago

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/3512

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

:white_check_mark: No Failures

As of commit 9904f7331c2f6324b54e02ff98fe4f0605bd9bef with merge base d3326a2073dee7baf78044fb3afd0772edbc616a (image): :green_heart: Looks good so far! There are no failures yet. :green_heart:

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