summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Prevent StateMachine warnings from outputting during a cron taskRobert Speicher2016-01-151-0/+3
| | | | | | [ci skip] Closes #5931
* Disable colorization if STDOUT is not a ttyRobert Speicher2016-01-121-0/+2
|
* Suggest prefacing find command with sudo when base permissions are wrongStan Hu2016-01-051-1/+1
| | | | Closes #5872
* Merge branch 'add_user_repo_integrity_rake_task' into 'master' Robert Speicher2015-12-151-4/+52
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add user repository integrity check rake task Corrupt repositories and stuck lock files can cause weird issues in GitLab. Often we know which user is having these problems and then we have to go hunt down which repository is causing it. Several times recently that involved me running queries in the rails console to get an array of projects and then writing a quick Ruby script to loop through and run `git fsck`. This last time I also had to check for the existence of `config.lock` and ref lock files. This rake task will eliminate all of those steps and allow an admin to simply specify a username. I also added the lock file checks to the existing `gitlab:repo:check` task which goes through all projects. See merge request !2080
| * [ci skip] Add user repository integrity check rake taskDrew Blessing2015-12-141-4/+52
| |
* | Merge branch 'ci-project-migrate' into 'master' Kamil TrzciƄski2015-12-141-6/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci Project migrate - This doesn't migrate: allow_git_fetch, coverage_regex, timeout. Since this are project configuration settings I would propose to migrate them to `.gitlab-ci.yml`. - This requires offline migrations. - It simplifies database models making all CI objects to be attached to: Project. - It removes Ci::Project, but makes /ci/projects working by adding method: Project.find_by_ci_id for backward compatibility (badges, triggers). - We should add default `timeout` to Application Settings. - It misses specs. - It is based on ci-services-migrate for now. - It removes CI events. - It removes administrator CI projects overview. - It removes CI application settings. In 8.4 or 8.5 we can remove redundant tables and columns. See merge request !1987
| * | Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-6/+0
| |/
* | Bump Redis requirement to 2.8 for Sidekiq 4 requirementsStan Hu2015-12-121-1/+1
|/ | | | | | Closes #3649 [ci skip]
* Split up spec:other even moreDouwe Maan2015-12-091-1/+19
|
* Fix rspec tag syntaxDouwe Maan2015-12-091-1/+1
|
* Split up specs moreDouwe Maan2015-12-091-1/+10
|
* Split up feature specs moreDouwe Maan2015-12-091-3/+23
|
* Update project repository size and commit count during import:repos taskStan Hu2015-12-081-0/+2
| | | | Closes #3848
* Merge branch 'sync-all-repos' into 'master' Douwe Maan2015-12-081-0/+17
|\ | | | | | | | | | | | | Sync all repos Scripts and documentation for moving repos, used on gitlab.com. See merge request !1439
| * Detect project and namespace changes in list:reposJacob Vosmaer2015-12-081-3/+4
| |
| * Merge branch 'master' into sync-all-reposJacob Vosmaer2015-12-0814-176/+158
| |\
| * | Add "rake gitlab:list_repos" taskJacob Vosmaer2015-09-251-0/+16
| | |
* | | Merge branch 'master' into rake-tasks-gitZeger-Jan van de Weg2015-12-071-11/+1
|\ \ \ | | |/ | |/|
| * | Remove usage of Coloredrs-update-colorizeRobert Speicher2015-11-241-11/+1
| | |
* | | Merge branch 'master' into rake-tasks-gitZeger-Jan van de Weg2015-11-244-0/+84
|\ \ \ | |/ /
| * | Backup LFS objects same as any upload.Marin Jankovski2015-11-191-0/+21
| | |
| * | Set higher flay value to avoid unnecessary refactoring for nowDmitriy Zaporozhets2015-11-171-1/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Set less strict flay option for nowDmitriy Zaporozhets2015-11-161-1/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Add grape routing printDmitriy Zaporozhets2015-11-121-0/+8
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Merge branch 'flay' into 'master' Dmitriy Zaporozhets2015-11-111-0/+9
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Add flay: tool to find duplicate code Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !1789
| | * | Add flay: tool to find duplicate codeflayDmitriy Zaporozhets2015-11-111-0/+9
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | Merge branch 'flog' into 'master' Dmitriy Zaporozhets2015-11-111-0/+25
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Add method complexity check to CI Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !1783
| | * | Allow flog failure for nowDmitriy Zaporozhets2015-11-111-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * | Add method complexity check to CIflogDmitriy Zaporozhets2015-11-101-0/+24
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | Implement Build ArtifactsKamil Trzcinski2015-11-101-0/+21
| |/ / | | | | | | | | | | | | | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* | | Merge branch 'master' into rake-tasks-gitZeger-Jan van de Weg2015-11-115-129/+17
|\ \ \ | |/ /
| * | 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
| | |
* | | Scalable way of requesting all reposZeger-Jan van de Weg2015-10-142-9/+16
| | |
* | | Added three rake tasks for repository maintainanceZeger-Jan van de Weg2015-10-142-0/+56
|/ / | | | | | | | | | | | | Tasks added: gitlab:git:repack gitlab:git:gc gitlab:git:prune
* | 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
|\ \