Commit graph

24 commits

Author SHA1 Message Date
Toon Claes
d13669716a Create idea of read-only database
In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo
secondary node). But in GitLab CE it also might be useful to have the
"read-only" idea around. So port it back to GitLab CE.

Also having the principle of read-only in GitLab CE would hopefully
lead to less errors introduced, doing write operations when there
aren't allowed for read-only calls.

Closes gitlab-org/gitlab-ce#37534.
2017-10-06 22:37:40 +02:00
Nick Thomas
43c712f5dd
Whitelist authorized_keys.lock in the gitlab:check rake task 2017-10-02 11:25:02 +01:00
Gabriel Mazetto
c505a52347 Fixed few gitlab:check tasks that were failing with exception 2017-09-25 00:34:12 +02:00
Lin Jen-Shin
7e62ad05b5 Fix rake gitlab:incoming_email:check and make it
report error properly, so that we know what's really wrong.
2017-09-22 02:03:57 +08:00
Gabriel Mazetto
2c489f8289 Refactor on namespace and repository checks and added specs 2017-09-12 06:57:22 +02:00
Gabriel Mazetto
cc28abeafd Detect orphaned repositories and namespaces in any storage 2017-09-12 04:06:00 +02:00
Sean McGivern
446c7fc6f1 Merge branch 'system-checks-incoming-email' into 'master'
Move Incoming Email checks to System Checks

See merge request !14028
2017-09-06 09:02:47 +00:00
Nick Thomas
48115be509 Add a system check for the git user's custom SSH configuration 2017-09-04 18:16:31 +01:00
Gabriel Mazetto
71000b394b Refactored Incoming Email checks to use SystemCheck library 2017-09-04 04:25:58 +02:00
Gabriel Mazetto
eb79e5689e Refactored app/init script check to use dynamic skip reason 2017-09-04 03:59:37 +02:00
Gabriel Mazetto
706d49b259 Added dynamic skip reason to SystemCheck 2017-09-04 03:58:54 +02:00
Maxim Rydkin
78c5d4ddc2 replace is_multi_check? with multi_check? 2017-08-29 11:14:42 +03:00
Maxim Rydkin
6a56bec735 replace is_gitlab_user? with gitlab_user? 2017-08-29 11:14:41 +03:00
Gabriel Mazetto
b0f2861c3d Make the SimpleExecutor rescue exceptions in the executing Checks 2017-06-27 17:48:04 +02:00
Gabriel Mazetto
0d4d9a6a63 Refactor and move things around to improve in YAGNI perspective 2017-05-31 20:45:00 +02:00
Gabriel Mazetto
d219f9a691 Fix BasicExecutor specs 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
3f187751d4 Fixed and improved some existing checks and SystemCheck library 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
bca5603740 Fix codestyle 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
ecdbde3d95 Improve Specs and some fixes 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
27e632758f Add ActiveUsers Check 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
13e88c9395 Refactor gitlab:app:checks to use SystemCheck 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
a4460f420b Fix a few method signature checks 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
f182ea4ea5 Some code-style fixes and documentation 2017-05-31 14:33:03 +02:00
Gabriel Mazetto
500e5227a0 WIP SystemCheck library for executing checks from a rake task 2017-05-31 14:33:03 +02:00