Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14375592
D11100.id.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
D11100.id.diff
View Options
diff --git a/src/applications/config/check/PhabricatorSetupCheckRepositories.php b/src/applications/config/check/PhabricatorSetupCheckRepositories.php
--- a/src/applications/config/check/PhabricatorSetupCheckRepositories.php
+++ b/src/applications/config/check/PhabricatorSetupCheckRepositories.php
@@ -3,6 +3,25 @@
final class PhabricatorSetupCheckRepositories extends PhabricatorSetupCheck {
protected function executeChecks() {
+
+ $cluster_services = id(new AlmanacServiceQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withServiceClasses(
+ array(
+ 'AlmanacClusterRepositoryServiceType',
+ ))
+ ->setLimit(1)
+ ->execute();
+ if ($cluster_services) {
+ // If cluster repository services are defined, these checks aren't useful
+ // because some nodes (like web nodes) will usually not have any local
+ // repository information.
+
+ // Errors with this configuration will still be detected by checks on
+ // individual repositories.
+ return;
+ }
+
$repo_path = PhabricatorEnv::getEnvConfig('repository.default-local-path');
if (!$repo_path) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 10:40 PM (10 h, 35 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6916334
Default Alt Text
D11100.id.diff (1 KB)
Attached To
Mode
D11100: Don't check "repository.default-local-path" for readability in a cluster environment
Attached
Detach File
Event Timeline
Log In to Comment