Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15332852
D16324.id39250.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16324.id39250.diff
View Options
diff --git a/src/applications/harbormaster/controller/HarbormasterPlanViewController.php b/src/applications/harbormaster/controller/HarbormasterPlanViewController.php
--- a/src/applications/harbormaster/controller/HarbormasterPlanViewController.php
+++ b/src/applications/harbormaster/controller/HarbormasterPlanViewController.php
@@ -129,13 +129,24 @@
continue;
}
- $item->addAttribute($implementation->getDescription());
- $item->setHref($view_uri);
-
- $depends = $step->getStepImplementation()->getDependencies($step);
+ try {
+ $depends = $step->getStepImplementation()->getDependencies($step);
+ } catch (Exception $ex) {
+ // We can't calculate dependencies if another plan is missing
+ // an implementation. Handle this scenario gracefully.
+ $item
+ ->setStatusIcon('fa-warning red')
+ ->addAttribute(pht(
+ 'Unable to calculate dependencies for this build step. '.
+ 'Are other build steps invalid?'));
+ continue;
+ }
$inputs = $step->getStepImplementation()->getArtifactInputs();
$outputs = $step->getStepImplementation()->getArtifactOutputs();
+ $item->addAttribute($implementation->getDescription());
+ $item->setHref($view_uri);
+
$has_conflicts = false;
if ($depends || $inputs || $outputs) {
$available_artifacts =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 9:07 PM (2 w, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7384418
Default Alt Text
D16324.id39250.diff (1 KB)
Attached To
Mode
D16324: Handle crash when build plan has mix of valid and invalid build steps
Attached
Detach File
Event Timeline
Log In to Comment