Page MenuHomePhabricator

Reduce the strength of "arc executing on arc" from an error to a warning
ClosedPublic

Authored by epriestley on Jul 21 2017, 6:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 4:30 PM
Unknown Object (File)
Feb 22 2024, 12:47 PM
Unknown Object (File)
Feb 22 2024, 9:22 AM
Unknown Object (File)
Feb 15 2024, 9:32 AM
Unknown Object (File)
Feb 11 2024, 9:52 PM
Unknown Object (File)
Feb 3 2024, 4:22 PM
Unknown Object (File)
Jan 24 2024, 4:53 PM
Unknown Object (File)
Jan 5 2024, 8:17 AM
Subscribers
None

Details

Summary

See PHI13. This was introduced a very, very long time ago in D311 and D312, and I think T168 was the original report.

It prevents arc from being used in some semi-reasonable (maybe?) automation workflows where you're hooking some version of "Land Revision" up to arc land. This isn't necessarily the right approach, but I think the concession here to make this work is small.

Running arc against another copy of arc makes arc unit not work, but we provide a good error message. Most other arc operations still work correctly.

All of these situations are bizarre edge cases but I think we can safely warn and continue here. Even if we revert this behavior later, almost no one should be affected, since this essentially only impacts users developing arc itself.

Test Plan

Ran one copy of arc against another, saw a warning instead of an error. arc unit failed, but with a good error.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable