Page MenuHomePhabricator

In "phutil_passthru()", "resolve()" the future rather than calling "execute()" directly
ClosedPublic

Authored by epriestley on Sep 18 2020, 6:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 16 2026, 4:03 AM
Unknown Object (File)
Mar 4 2026, 6:26 AM
Unknown Object (File)
Jan 15 2026, 1:50 AM
Unknown Object (File)
Dec 2 2025, 9:43 AM
Unknown Object (File)
Nov 28 2025, 2:22 PM
Unknown Object (File)
Nov 21 2025, 11:29 PM
Unknown Object (File)
Oct 19 2025, 10:05 AM
Unknown Object (File)
Oct 4 2025, 7:33 PM
Subscribers
None

Details

Summary

See PHI1862. This code calls "execute()" on the future directly, but that skips some steps -- notably, ServiceProfiler hooks.

Call "resolve()", which has the same effect but includes desirable/expected side effects.

Test Plan

Changed a workflow to run "phutil_passthru('ls')", ran it with "--trace". Before: no execution in trace; after: execution in trace.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable