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
F15386102: D21470.id.diff
Sat, Mar 15, 12:02 AM
F15385644: D21470.diff
Fri, Mar 14, 11:02 PM
F15332885: D21470.diff
Fri, Mar 7, 9:27 PM
Unknown Object (File)
Wed, Feb 26, 11:16 PM
Unknown Object (File)
Wed, Feb 26, 12:18 PM
Unknown Object (File)
Feb 16 2025, 3:57 PM
Unknown Object (File)
Jan 30 2025, 8:12 AM
Unknown Object (File)
Jan 22 2025, 11:49 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
Branch
resolve1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24917
Build 34377: Run Core Tests
Build 34376: arc lint + arc unit