summaryrefslogtreecommitdiff
path: root/spec/workers
Commit message (Collapse)AuthorAgeFilesLines
* Fix high CPU usage when PostReceive receives refs/merge-requests/<id>push-refKamil Trzcinski2016-04-111-4/+39
|
* Migrate Repository#local_branches from gitlab-ee.update_repository_from_eeRubén Dávila2016-04-011-0/+2
| | | | | This will help us to avoid posible merge conflicts when merging gitlab-ce to gitlab-ee
* Check if repo exists before attempting to update cache infoStan Hu2016-03-271-0/+27
| | | | Closes #14361
* Cache output of Repository#exists?Yorick Peterse2016-03-191-4/+15
| | | | | | | | | This caches the output of Repository#exists? in Redis while making sure it's flushed properly when creating new repositories, deleting them, etc. For the ProjectWiki tests to work I had to make ProjectWiki#create_repo! public as testing private methods in RSpec is a bit of a pain.
* Specs for the DeleteUserServiceworker-for-user-deletionZeger-Jan van de Weg2016-03-151-49/+11
|
* Clearify who deletes the userZeger-Jan van de Weg2016-03-151-1/+1
|
* Target right release, rebase got it wrongZeger-Jan van de Weg2016-03-151-2/+2
|
* Specs on force deleting of a userZeger-Jan van de Weg2016-03-151-6/+42
|
* A worker deletes a user, so the request doesn't time outZeger-Jan van de Weg2016-03-151-0/+22
| | | | Fixes #13261
* web hooks to webhooksashleys2016-03-101-1/+1
|
* Expire caches after forking/importing a repositoryYorick Peterse2016-02-172-0/+31
| | | | | | | | This ensures the caches for Repository#empty? and Repository#has_visible_content? are flushed after a repository has been imported or forked. Fixes gitlab-org/gitlab-ce#13505
* Write to InfluxDB directly via UDPYorick Peterse2015-12-291-52/+0
| | | | | | | | | | | | | This removes the need for Sidekiq and any overhead/problems introduced by TCP. There are a few things to take into account: 1. When writing data to InfluxDB you may still get an error if the server becomes unavailable during the write. Because of this we're catching all exceptions and just ignore them (for now). 2. Writing via UDP apparently requires the timestamp to be in nanoseconds. Without this data either isn't written properly. 3. Due to the restrictions on UDP buffer sizes we're writing metrics one by one, instead of writing all of them at once.
* Fixed styling of MetricsWorker specsYorick Peterse2015-12-281-1/+1
|
* Drop empty tag values from metricsYorick Peterse2015-12-171-0/+8
| | | | | InfluxDB throws an error when trying to store a list of tags where one or more have an empty value.
* Cast values to strings before escaping themYorick Peterse2015-12-171-0/+4
| | | | | This ensures that e.g. line numbers used in tags are first casted to strings.
* Added specs for MetricsWorkerYorick Peterse2015-12-171-0/+40
|
* Fixed Rubocop offensesGabriel Mazetto2015-12-152-11/+13
|
* Fix specsKamil Trzcinski2015-12-101-2/+2
|
* Migrate CI::Services and CI::WebHooks to Services and WebHooksKamil Trzcinski2015-12-101-0/+35
|
* fix specsrails_update_to_4_2Valery Sizov2015-11-301-6/+8
|
* Fix specsDouwe Maan2015-11-181-1/+0
|
* Cleanup stuck CI builds dailydrop-old-buildsKamil Trzcinski2015-11-031-0/+44
|
* Remove RepositoryArchiveWorker specsJacob Vosmaer2015-10-141-79/+0
| | | | These tasks have shifted to gitlab_git and gitlab-git-http-server.
* Rename reply_by_email to incoming_email to prepare for the future.Douwe Maan2015-09-211-2/+2
|
* remove API calls from CE to CIci_closer_integrationValery Sizov2015-09-181-10/+0
|
* Import forked repositories asynchronously to prevent large repositories from ↵Stan Hu2015-09-111-0/+29
| | | | | | | | | timing out Use import_status to track async import status and give feedback to the user Closes #2388 Closes #2400
* Expire cache when merge request source branch was removedfix-branches-cache-after-mergeDmitriy Zaporozhets2015-08-282-1/+29
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'handle-smtp-input-errors' into 'master'Dmitriy Zaporozhets2015-08-251-0/+34
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries ### What does this MR do? This MR gracefully handles SMTP input errors (e.g. incorrect or invalid e-mail addresses) to prevent these types of exceptions from causing Sidekiq to retry the task. If these specific exceptions occur, they will be logged, and the e-mail will be dropped from the queue. ### Why was this MR needed? If you include an author that has a misspelled e-mail address, Sidekiq will keep sending e-mail to all the recipients even if they have already received the e-mail. The only way to recover is to clear the Sidekiq queue. Note that other exceptions can still be thrown (e.g. `IOError`, `Net::SMTPAuthenticationError`, `Net::SMTPServerBusy`, `Net::SMTPUnknownError`, and `TimeoutError`). If the worker encounters these, Sidekiq should retry the task. ### What are the relevant issue numbers? Closes https://github.com/gitlabhq/gitlabhq/issues/9560 See merge request !1163
| * Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to ↵Stan Hu2015-08-191-0/+34
| | | | | | | | | | | | prevent Sidekiq retries Closes https://github.com/gitlabhq/gitlabhq/issues/9560
* | Add fixture_file helper.Douwe Maan2015-08-201-6/+0
| |
* | Update spec.Douwe Maan2015-08-201-2/+2
| |
* | Test EmailReceiverWorker.Douwe Maan2015-08-201-0/+51
|/
* Merge branch 'master' into rubocop-for-testsDmitriy Zaporozhets2015-06-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/features/issues_spec.rb spec/models/forked_project_link_spec.rb spec/models/hooks/service_hook_spec.rb spec/models/hooks/web_hook_spec.rb spec/models/project_services/hipchat_service_spec.rb spec/requests/api/project_members_spec.rb spec/requests/api/projects_spec.rb spec/requests/api/system_hooks_spec.rb spec/services/archive_repository_service_spec.rb spec/support/matchers.rb spec/tasks/gitlab/backup_rake_spec.rb
| * Update mock and stub syntax for specsRobert Speicher2015-06-221-1/+1
| |
* | Fix Style/TrailingBlankLines cop violationsRobert Speicher2015-06-221-1/+0
|/
* CI forking: testsValery Sizov2015-04-061-0/+10
|
* Add tests.Douwe Maan2015-03-311-0/+80
|
* Prevent gitlab-shell character encoding issues by receiving its changes as ↵Douwe Maan2015-03-151-9/+9
| | | | raw data.
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-8/+8
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Fix post-receive specsDmitriy Zaporozhets2014-09-021-4/+7
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'improve/mr_diff'Dmitriy Zaporozhets2014-01-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: features/steps/project/project_fork.rb features/steps/project/project_forked_merge_requests.rb features/steps/project/project_issue_tracker.rb features/steps/project/project_markdown_render.rb features/steps/shared/project.rb
| * Make changes to testsDmitriy Zaporozhets2014-01-221-1/+1
| | | | | | | | | | | | | | * project_with_code -> project * project -> ermpty_project Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Remove deprecated findersskv2014-01-191-1/+1
|/
* fixed test using repo with commits but old factoryDmitriy Zaporozhets2013-04-011-1/+1
|
* Fixing testsDmitriy Zaporozhets2013-02-251-2/+0
|
* fixing tests after refactoringDmitriy Zaporozhets2013-02-111-1/+1
|
* Fixed: post-receive, project remove, testsDmitriy Zaporozhets2013-02-051-2/+2
|
* sidekiq with green testsDmitriy Zaporozhets2013-01-091-4/+4
|
* Update uses of Gitolite.config.foo settingsRiyad Preukschas2012-12-201-1/+1
|
* Fix spec/workers/post_receive_spec.rbDmitriy Zaporozhets2012-12-131-2/+2
|