Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13995106
D11100.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.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
Thu, Oct 24, 10:41 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739328
Default Alt Text
D11100.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