summaryrefslogtreecommitdiff
path: root/spec/workers
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '42099-port-push-mirroring-to-ce-ce-port-v-2' into 'master'Douwe Maan2018-05-072-0/+134
|\ | | | | | | | | | | | | CE backport of Backports Push Mirrors to CE Closes #42099 See merge request gitlab-org/gitlab-ce!18715
| * Backports every CE related change from ee-5484 to CETiago Botelho2018-05-072-0/+134
| |
* | Fix rubocop violationToon Claes2018-05-071-1/+0
| |
* | Use push events again to determine if repo needs checkingToon Claes2018-05-071-12/+22
| |
* | Project#repository_storage_path no longer existsToon Claes2018-05-071-4/+4
| |
* | Refactor RepositoryCheck::SingleRepositoryWorkerToon Claes2018-05-071-32/+44
| | | | | | | | | | | | | | | | | | | | A repo does not need pushes before it will be repo-checked. There are other sources where commits can come from (e.g. import or webIDE). In the test I made the method of breaking a repo more robust. And added a few test examples. See also gitlab-org/gitlab-ce#45046.
* | Remove `Rails.env.test?` from production codeToon Claes2018-05-071-2/+2
| |
* | Do not send repository check mails when they are disabledToon Claes2018-05-071-0/+41
|/ | | | | In case the repository checks are disabled, do not send the mails. Otherwise it might send the same failures over and over again.
* Backports every CE related change from ee-44542 to CETiago Botelho2018-05-044-16/+30
|
* Makes namespaceless project destroy worker spec not depend on a specific ↵Tiago Botelho2018-04-301-9/+6
| | | | migration version
* Move NotificationService calls to SidekiqSean McGivern2018-04-252-2/+46
| | | | | | | | | | | | | | | | | | | | | The NotificationService has to do quite a lot of work to calculate the recipients for an email. Where possible, we should try to avoid doing this in an HTTP request, because the mail are sent by Sidekiq anyway, so there's no need to schedule those emails immediately. This commit creates a generic Sidekiq worker that uses Global ID to serialise and deserialise its arguments, then forwards them to the NotificationService. The NotificationService gains an `#async` method, so you can replace: notification_service.new_issue(issue, current_user) With: notification_service.async.new_issue(issue, current_user) And have everything else work as normal, except that calculating the recipients will be done by Sidekiq, which will then schedule further Sidekiq jobs to send each email.
* Ignore ordering in IssueDueSchedulerWorker specSean McGivern2018-04-201-1/+3
|
* Use `bulk_perform_async` to schedule issue due emailsSean McGivern2018-04-171-2/+1
|
* Merge branch 'master' into 'stuartnelson3/gitlab-ce-stn/issue-due-email'Sean McGivern2018-04-103-40/+95
|\ | | | | | | # Conflicts: # db/schema.rb
| * Work around Ruby 2.3.7 bug by defining prepended class methods needed for testsStan Hu2018-04-091-0/+6
| |
| * Merge branch 'fix/use-shard-name-in-gitlab-projects-instead-of-shard-path' ↵Sean McGivern2018-04-041-40/+61
| |\ | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Use shard name in Git::GitlabProjects instead of shard path Closes gitaly#1110 See merge request gitlab-org/gitlab-ce!18015
| | * Use shard name in Git::GitlabProjects instead of shard pathAhmad Sherif2018-04-031-40/+61
| | | | | | | | | | | | Closes gitaly#1110
| * | Extend API for exporting a project with direct upload URLFrancisco Javier López2018-03-301-0/+28
| |/
* | Send emails for issues due tomorrowSean McGivern2018-03-303-17/+44
| | | | | | | | | | | | Also, refactor the mail sending slightly: instead of one worker sending all emails, create a worker per project with issues due, which will send all emails for that project.
* | Merge branch 'master' into stuartnelson3/gitlab-ce-stn/issue-due-emailSean McGivern2018-03-301-0/+108
|\ \ | |/
| * Merge remote-tracking branch 'origin/master' into 40781-os-to-ceMicaël Bergeron2018-03-0814-42/+148
| |\
| * | fixing some broken mergesMicaël Bergeron2018-03-021-1/+1
| | |
| * | remove geo specific codeMicaël Bergeron2018-03-011-0/+108
| | |
* | | Remove 'useless' variable assignmentStuart Nelson2018-03-261-2/+2
| | |
* | | Add spec for issue_due_workerStuart Nelson2018-03-261-0/+7
| | |
* | | Create cron issue due spec skeletonStuart Nelson2018-03-261-0/+10
| |/ |/|
* | Update project activity when pushing to a wiki repositoryda-update-project-activityDouglas Barbosa Alexandre2018-03-071-0/+12
| |
* | Fix tests by latest proposal changesproper-fix-for-artifacts-serviceShinya Maeda2018-03-064-33/+3
| |
* | Integrate two workers into one ArchiveTraceWorker with pipeline_background ↵Shinya Maeda2018-03-061-0/+19
| | | | | | | | queue. This queue takes loqer precedence than pipeline_default.
* | Add spec for workersShinya Maeda2018-03-062-4/+32
| |
* | Merge branch 'sh-cleanup-after-git-gc' into 'master'Robert Speicher2018-03-051-0/+6
|\ \ | | | | | | | | | | | | Release libgit2 cache and open file descriptors after `git gc` run See merge request gitlab-org/gitlab-ce!17506
| * | Release libgit2 cache and open file descriptors after `git gc` runsh-cleanup-after-git-gcStan Hu2018-03-031-0/+6
| | | | | | | | | | | | Relates to #21879
* | | Merge branch 'dz-use-less-deprecated-methods' into 'master'Douwe Maan2018-03-055-5/+5
|\ \ \ | | | | | | | | | | | | | | | | Reduce usage of deprecated *_with_namespace methods See merge request gitlab-org/gitlab-ce!17523
| * | | Revert few more broken specs related to *_with_namespace methodsdz-use-less-deprecated-methodsDmitriy Zaporozhets2018-03-051-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | Update workers spec to use full_path instead of path_with_namespaceDmitriy Zaporozhets2018-03-054-4/+4
| |/ / | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Fix MR merge commit cross-references to the MR itselfSean McGivern2018-03-051-30/+44
|/ /
* | Merge branch '42643-persist-external-ip-of-ingress-controller-gke' into 'master'Kamil Trzciński2018-03-011-0/+30
|\ \ | | | | | | | | | | | | Display ingress IP address in the Kubernetes page See merge request gitlab-org/gitlab-ce!17052
| * | Remove redundant code and increase delay for ↵Dylan Griffith2018-02-251-1/+1
| | | | | | | | | | | | ClusterWaitForIngressIpAddressWorker (#42643)
| * | Simplify retrying for ClusterWaitForIngressIpAddressWorker and style changesDylan Griffith2018-02-231-65/+0
| | | | | | | | | | | | (#42643)
| * | Merge branch 'master' into 42643-persist-external-ip-of-ingress-controller-gkeFilipa Lacerda2018-02-201-13/+36
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (30 commits) Docs: Pages - clean up articles Only use features for events Put all event metrics exposed to prometheus behind a feature flag Add version which LFS lock was introduced Remove unecessary validate: true from belongs_to :project fix broken specs remove common_d3 bundle remove graphs_show webpack bundle Chart.html.haml refactor Remove extraneous tests from Issues API spec [GH Import] Create an empty wiki if wiki import failed Resolve "group request membership mail with too long list of "To:"" Add changelog entry Fix single digit value clipping specify date format Increase feature flag cache TTL to one hour Convert Gitaly commit parent IDs to array as early as possible Clarify changelog for squash encoding fix Avoid slow File Lock checks when not used Fix squash rebase not working when diff contained encoded data ...
| * | | Refactor ingress IP address waiting code (#42643)Dylan Griffith2018-02-201-5/+80
| | | |
| * | | Persist external IP of ingress controller created for GKE (#42643)Dylan Griffith2018-02-151-0/+20
| | | |
* | | | Merge branch 'dz-namespace-id-not-null' into 'master'Yorick Peterse2018-03-011-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make project#namespace_id not null Closes #26052 See merge request gitlab-org/gitlab-ce!17448
| * | | | Update specs to respect Project#namespace_id not null constraintDmitriy Zaporozhets2018-03-011-1/+3
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Refactor plugins feature and make some doc improvementsDmitriy Zaporozhets2018-02-281-4/+10
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Refactor plugin execution methodDmitriy Zaporozhets2018-02-271-8/+0
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Add plugin queue to all_queues.ymlDmitriy Zaporozhets2018-02-261-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Handle excpetion in PluginWorkerDmitriy Zaporozhets2018-02-261-0/+27
|/ / / | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Merge branch 'dm-waitable-worker' into 'master'Sean McGivern2018-02-262-79/+92
|\ \ \ | | | | | | | | | | | | | | | | Extract WaitableWorker out of AuthorizedProjectsWorker See merge request gitlab-org/gitlab-ce!17356
| * | | Extract WaitableWorker out of AuthorizedProjectsWorkerDouwe Maan2018-02-262-79/+92
| | |/ | |/|