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
F19082111: D21470.id51102.diff
Dec 2 2025, 9:43 AM
F19054695: D21470.id51102.diff
Nov 28 2025, 2:22 PM
F19009409: D21470.diff
Nov 21 2025, 11:29 PM
F18808963: D21470.id.diff
Oct 19 2025, 10:05 AM
F18753589: D21470.id.diff
Oct 4 2025, 7:33 PM
F18748769: D21470.diff
Oct 4 2025, 12:34 AM
F18744869: D21470.id51103.diff
Oct 3 2025, 4:25 AM
F18701501: D21470.id51103.diff
Sep 27 2025, 7:29 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
Branch
resolve1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24917
Build 34377: Run Core Tests
Build 34376: arc lint + arc unit