summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Integrate two workers into one ArchiveTraceWorker with pipeline_background ↵Shinya Maeda2018-03-061-1/+1
| | | | queue. This queue takes loqer precedence than pipeline_default.
* Fix rake task to use corrrect SQLShinya Maeda2018-03-061-5/+4
|
* Use find_in_batches for rake taskShinya Maeda2018-03-061-3/+11
|
* Add rake task. Adopt the latest fix. Drop CreateTraceArtifactServiceShinya Maeda2018-03-061-0/+17
|
* Foreground verification of uploads and LFS objectsee-4862-verify-file-checksumsNick Thomas2018-03-023-44/+16
|
* Merge branch 'feature/move_oauth_modules_to_auth_dir_structure' into 'master'Douwe Maan2018-03-012-4/+4
|\ | | | | | | | | Moved o_auth/saml/ldap modules under gitlab/auth See merge request gitlab-org/gitlab-ce!17359
| * Moved o_auth/saml/ldap modules under gitlab/authHoratiu Eugen Vlad2018-02-282-4/+4
| |
* | Improve plugins documentation and remove unnecessary rake taskDmitriy Zaporozhets2018-02-281-5/+0
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Refactor plugins feature and make some doc improvementsDmitriy Zaporozhets2018-02-281-4/+4
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add plugin queue to sidekiq config [ci skip]Dmitriy Zaporozhets2018-02-261-0/+5
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Run plugins as separate process and pass data via STDINDmitriy Zaporozhets2018-02-261-24/+0
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Redesign plugins systemDmitriy Zaporozhets2018-02-261-6/+6
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Remove plugin initializer and add plugins:validate rake taskDmitriy Zaporozhets2018-02-261-0/+15
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add generator for pluginsDmitriy Zaporozhets2018-02-261-0/+25
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Optimise searching for users using short queriesYorick Peterse2018-02-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This optimises searching for users when using queries consisting out of one or two characters such as "ab". We optimise such cases by searching for `LOWER(name)` and `LOWER(username)` instead of using `ILIKE`. Using `LOWER` produces a _much_ better performing query. For example, when searching for all users matching the term "a" we'd produce the following plan: Limit (cost=637.69..637.74 rows=20 width=805) (actual time=41.983..41.995 rows=20 loops=1) Buffers: shared hit=8330 -> Sort (cost=637.69..638.61 rows=368 width=805) (actual time=41.982..41.990 rows=20 loops=1) Sort Key: (CASE WHEN ((name)::text = 'a'::text) THEN 0 WHEN ((username)::text = 'a'::text) THEN 1 WHEN ((email)::text = 'a'::text) THEN 2 ELSE 3 END), name Sort Method: top-N heapsort Memory: 35kB Buffers: shared hit=8330 -> Bitmap Heap Scan on users (cost=75.47..627.89 rows=368 width=805) (actual time=9.452..41.305 rows=277 loops=1) Recheck Cond: (((name)::text ~~* 'a'::text) OR ((username)::text ~~* 'a'::text) OR ((email)::text = 'a'::text)) Rows Removed by Index Recheck: 7601 Heap Blocks: exact=7636 Buffers: shared hit=8327 -> BitmapOr (cost=75.47..75.47 rows=368 width=0) (actual time=8.290..8.290 rows=0 loops=1) Buffers: shared hit=691 -> Bitmap Index Scan on index_users_on_name_trigram (cost=0.00..38.85 rows=180 width=0) (actual time=4.369..4.369 rows=4071 loops=1) Index Cond: ((name)::text ~~* 'a'::text) Buffers: shared hit=360 -> Bitmap Index Scan on index_users_on_username_trigram (cost=0.00..34.41 rows=188 width=0) (actual time=3.896..3.896 rows=4140 loops=1) Index Cond: ((username)::text ~~* 'a'::text) Buffers: shared hit=328 -> Bitmap Index Scan on users_email_key (cost=0.00..1.94 rows=1 width=0) (actual time=0.022..0.022 rows=0 loops=1) Index Cond: ((email)::text = 'a'::text) Buffers: shared hit=3 Planning time: 3.912 ms Execution time: 42.171 ms With the changes in this commit we now produce the following plan instead: Limit (cost=13257.48..13257.53 rows=20 width=805) (actual time=1.567..1.579 rows=20 loops=1) Buffers: shared hit=287 -> Sort (cost=13257.48..13280.93 rows=9379 width=805) (actual time=1.567..1.572 rows=20 loops=1) Sort Key: (CASE WHEN ((name)::text = 'a'::text) THEN 0 WHEN ((username)::text = 'a'::text) THEN 1 WHEN ((email)::text = 'a'::text) THEN 2 ELSE 3 END), name Sort Method: top-N heapsort Memory: 35kB Buffers: shared hit=287 -> Bitmap Heap Scan on users (cost=135.66..13007.91 rows=9379 width=805) (actual time=0.194..1.107 rows=277 loops=1) Recheck Cond: ((lower((name)::text) = 'a'::text) OR (lower((username)::text) = 'a'::text) OR ((email)::text = 'a'::text)) Heap Blocks: exact=277 Buffers: shared hit=287 -> BitmapOr (cost=135.66..135.66 rows=9379 width=0) (actual time=0.152..0.152 rows=0 loops=1) Buffers: shared hit=10 -> Bitmap Index Scan on yorick_test_users (cost=0.00..124.75 rows=9377 width=0) (actual time=0.101..0.101 rows=277 loops=1) Index Cond: (lower((name)::text) = 'a'::text) Buffers: shared hit=4 -> Bitmap Index Scan on index_on_users_lower_username (cost=0.00..1.94 rows=1 width=0) (actual time=0.035..0.035 rows=1 loops=1) Index Cond: (lower((username)::text) = 'a'::text) Buffers: shared hit=3 -> Bitmap Index Scan on users_email_key (cost=0.00..1.94 rows=1 width=0) (actual time=0.014..0.014 rows=0 loops=1) Index Cond: ((email)::text = 'a'::text) Buffers: shared hit=3 Planning time: 0.303 ms Execution time: 1.687 ms Here we can see the new query is 25 times faster compared to the old query.
* 36847 - update toml-rb to 1.0.0Ken2018-02-211-2/+2
| | | | | 36847 - add changelog
* Run lint:all tasks in forks42050-combine-all-rake-based-lints-in-one-rake-process-in-ciRémy Coutable2018-02-141-11/+32
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Combine all rake tasks in the static-analysis jobRémy Coutable2018-02-141-0/+28
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Rename .scss files to use snake_case42908-rename-scss-files-to-use-snake-caseEric Eastwood2018-02-081-1/+1
| | | | See https://gitlab.com/gitlab-org/gitlab-ce/issues/42908
* Fix flay not detecting identical codeZeger-Jan van de Weg2018-01-311-1/+1
| | | | | | | | | Previously the script checked only for 'Similar code', but flay will tell users when IDENTICAL code is detected too. This should create a commit will create a failing pipeline, and to check that it does this commit is pushed. Fixes #42628
* Merge branch '41972-make-sure-no-warnings' into 'master'Robert Speicher2018-01-2914-233/+64
|\ | | | | | | | | | | | | Fail static-analysis if there's output to stderr Closes #41972 See merge request gitlab-org/gitlab-ce!16648
| * Eliminate the warnings for databaseLin Jen-Shin2018-01-261-11/+9
| |
| * Eliminate the warnings from task helpersLin Jen-Shin2018-01-2611-221/+45
| |
| * Convert parser warnings to stdout in haml_lintLin Jen-Shin2018-01-261-0/+9
| | | | | | | | | | So we ignore it in static-analysis when status is 0, yet still report it if it's not.
| * Ignore flay warningsLin Jen-Shin2018-01-261-1/+1
| |
* | Pass BUNDLE_PATH to install to the same path for test42290-pass-BUNDLE_PATHLin Jen-Shin2018-01-261-1/+5
|/
* Look for rugged with static analysislint-ruggedJacob Vosmaer2018-01-251-0/+2
|
* Merge branch 'patch-19' into 'master'Rémy Coutable2018-01-221-1/+1
|\ | | | | | | | | minor typo fix See merge request gitlab-org/gitlab-ce!16543
| * typo fixBen Bodenmiller2018-01-181-1/+1
| |
* | Merge branch 'fix-redirect-routes-schema' into 'master'Yorick Peterse2018-01-191-0/+2
|\ \ | |/ |/| | | | | rework indexes on redirect_routes See merge request gitlab-org/gitlab-ce!16211
| * Rework indexes on redirect_routes to be more effective and enforce a case ↵fix-redirect-routes-schemaGreg Stark2018-01-181-0/+2
| | | | | | | | insensitive unique path
* | Merge branch '1819-override-ce' into 'master'Rémy Coutable2018-01-152-0/+17
|\ \ | | | | | | | | | | | | CE: Override module to specify that we're overriding See merge request gitlab-org/gitlab-ce!16131
| * \ Merge remote-tracking branch 'upstream/master' into 1819-override-ceLin Jen-Shin2018-01-1212-95/+100
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (621 commits) Add a note about GitLab QA page objects validator to docs Refactor dispatcher projects blame and blob path Update export message to mention we can download the file from the UI Fix Ctrl+Enter keyboard shortcut saving comment/note edit fix case where tooltip messes up :last-child selector Add reason to keep postgresql 9.2 for CI Remove warning noise in ProjectImportOptions Add changelog entry Add RedirectRoute factory Update Ingress extra cost note to be more generic Fix Rubocop offense Refactor dispatcher project branches path Revert "Revert "Fix Route validation for unchanged path"" Document that we need rsync for backing up Docs: move article "Laravel and Envoy w/ CI/CD" Recommend against the use of EFS Adds Rubocop rule for line break around conditionals Update CHANGELOG.md for 10.1.6 Filter out build traces from logged parameters Refactored project:n* imports in dispatcher.js ...
| * | Use `Gitlab::Utils::Override` over defined?(super)Lin Jen-Shin2017-12-262-0/+17
| | |
* | | Merge branch '38540-ssh-env-file' into 'master'Douwe Maan2018-01-151-10/+0
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Resolve "rake gitlab:shell:install creates ~git/.ssh/environment which gitlab:check complains about" Closes #38540 See merge request gitlab-org/gitlab-ce!16114
| * | Remove .ssh/environment file that now breaks the gitlab:check rake taskRicketts, M (Mike)2017-12-221-10/+0
| |/
* | Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-119-0/+16
| |
* | Fix small typosDouglas Barbosa Alexandre2018-01-091-1/+1
| |
* | Add rake task to check integrity of uploaded filesDouglas Barbosa Alexandre2018-01-081-0/+44
| |
* | Allow local tests to use a modified GitalyJacob Vosmaer (GitLab)2018-01-051-55/+2
| |
* | refactor spec, add docsJames Lopez2018-01-041-0/+1
| |
* | deprecate check integrity taskJames Lopez2018-01-041-39/+2
| |
* | add locks chekJames Lopez2018-01-041-1/+25
| |
* | remove max-depth flag so it works with subgroupsJames Lopez2018-01-041-1/+1
| |
* | add new git fsck rake task and specJames Lopez2018-01-041-0/+10
|/
* Add index on namespaces lower(name) for UsersController#existsindex-namespaces-lower-nameGreg Stark2017-12-211-0/+2
|
* Merge remote-tracking branch 'upstream/master' into no-ivar-in-modulesLin Jen-Shin2017-12-151-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (671 commits) Make rubocop happy Use guard clause Improve language Prettify Use temp branch Pass info about who started the job and which job triggered it Docs: add indexes for monitoring and performance monitoring clearer-documentation-on-inline-diffs Add docs for commit diff discussion in merge requests sorting for tags api Clear BatchLoader after each spec to prevent holding onto records longer than necessary Include project in BatchLoader key to prevent returning blobs for the wrong project moved lfs_blob_ids method into ExtractsPath module Converted JS modules into exported modules spec fixes Bump gitlab-shell version to 5.10.3 Clear caches before updating MR diffs Use new Ruby version 2.4 in GitLab QA images moved lfs blob fetch from extractspath file Update GitLab QA dependencies ...
| * Add a gitlab:tcp_check rake taskNick Thomas2017-12-131-0/+20
| | | | | | | | This allows us to avoid relying on telnet / netcat being installed
* | Merge remote-tracking branch 'upstream/master' into no-ivar-in-modulesLin Jen-Shin2017-11-304-18/+78
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (170 commits) support ordering of project notes in notes api Redirect to an already forked project if it exists Reschedule the migration to populate fork networks Create fork networks for forks for which the source was deleted. Fix item name and namespace text overflow in Projects dropdown Minor backport from EE fix link that was linking to `html` instead of `md` Backport epic tasklist Add timeouts for Gitaly calls SSHUploadPack over Gitaly is now OptOut fix icon colors in commit list Fix star icon color/stroke Backport border inline edit Add checkboxes to automatically run AutoDevops pipeline BE for automatic pipeline when enabling Auto DevOps I am certainly weary of debugging sidekiq but I don't think that's what was meant Ensure MRs always use branch refs for comparison Fix issue comment submit button disabled on GFM paste Lock seed-fu at the correct version in Gemfile.lock Improve indexes on merge_request_diffs ...
| * Merge branch 'hashed-storage-attachments-migration-path' into 'master'Nick Thomas2017-11-281-15/+70
| |\ | | | | | | | | | | | | Hashed storage attachments migration path See merge request gitlab-org/gitlab-ce!15352