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)
Sat, Apr 6, 12:12 AM
Unknown Object (File)
Mar 16 2024, 10:44 AM
Unknown Object (File)
Feb 20 2024, 8:57 PM
Unknown Object (File)
Dec 27 2023, 1:38 PM
Unknown Object (File)
Dec 27 2023, 1:38 PM
Unknown Object (File)
Dec 27 2023, 1:38 PM
Unknown Object (File)
Dec 27 2023, 1:38 PM
Unknown Object (File)
Dec 23 2023, 10:55 AM
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