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)
Thu, Jan 30, 8:12 AM
Unknown Object (File)
Wed, Jan 22, 11:49 AM
Unknown Object (File)
Mon, Jan 20, 12:20 PM
Unknown Object (File)
Dec 21 2024, 5:01 PM
Unknown Object (File)
Dec 18 2024, 2:13 AM
Unknown Object (File)
Dec 17 2024, 6:33 AM
Unknown Object (File)
Dec 16 2024, 4:46 PM
Unknown Object (File)
Dec 7 2024, 11:53 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