summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Auto annotate models on migrationannotate-modelsZeger-Jan van de Weg2016-05-061-0/+44
| | | | [ci skip]
* Use rake db:reset instead of db:setupYorick Peterse2016-04-141-1/+1
| | | | | | | | | | | | Using db:reset ensures existing tables are first dropped. This in turn ensures that we can drop tables regardless of any foreign key constraints. While CE currently doesn't have any foreign keys EE defines the following relation: remote_mirrors.project_id -> projects.id MySQL will complain whenever you try to drop the "projects" table first even when using "DROP TABLE ... CASCADE".
* Merge branch 'fix_emojis_not_showing_in_autocomplete' into 'master' Robert Speicher2016-04-121-2/+13
|\ | | | | | | | | | | | | Fix emoji aliases not showing in autocomplete closes #14948 See merge request !3595
| * fix emoji aliases not showing in autocompletefix_emojis_not_showing_in_autocompleteArinde Eniola2016-04-091-2/+13
| |
* | Put CACHE_NAMESPACE in the Gitlab::Redis moduleJacob Vosmaer2016-04-071-1/+1
| |
* | Add Gitlab::Redis connection poolJacob Vosmaer2016-04-041-12/+13
|/
* Merge branch 'precompile-emoji-urls' into 'master' Dmitriy Zaporozhets2016-03-301-14/+34
|\ | | | | | | | | | | | | | | | | Pre-calculate Emoji digests cc @dzaporozhets @rspeicher @marin Do you happen to know if we allow users to configure asset hosts anywhere in Omnibus and such? I've not been able to find any reference to "asset_host" so it seems we don't allow this (which is a good thing as this simplifies the code). See merge request !3458
| * Pre-calculate Emoji digestsprecompile-emoji-urlsYorick Peterse2016-03-301-14/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By pre-calculating the digests we can manually construct the emoji URLs, removing the need for using Rails' asset URL helpers. The reason we don't want to use these helpers for Emojis is two-fold: 1. Rails' image_url() method is slow, really slow. For one it _might_ have to calculate digests but it also performs a lot of other intensive operations (judging by the source code and based on measuring timings). 2. We have a lot of Emoji which coupled with the above can result in it taking minutes to load Emoji autocomplete data. Using this pre-calculation setup generating the digests takes around 7 seconds (including the time it takes to start Rails/Rake), and only around 600 milliseconds to load _all_ the autocomplete data of a project (measured locally). This commit _does_ change the Emoji URLs from absolute to relative URLs as these are much easier to generate. To update the Emoji data simply run: rake gemojione:digests Then commit any changes. Fixes gitlab-org/gitlab-ce#14009
* | Improve and finish the fallback to the In-Reply-To and References header for ↵2364-fallback-to-in-reply-to-headerRémy Coutable2016-03-251-15/+0
|/ | | | | | | | | | | | | | | | the reply-by-email feature A few things to note: - The IncomingEmail feature is now enabled even without a correctly-formatted sub-address - Message-ID for new thread mail are kept the same so that subsequent notifications to this thread are grouped in the thread by the email service that receives the notification (i.e. In-Reply-To of the answer == Message-ID of the first thread message) - To maximize our chance to be able to retrieve the reply key, we look for it in the In-Reply-To header and the References header - The pattern for the fallback reply message id is "reply-[key]@[gitlab_host]" - Improve docs thanks to Axil
* Reload the schema before restoring a database backupDrew Blessing2016-03-212-8/+61
|
* Follow the CSS Style Guide rules for unitless zero values.connorshea2016-03-161-0/+1
| | | | | | | | Updated Emoji Rake task to conform to style guide. Discussed in #14299. [ci skip]
* Merge branch 'master' into git-2-7-3Douwe Maan2016-03-151-0/+10
|\
| * Add SCSS Lint, CSSComb config file, run SCSS Lint in GitLab CI, add ↵connorshea2016-03-141-0/+10
| | | | | | | | | | | | documentation for SCSS Style Guide. See !3069 for more information.
* | Bump Git version requirement to 2.7.3Douwe Maan2016-03-151-1/+1
|/
* Merge branch 'remove-benchmark-suite' into 'master' Douwe Maan2016-03-111-11/+2
|\ | | | | | | | | | | | | Removed benchmark suite and its documentation Related issue: gitlab-org/gitlab-ce#13718 See merge request !3137
| * Removed benchmark suite and its documentationremove-benchmark-suiteYorick Peterse2016-03-101-11/+2
| | | | | | | | | | | | | | | | | | The rationale for this can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/13718 but in short the benchmark suite no longer serves a good purpose now that we have proper production monitoring in place. Fixes gitlab-org/gitlab-ce#13718
* | web hooks to webhooksashleys2016-03-101-7/+7
| |
* | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵redis-config-parserJacob Vosmaer2016-03-101-0/+121
|\ \ | |/ | | | | redis-config-parser
| * Merge branch 'rs-sprite-task' into 'master' Dmitriy Zaporozhets2016-03-091-0/+121
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `gemojione:sprite` Rake task This task will generate a standard and Retina sprite of all of the current Gemojione Emojis, with the accompanying SCSS map. It will not appear in `rake -T` output, and the dependent gems are not included in the Gemfile by default, because this task will only be needed occasionally. See merge request !3130
| | * Add a `gemojione:sprite` Rake taskRobert Speicher2016-03-091-0/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This task will generate a standard and Retina sprite of all of the current Gemojione Emojis, with the accompanying SCSS map. It will not appear in `rake -T` output, and the dependent gems are not included in the Gemfile by default, because this task will only be needed occasionally. [ci skip]
* | | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Jacob Vosmaer2016-03-091-28/+34
|\ \ \ | |/ / | | | | | | redis-config-parser
| * | Retry spinach testsKamil Trzcinski2016-03-091-28/+34
| |/
* | Parse config/resque.yml in one place onlyJacob Vosmaer2016-03-091-3/+3
|/
* Reduce progress bar noise during brakeman runPeter Suschlik2016-03-041-1/+1
|
* Merge branch 'mail-room-config-without-rails' into 'master' Douwe Maan2016-03-021-4/+6
|\ | | | | | | | | | | | | | | | | Don't load all of GitLab in mail_room Fixes #12731 cc @jacobvosmaer See merge request !3005
| * Fix `gitlab:incoming_email:check` task.Douwe Maan2016-02-291-4/+6
| |
* | Batch size >1000 does not pay offcomment-batch-sizeJacob Vosmaer2016-02-251-1/+1
|/ | | | | | | | | | | | | | We did a small experiment to see how a full scan of the Redis keys on gitlab.com speeds up as we increase the batch size. The values on the right are time in seconds for a full scan (no delete operations). count: 10); 284.500529021 count: 100); 86.21216934 count: 1_000); 60.931676195 count: 10_000); 60.96355610 count: 100_000); 62.378172541 It looks like 1,000 is a good number.
* Merge branch 'uploads-700' into 'master' revert-53176717Marin Jankovski2016-02-231-6/+7
|\ | | | | | | | | | | | | Restrict permissions on public/uploads Based on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/631 See merge request !2764
| * Simplify permissions creationuploads-700Achilleas Pipinellis2016-02-101-1/+1
| | | | | | | | [ci skip]
| * Restrict permissions on public/uploadsAchilleas Pipinellis2016-02-091-6/+7
| |
* | Improve readability of 'rake cache:clear' coderefactor-scanJacob Vosmaer2016-02-191-6/+5
| |
* | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Jacob Vosmaer2016-02-181-1/+0
|\ \ | | | | | | | | | cache-clear
| * | Remove remaining sqlite method callAchilleas Pipinellis2016-02-171-1/+0
| | |
* | | Use SCAN during 'rake cache:clear'cache-clearJacob Vosmaer2016-02-181-4/+15
|/ / | | | | | | | | | | This allows 'rake cache:clear' to delete millions of keys without choking. It requires Redis 2.8.0 or newer but we needed that already anyway.
* | Remove sqlite check in raketaskremove_sqlite_checkAchilleas Pipinellis2016-02-101-18/+0
|/
* 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
| |