summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Add method complexity check to CIflogDmitriy Zaporozhets2015-11-101-0/+24
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Replace all usages of `git` command with configurable binary pathrs-git-bin-pathRobert Speicher2015-11-032-6/+6
| | | | Closes #3311
* Added @commits to list of tags.Mike Chmielewski2015-10-281-3/+3
|
* Remove CI migration taskremove-ci-migrationKamil Trzcinski2015-10-211-87/+0
|
* Fix regex in redis version checkBenny Schimmer2015-10-191-1/+1
|
* Improve performance of User.by_loginuser-by-login-performanceYorick Peterse2015-10-151-0/+2
| | | | | | | | | | | | | | | | | Performance is improved in two steps: 1. On PostgreSQL an expression index is used for checking lower(email) and lower(username). 2. The check to determine if we're searching for a username or Email is moved to Ruby. Thanks to @haynes for suggesting and writing the initial implementation of this. Moving the check to Ruby makes this method an additional 1.5 times faster compared to doing the check in the SQL query. With performance being improved I've now also tweaked the amount of iterations required by the User.by_login benchmark. This method now runs between 900 and 1000 iterations per second.
* Make Reply by email easier to configureDouwe Maan2015-10-131-32/+5
|
* Merge branch 'rs-2fa-task' into 'master' Jacob Vosmaer2015-10-091-0/+23
|\ | | | | | | | | | | | | Add task to disable 2FA for all users Addresses #2971 See merge request !1532
| * Add output and confirmation to gitlab:two_factor:disable_for_all_usersrs-2fa-taskRobert Speicher2015-10-081-2/+15
| |
| * Add gitlab:two_factor:disable_for_all_users taskRobert Speicher2015-10-071-0/+10
| |
* | Added dedicated Rake task for setting up PostgresYorick Peterse2015-10-082-0/+7
|/ | | | | This ensures any PostgreSQL specific schema changes (e.g. expression indexes) are created when setting up the database.
* Exclude benchmarks from the spec Rake taskYorick Peterse2015-10-051-1/+1
|
* Basic setup for an RSpec based benchmark suitebenchmark-suiteYorick Peterse2015-10-021-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This benchmark suite uses benchmark-ips (https://github.com/evanphx/benchmark-ips) behind the scenes. Specs can be turned into benchmark specs by setting "benchmark" to "true" in the top-level describe block like so: describe SomeClass, benchmark: true do end Writing benchmarks can be done using custom RSpec matchers, for example: describe MaruTheCat, benchmark: true do describe '#jump_in_box' do it 'should run 1000 iterations per second' do maru = described_class.new expect { maru.jump_in_box }.to iterate_per_second(1000) end end end By default the "iterate_per_second" expectation requires a standard deviation under 30% (this is just an arbitrary default for now). You can change this by chaining "with_maximum_stddev" on the expectation: expect { maru.jump_in_box }.to iterate_per_second(1000) .with_maximum_stddev(10) This will change the expectation to require a maximum deviation of 10%. Alternatively you can use the it block style to write specs: describe MaruTheCat, benchmark: true do describe '#jump_in_box' do subject { -> { described_class.new } } it { is_expected.to iterate_per_second(1000) } end end Because "iterate_per_second" operates on a block, opposed to a static value, the "subject" method must return a Proc. This looks a bit goofy but I have been unable to find a nice way around this.
* Merge branch 'orphaned-repo-cleanup' into 'master' Douwe Maan2015-09-291-34/+15
|\ | | | | | | | | | | | | | | Improve repo cleanup task I accidentally wrote a new script, not seeing we already had one. But the old one did not do enough (it only handled global namespace orhpans) so I figured I should just drop in the new script. See merge request !1298
| * Guard against trailing slashes in repos_pathJacob Vosmaer2015-09-151-1/+5
| |
| * Improve repo cleanup taskJacob Vosmaer2015-09-151-34/+11
| | | | | | | | | | Clean up more than just global (legacy) repos. Also, instead of deleting, just rename.
* | Skip check_initd_configured_correctly on omnibus installsAchilleas Pipinellis2015-09-221-0/+5
| | | | | | | | | | This was causing the task `gitlab-rake gitlab:incoming_email:check` to fail.
* | Merge branch 'master' into rename-reply-by-emailDouwe Maan2015-09-211-19/+43
|\ \
| * | Disable CI for time of migrationKamil Trzcinski2015-09-211-0/+13
| | |
| * | Create CI migration task on GitLab sideKamil Trzcinski2015-09-201-19/+30
| | |
* | | Rename reply_by_email to incoming_email to prepare for the future.Douwe Maan2015-09-211-9/+9
|/ /
* | Fix migrate taskKamil Trzcinski2015-09-161-1/+1
| |
* | Migrate CI servicesKamil Trzcinski2015-09-161-0/+7
| |
* | Add rake task for easy migration of SQL dumpsKamil Trzcinski2015-09-161-27/+43
| |
* | Use GitLab instead of GITLAB for rake taskKamil Trzcinski2015-09-151-1/+1
| |
* | Remove unused tasksKamil Trzcinski2015-09-152-20/+0
| |
* | Cleanup CI backup => migrate with GitLabKamil Trzcinski2015-09-152-62/+21
| |
* | Add rake task to migrate CI tagsKamil Trzcinski2015-09-151-0/+40
| |
* | Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-gDmitriy Zaporozhets2015-09-111-0/+9
|\ \ | |/ | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Added service API endpoint to retrieve service parametersPetheo Bence2015-09-101-0/+9
| |
* | Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-gDmitriy Zaporozhets2015-09-092-5/+97
|\ \ | |/
| * Merge branch 'upgrade-redis-required-check' into 'master'Marin Jankovski2015-09-071-3/+6
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade Redis requirement check to 2.4.0 per https://github.com/mperham/sidekiq/pull/957 Closes #2222 Closes #2445 See merge request !1251
| | * Upgrade Redis requirement check to 2.4.0 per ↵Stan Hu2015-09-061-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | https://github.com/mperham/sidekiq/pull/957 Closes #2222 Closes #2445
| * | Use File.join to prevent extra slash in help message from appearing. Before:Stan Hu2015-09-061-2/+2
| |/ | | | | | | | | | | | | ``` Try fixing it: sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell//bin/create-hooks ```
| * Fix `rake services:doc` generationStan Hu2015-09-031-3/+3
| | | | | | | | [ci skip]
| * Drone CI serviceKirilll Zaitsev2015-09-021-0/+89
| |
* | Groundwork for merging CI into CEDouwe Maan2015-08-256-0/+96
|/
* Merge branch 'reply-by-email' into 'master'Robert Speicher2015-08-221-0/+169
|\ | | | | | | | | | | | | | | | | | | Reply by email Fixes #1360. It's far from done, but _it works_. See merge request !1173
| * Fix check task for development.Douwe Maan2015-08-211-2/+2
| |
| * Add development section to doc.Douwe Maan2015-08-211-2/+26
| |
| * Fix MailRoom running check.Douwe Maan2015-08-201-3/+3
| |
| * Add gitlab:reply_by_email:check rake task.Douwe Maan2015-08-201-0/+145
| |
* | Merge pull request #9535 from bbodenmiller/patch-3Jacob Vosmaer2015-08-211-0/+52
|\ \ | |/ |/| check upload dir permissions
| * check uploads dirBen Bodenmiller2015-08-161-0/+52
| | | | | | | | | | | | | | Detect issues with uploads dir, e.g. permission and ownership issues with the users uploads dir. This helps troubleshoot and correct gitlab-org/omnibus-gitlab#311. Fixes gitlabhq#7500, gitlabhq#7052. Related to gitlabhq#6281.
* | Merge branch 'remove-satellites'Dmitriy Zaporozhets2015-08-192-95/+0
|\ \ | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * \ Merge branch 'master' into remove-satellitesDmitriy Zaporozhets2015-08-171-1/+1
| |\ \ | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-112-95/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* | | | Fix gitlab:env:info rake task.fix-rake-infoDouwe Maan2015-08-171-2/+1
| |/ / |/| |
* | | Require Ruby 2.1.0 in `gitlab:app:check` taskRobert Speicher2015-08-151-1/+1
|/ / | | | | | | [ci skip]
* | Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-112-0/+95
|/ | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>