Page MenuHomePhabricator

Add missing execution on archived task query
ClosedPublic

Authored by joshuaspence on Jun 18 2015, 8:26 AM.
Tags
None
Referenced Files
F14480695: D13335.id32267.diff
Sun, Dec 29, 10:36 PM
Unknown Object (File)
Thu, Dec 26, 10:54 AM
Unknown Object (File)
Thu, Dec 26, 12:40 AM
Unknown Object (File)
Tue, Dec 24, 11:31 AM
Unknown Object (File)
Sun, Dec 22, 12:57 AM
Unknown Object (File)
Fri, Dec 20, 10:13 PM
Unknown Object (File)
Thu, Dec 12, 11:18 PM
Unknown Object (File)
Thu, Dec 5, 4:41 AM

Details

Summary

Fixes T8599. I'm not sure how to reproduce the original issue, but I'm fairly confident that the issue is that the issue is that execute() is not called on the query object.

Test Plan

Created a Harbormaster build plan with a single "Lease Host" step. Ran ./bin/harbormaster build --plan 1 D1 from the command line and hit the exception as described in T8599. Applied patch and hit a different exception (which I think is just because I don't know how to use Drydock and Harbormaster).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add missing execution on archived task query.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.

After applying this patch, I hit the following exception instead:

[2015-06-18 18:41:31] EXCEPTION: (Exception) Lease has been broken! at [<phabricator>/src/applications/drydock/storage/DrydockLease.php:172]
arcanist(head=master, ref.master=9a7c4d87a850), phabricator(head=master, ref.master=5be6b3b141bc), phutil(head=master, ref.master=81eed10bea57)
  #0 <#2> DrydockLease::waitForLeases(array) called at [<phabricator>/src/applications/drydock/storage/DrydockLease.php:198]
  #1 <#2> DrydockLease::waitUntilActive() called at [<phabricator>/src/applications/harbormaster/step/HarbormasterLeaseHostBuildStepImplementation.php:32]
  #2 <#2> HarbormasterLeaseHostBuildStepImplementation::execute(HarbormasterBuild, HarbormasterBuildTarget) called at [<phabricator>/src/applications/harbormaster/worker/HarbormasterTargetWorker.php:52]
  #3 phlog(Exception) called at [<phabricator>/src/applications/harbormaster/worker/HarbormasterTargetWorker.php:81]
  #4 PhabricatorWorker::scheduleTask(string, array) called at [<phabricator>/src/applications/harbormaster/engine/HarbormasterBuildEngine.php:84]
  #5 HarbormasterBuildEngine::continueBuild() called at [<phabricator>/src/applications/harbormaster/worker/HarbormasterBuildWorker.php:25]
  #6 HarbormasterBuildWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:117]
  #7 PhabricatorWorker::scheduleTask(string, array) called at [<phabricator>/src/applications/harbormaster/storage/HarbormasterBuildable.php:151]
  #8 HarbormasterBuildable::applyPlan(HarbormasterBuildPlan) called at [<phabricator>/src/applications/harbormaster/management/HarbormasterManagementBuildWorkflow.php:87]
  #9 HarbormasterManagementBuildWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:406]
  #10 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301]
  #11 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/setup/manage_harbormaster.php:21]

That exception is fine (it just means it failed to acquire a lease).

epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 18 2015, 12:31 PM
This revision was automatically updated to reflect the committed changes.