Page MenuHomePhabricator

Implement support for leasing from Drydock hosts in Harbormaster
ClosedPublic

Authored by hach-que on Dec 5 2013, 1:34 AM.
Tags
None
Referenced Files
F13179063: D7706.diff
Wed, May 8, 8:54 PM
Unknown Object (File)
Sat, May 4, 6:22 PM
Unknown Object (File)
Thu, May 2, 7:35 PM
Unknown Object (File)
Sun, Apr 28, 4:11 AM
Unknown Object (File)
Sun, Apr 28, 4:11 AM
Unknown Object (File)
Sun, Apr 28, 4:11 AM
Unknown Object (File)
Sun, Apr 28, 4:11 AM
Unknown Object (File)
Wed, Apr 24, 10:06 PM

Details

Summary

This adds LeaseHostBuildStepImplementation for getting leases on hosts in Drydock via Harbormaster. It stores the resulting lease in an artifact.

There is also a few bug fixes as well.

Test Plan

Created a build plan with a "Lease Host" build step. Ran the build plan and saw the build pass and the artifact in the database.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

src/applications/harbormaster/step/BuildStepImplementation.php
59–70

We need to load settings against either HarbormasterBuildStep or HarbormasterBuildTarget.

src/applications/harbormaster/storage/configuration/HarbormasterBuildStep.php
44–62

Need this back in HarbormasterBuildStep in addition to HarbormasterBuildTarget since we need to be able to create implementations in the build plan editor (where there's no targets).

epriestley added inline comments.
src/applications/harbormaster/step/BuildStepImplementation.php
59–70

Maybe cleaner to provide loadSettingsFromBuildTarget and loadSettingsFromBuildStep, but this is easy to clean up later.

src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php
45

Prefer the verb load to get, so it's more clear that the method does service calls.

src/applications/harbormaster/storage/configuration/HarbormasterBuildStep.php
44–62

We should maybe do dummy targets or something, but not a big deal to sort out later.