Page MenuHomePhabricator

Add missing execution on archived task query
ClosedPublic

Authored by joshuaspence on Jun 18 2015, 8:26 AM.
Tags
None
Referenced Files
F14411588: D13335.diff
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
Unknown Object (File)
Mon, Dec 2, 4:28 PM
Unknown Object (File)
Wed, Nov 27, 2:00 AM
Unknown Object (File)
Nov 19 2024, 10:21 PM

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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 6835
Build 6857: [Placeholder Plan] Wait for 30 Seconds

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.