executorch icon indicating copy to clipboard operation
executorch copied to clipboard

Only unset HOME when running cmake as root

Open dbort opened this issue 1 year ago • 1 comments

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

dbort avatar May 04 '24 00:05 dbort

: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.

pytorch-bot[bot] avatar May 04 '24 00:05 pytorch-bot[bot]