1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/src/applications/harbormaster/storage
epriestley a817aa6c71 Add an "Abort Older Builds" build step to Harbormaster
Summary:
Ref T13124. See PHI531. When a revision is updated, builds against the older diff tend to stop being relevant. Add an option to abort outstanding older builds automatically.

At least for now, I'm adding this as a build step instead of some kind of special checkbox. An alternate implementation would be some kind of "Edit Options" action on plans with a checkbox like `[X] When this build starts, abort older builds.`

I think adding it as a build step is a bit simpler, and likely to lead to greater consistency and flexibility down the road, make it easier to add options, etc., and since we don't really have any other current use cases for "a bunch of checkboxes". This might change eventually if we add a bunch of checkboxes for some other reason.

The actual step activates //before// the build queues, so it doesn't need to wait in queue before it can actually act. T13088 discusses some plans here if this sticks.

Test Plan:
  - Created a "Sleep for 120 seconds" build plan and triggered it with Herald.
  - Added an "Abort Older Builds" step.
  - Updated a revision several times in a row, saw older builds abort.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13124

Differential Revision: https://secure.phabricator.com/D19376
2018-04-17 14:59:47 -07:00
..
build Add an "Abort Older Builds" build step to Harbormaster 2018-04-17 14:59:47 -07:00
configuration Add an "Abort Older Builds" build step to Harbormaster 2018-04-17 14:59:47 -07:00
HarbormasterBuildable.php Add an "Abort Older Builds" build step to Harbormaster 2018-04-17 14:59:47 -07:00
HarbormasterBuildableTransaction.php [harbormaster/abort-builds] Support aborting builds in Harbormaster 2015-09-21 12:07:38 -07:00
HarbormasterBuildCommand.php [harbormaster/abort-builds] Support aborting builds in Harbormaster 2015-09-21 12:07:38 -07:00
HarbormasterBuildMessage.php Make Harbormaster objects destructible 2018-03-29 13:01:14 -07:00
HarbormasterBuildTransaction.php [harbormaster/abort-builds] Support aborting builds in Harbormaster 2015-09-21 12:07:38 -07:00
HarbormasterDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
HarbormasterObject.php Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
HarbormasterSchemaSpec.php Give HarbormasterBuildLogChunk a real table 2016-03-01 15:25:34 -08:00
HarbormasterScratchTable.php Allow columns to be marked as nonmutable (so save() will not change them) 2015-02-19 10:37:17 -08:00