Page MenuHomeClusterLabs Projects
Diviner Tech Docs HarbormasterBuildEngine

final class HarbormasterBuildEngine
Phorge Technical Documentation (Harbormaster)

Moves a build forward by queuing build tasks, canceling or restarting the build, or failing it in response to task failures.

Methods

public function setForceBuildableUpdate($force_buildable_update)

This method is not documented.
Parameters
$force_buildable_update
Return
wild

public function shouldForceBuildableUpdate()

This method is not documented.
Return
wild

public function queueNewBuildTarget($target)

This method is not documented.
Parameters
HarbormasterBuildTarget$target
Return
wild

public function getNewBuildTargets()

This method is not documented.
Return
wild

public function setViewer($viewer)

This method is not documented.
Parameters
PhabricatorUser$viewer
Return
wild

public function getViewer()

This method is not documented.
Return
wild

public function setBuild($build)

This method is not documented.
Parameters
HarbormasterBuild$build
Return
wild

public function getBuild()

This method is not documented.
Return
wild

public function continueBuild()

This method is not documented.
Return
wild

private function updateBuild($build)

This method is not documented.
Parameters
HarbormasterBuild$build
Return
wild

private function updateBuildSteps($build)

This method is not documented.
Parameters
HarbormasterBuild$build
Return
wild

private function releaseUnusedArtifacts($targets, $steps)

Release any artifacts which aren't used by any running or waiting steps.

This releases artifacts as soon as they're no longer used. This can be particularly relevant when a build uses multiple hosts since it returns hosts to the pool more quickly.

Parameters
list<HarbormasterBuildTarget>$targetsTargets in the build.
list<HarbormasterBuildStep>$stepsList of running and waiting steps.
Return
void

private function updateWaitingTargets($targets)

Process messages which were sent to these targets, kicking applicable targets out of "Waiting" and into either "Passed" or "Failed".

Parameters
list<HarbormasterBuildTarget>$targetsList of targets to process.
Return
void

public function updateBuildable($buildable)

Update the overall status of the buildable this build is attached to.

After a build changes state (for example, passes or fails) it may affect the overall state of the associated buildable. Compute the new aggregate state and save it on the buildable.

Parameters
HarbormasterBuild$buildableThe buildable to update.
Return
void

public function publishBuildable($old, $new)

This method is not documented.
Parameters
HarbormasterBuildable$old
HarbormasterBuildable$new
Return
wild

private function releaseQueuedArtifacts()

This method is not documented.
Return
wild