summaryrefslogtreecommitdiff
path: root/spec/workers
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '18709-reduce-git-calls' into 'master' Yorick Peterse2016-06-211-1/+1
| | | | | Remove calls to Rugged::BranchCollection#each from extracts_path before_action See merge request !4802
* Merge branch 'repo-check-require-push-events' into 'master' Robert Speicher2016-06-171-0/+29
| | | | | | | | Do not check repos without push events Reduce false positives from automatic repository checks by skipping projects without push events. See merge request !4684
* Merge branch 'make-sure-that-artifacts-file-is-saved' into 'master' Rémy Coutable2016-06-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | Make sure that artifacts_file is nullified after removing artifacts ## What does this MR do? Fixes a problem that `ExpireBuildArtifactsWorker` is executed for all previously removed artifacts. ## Why was this MR needed? Currently the `Ci::Build::erase_artifacts!` doesn't ensure that data are saved to database. The bang at end of this method lets you believe that it should do so. This adds a missing `save` to this method. ## What are the relevant issue numbers? None, yet. ## CHANGELOG Since this is regression in feature introduce in RC4 no CHANGELOG entry is needed. cc @grzesiek See merge request !4741
* Merge branch 'dont-drop-stuck-builds' into 'master' Stan Hu2016-06-151-3/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't fail builds for projects that are deleted when they are stuck ## What does this MR do? Solves when dropping stuck connection. ``` Dropping stuck pending build 1545510 for runner NoMethodError: undefined method `origin_merge_requests' for nil:NilClass from /opt/gitlab/embedded/service/gitlab-rails/app/services/merge_requests/base_service.rb:50:in `merge_request_from' from /opt/gitlab/embedded/service/gitlab-rails/app/services/merge_requests/base_service.rb:57:in `each_merge_request' from /opt/gitlab/embedded/service/gitlab-rails/app/services/merge_requests/add_todo_when_build_fails_service.rb:5:in `execute' from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:164:in `execute' from /opt/gitlab/embedded/service/gitlab-rails/app/models/commit_status.rb:51:in `block (2 levels) in <class:CommitStatus>' from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/state_machines-0.4.0/lib/state_machines/eval_helpers.rb:79:in `call' ... ``` This happens, because that `default_scope` of `Projects` filters returns the projects that are not deleted, where `Ci::Build` doesn't take into account. See merge request !4609
| * Don't fail builds for projects that are deleted when they are stuckdont-drop-stuck-buildsKamil Trzcinski2016-06-121-3/+16
| |
* | Fix specsKamil Trzcinski2016-06-141-10/+18
| |
* | Improve ExpireBuildArtifactsWorker specKamil Trzcinski2016-06-131-9/+4
| |
* | Improve testsKamil Trzcinski2016-06-131-15/+9
| |
* | Improve design based on reviewKamil Trzcinski2016-06-131-7/+11
| |
* | Save database after erasing artifactsKamil Trzcinski2016-06-131-0/+1
| |
* | Test ExpireBuildArtifactsWorkerKamil Trzcinski2016-06-131-0/+55
|/
* Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski2016-06-031-2/+2
|
* Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipelineKamil Trzcinski2016-06-021-4/+4
|
* Enable RSpec/NotToNot cop and auto-correct offensesrs-rubocop-nottonotRobert Speicher2016-05-241-1/+1
| | | | Also removes the note from the development/testing.md guide
* Fix creation of Ci::Commit object which can lead to pending, failed in some ↵Kamil Trzcinski2016-05-191-0/+16
| | | | scenarios
* Mask credentials from URL when import of project has failed.Rubén Dávila2016-05-181-6/+20
|
* Only generate repository push email onceSean McGivern2016-05-111-14/+51
| | | | | | | | | The repository push email can be very expensive to generate, especially with syntax-highlighted diffs. Instead of generating the email for each recipient, generate one email object and reset the Message-Id and To headers for each recipient. (Cloning would also be expensive in the case of large emails, although probably not as bad as generating from scratch.)
* Merge branch 'create-wikis-during-check' into 'master' Douwe Maan2016-05-041-5/+28
|\ | | | | | | | | | | | | | | | | Initialize wikis on legacy projects during check Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/4173 Helps https://gitlab.com/gitlab-org/gitlab-ce/issues/15423 See merge request !3931
| * Initialize wikis on legacy projects during checkJacob Vosmaer2016-04-261-5/+28
| |
* | Do not fsck projects less than a day oldJacob Vosmaer2016-04-261-4/+11
|/ | | | This should bring the number of false positives down.
* Destroy wikis uniformlyJacob Vosmaer2016-04-181-2/+6
|
* When a project wiki is disabled skip it for fsckJacob Vosmaer2016-04-181-0/+30
|
* Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into auto-fsckJacob Vosmaer2016-04-131-4/+39
|\
| * Fix high CPU usage when PostReceive receives refs/merge-requests/<id>push-refKamil Trzcinski2016-04-111-4/+39
| |
* | Use more conservative limitsJacob Vosmaer2016-04-131-6/+6
| |
* | Clear repository check columns asynchronouslyJacob Vosmaer2016-04-132-2/+19
| |
* | Changes suggested by RobertJacob Vosmaer2016-04-121-3/+3
| |
* | Add a 'circuit breaker' for repo checksJacob Vosmaer2016-04-121-0/+8
| |
* | Rename almost all the thingsJacob Vosmaer2016-04-062-31/+31
| |
* | Rebase repo check MRJacob Vosmaer2016-04-041-0/+31
|/
* 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
|