Page MenuHomePhabricator

Modernize Drydock CLI management of task execution
ClosedPublic

Authored by epriestley on Dec 26 2013, 9:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 8:53 PM
Unknown Object (File)
Mon, Apr 8, 6:47 AM
Unknown Object (File)
Tue, Apr 2, 11:05 PM
Unknown Object (File)
Mon, Apr 1, 2:44 AM
Unknown Object (File)
Mon, Apr 1, 2:43 AM
Unknown Object (File)
Mon, Apr 1, 12:18 AM
Unknown Object (File)
Sun, Mar 31, 11:57 PM
Unknown Object (File)
Mon, Mar 25, 11:18 PM
Subscribers

Details

Summary

Ref T2015. Currently, Drydock has a wait-for-lease workflow which is invoked in the background by the lease workflow.

The goal of this mechanism is to allow bin/drydock lease to print out logs as the lease is acquired. However, this predates the runAllTasksInProcess flags, and they provide a simpler and more robust way (potentially with --trace and PhutilConsole) to do synchronous execution and debug logging.

Simplify this whole mechanism: just run everything in-process in bin/drydock lease, and do logging via --trace. We could thread a PhutilConsole through things too, but this seems good enough for now.

Also various cleanup/etc.

Test Plan

Ran bin/drydock lease. Ran bin/harbormaster build X --plan Y, for Y being a Drydock-dependent build plan.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped