summaryrefslogtreecommitdiff
path: root/app/workers
Commit message (Collapse)AuthorAgeFilesLines
* Do not return false in commit status transitionfeature/improve-async-pipeline-processingGrzegorz Bizon2016-10-042-6/+4
|
* Update order of build transition callbacksGrzegorz Bizon2016-10-042-8/+6
|
* Extract updating pipeline status to async workerGrzegorz Bizon2016-10-042-9/+16
|
* Fix async pipeline and remove unrelated changesGrzegorz Bizon2016-10-041-1/+1
|
* Make pipeline processing asynchronousKamil Trzcinski2016-10-031-0/+17
| | | | | | Conflicts: app/models/ci/pipeline.rb app/models/commit_status.rb
* Optimized event pruning query to avoid two queries.Olaf Tomalka2016-09-071-2/+11
|
* Limited amount of pruned Event rows per runOlaf Tomalka2016-09-071-1/+1
| | | | | | | | Old deployments of Gitlab might have a big number of old events to be deleted. Such numbers cause the worker to timeout. I've limited the amount of rows that should be destroyed at once to 10000, and increased how often pruning shall take place to 4 times a day.
* Added cron to prune events older than 12 months.Olaf Tomalka2016-09-071-0/+8
| | | | | | | | Since contribution calendar shows only 12 months of activity, events older than that time are not visible anywhere and can be safely pruned saving big amount of database storage. Fixes #21164
* Does not halt the GitHub import process when an error occursDouglas Barbosa Alexandre2016-08-241-0/+2
|
* Merge branch ↵Douwe Maan2016-08-191-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '21010-emailsonpushworker-incorrectly-claims-deleted-a-commit-after-a-push' into 'master' Resolve "EmailsOnPushWorker incorrectly claims deleted a commit after a push" ## What does this MR do? Fix the comparison order in the emails on push worker, so regular pushes don't show a message about force pushing. ## Are there points in the code the reviewer needs to double check? Don't think so, it was just a typo: `after_sha` should map to the `source_branch` argument, because it's the head of the comparison. ## Why was this MR needed? To fix a regression! ## What are the relevant issue numbers? Closes #21010. ## Does this MR meet the acceptance criteria? - [x] ~~[CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added~~ - [x] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~ - [x] ~~API support added~~ - Tests - [x] Added for this feature/bug - [ ] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5894
| * Fix force-push message in push emailsSean McGivern2016-08-191-2/+2
| | | | | | | | | | `after_sha` maps to the source branch, as it's the head of our compare, so these were just the wrong way around.
* | Allow project group links to be expiredSean McGivern2016-08-181-0/+7
| |
* | Merge branch 'master' into expiration-date-on-membershipsSean McGivern2016-08-188-20/+40
|\ \ | |/
| * Tracking of custom eventscustom-events-trackingYorick Peterse2016-08-172-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GitLab Performance Monitoring is now able to track custom events not directly related to application performance. These events include the number of tags pushed, repositories created, builds registered, etc. The use of these events is to get a better overview of how a GitLab instance is used and how that may affect performance. For example, a large number of Git pushes may have a negative impact on the underlying storage engine. Events are stored in the "events" measurement and are not prefixed with "rails_" or "sidekiq_", this makes it easier to query events with the same name triggered from different parts of the application. All events being stored in the same measurement also makes it easier to downsample data. Currently the following events are tracked: * Creating repositories * Removing repositories * Changing the default branch of a repository * Pushing a new tag * Removing an existing tag * Pushing a commit (along with the branch being pushed to) * Pushing a new branch * Removing an existing branch * Importing a repository (along with the URL we're importing) * Forking a repository (along with the source/target path) * CI builds registered (and when no build could be found) * CI builds being updated * Rails and Sidekiq exceptions Fixes gitlab-org/gitlab-ce#13720
| * Fix bug where destroying a namespace would not always destroy projectsStan Hu2016-08-111-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a race condition in DestroyGroupService now that projects are deleted asynchronously: 1. User attempts to delete group 2. DestroyGroupService iterates through all projects and schedules a Sidekiq job to delete each Project 3. DestroyGroupService destroys the Group, leaving all its projects without a namespace 4. Projects::DestroyService runs later but the can?(current_user, :remove_project) is `false` because the user no longer has permission to destroy projects with no namespace. 5. This leaves the project in pending_delete state with no namespace/group. Projects without a namespace or group also adds another problem: it's not possible to destroy the container registry tags, since container_registry_path_with_namespace is the wrong value. The fix is to destroy the group asynchronously and to run execute directly on Projects::DestroyService. Closes #17893
| * Merge branch 'decode-log-postreceive-args' into 'master' Douwe Maan2016-08-081-0/+4
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Log base64-decoded PostReceive arguments The change to base64-encoding the third argument to PostReceive in gitlab-shell made our Sidekiq ArgumentsLogger a little less useful. This change adds decoded data to the log statement. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/20381 See merge request !5547
| | * Log base64-decoded PostReceive argumentsJacob Vosmaer2016-08-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | The change to base64-encoding the third argument to PostReceive in gitlab-shell made our Sidekiq ArgumentsLogger a little less useful. This change adds a log statement for the decoded data. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/20381
| * | Merge branch 'fix/ha-mode-import-issue' into 'master' Rémy Coutable2016-08-041-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Import/Export not working in HA mode Use a shared path instead of `Tempfile` default `/tmp` so the import file is accessible by any GitLab instance. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/20506 - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5618
| | * | using shared path for project import uploads and refactored gitlab remove ↵James Lopez2016-08-041-2/+2
| | | | | | | | | | | | | | | | export worker
| * | | Fix skip_repo parameter being ignored when destroying a namespaceStan Hu2016-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When destroying a namespace, the `skip_repo` parameter is supposed to prevent the repository directory from being destroyed and allow the namespace after_destroy hook to run. If the namespace fails to be deleted for some reason, we could be left with repositories that are deleted with existing projects.
| * | | Use commit deltas when counting files in IrkerWorkerfix/speed-up-commit-repo-changesAhmad Sherif2016-08-031-1/+1
| | | |
| * | | switch from diff_file_collection to diffs20034-safe-diffsPaco Guzman2016-08-032-9/+6
| | | | | | | | | | | | | | | | So we have raw_diffs too
| * | | Introduce Compare model in the codebase.Paco Guzman2016-08-031-13/+7
| | | | | | | | | | | | This object will manage Gitlab::Git::Compare instances
| * | | Move to Gitlab::Diff::FileCollectionPaco Guzman2016-08-031-1/+1
| |/ / | | | | | | Instead calling diff_collection.count use diff_collection.size which is cache on the diff_collection
* | | Create Member.expired scope.Adam Niedzielski2016-08-091-1/+1
| | |
* | | Single quotes all the way.Adam Niedzielski2016-08-071-1/+1
| | |
* | | Use Members::AuthorizedDestroyService in RemoveExpiredMembersWorker.Adam Niedzielski2016-08-041-2/+2
| | |
* | | Add worker which removes expired members.Adam Niedzielski2016-08-041-0/+13
|/ /
* | Merge remote-tracking branch 'upstream/master' into new-issue-by-emailLin Jen-Shin2016-07-272-2/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (38 commits) Remove useless new route Update gitlab-shell version to 3.2.1 in the 8.9->8.10 update guide Fix typo in Elixir CI template Add a spec for access_for_user_ids Fix typo in comment Rubocop offenses Optimize the invited group link access level check Incorporate review comments Optimize maximum user access level lookup in loading of notes Fix missing schema update for 20160722221922 Whitelist 'Simplified BSD' license Fix a bug where forking a project from a repository storage to another would fail Remove inline scripts from import pages. Make branches sortable without push permission (!5462) Profile requests when a header is passed Upgrade database_cleaner from 1.4.1 to 1.5.3. Show release notes in tag list Fix expand all diffs button in compare view Add route for Import::GithubController#new Update CHANGELOG ...
| * Merge branch 'feature/profile-requests-conditionally' into 'master' Douwe Maan2016-07-261-0/+9
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return request profiling info when a header is passed ## What does this MR do? It allows returning profiling info (instead of actual content) when a certain header is passed ## Why was this MR needed? To facilitate having a performance overview of certain requests. ## What are the relevant issue numbers? https://gitlab.com/gitlab-com/infrastructure/issues/211 ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~ - [ ] ~~API support added~~ - ~~Tests~~ - [ ] ~~Added for this feature/bug~~ - [ ] ~~All builds are passing~~ - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5281
| | * Profile requests when a header is passedfeature/profile-requests-conditionallyAhmad Sherif2016-07-261-0/+9
| | |
| * | Fix a bug where forking a project from a repository storage to another would ↵20302-forking-a-project-from-one-storage-to-another-failsAlejandro Rodríguez2016-07-261-2/+3
| |/ | | | | | | fail
* | Merge remote-tracking branch 'upstream/master' into new-issue-by-emailLin Jen-Shin2016-07-263-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (620 commits) Added '*.js.es6 gitlab-language=javascript' to .gitattributes Fix CI status icon link underline Update CHANGELOG after 8.10.1 Add CHANGELOG Add es6 gem Instrument Nokogiri parsing methods Fix backup restore Use project ID in repository cache to prevent stale data from persisting across projects Add iid to MR API response `WikiPage` should have a slug even when not persisted. ES6ify all the things! Make fork counter always clickable (!5463) Revert "Merge branch '17073-tagscontroller-index-is-terrible-response-time-goes-up-to-5-…" Fix CHANGELOG Add spec for dashes in paths Fix Error 500 when creating Wiki pages with hyphens or spaces Add links to the real markdown.md file for all GFM examples Remove magic comments from Ruby files (!5456) Ignore invalid trusted proxies in X-Forwarded-For header remove search_id for label dropdown filter ...
| * Add service to clean up repository archive cacheDouglas Barbosa Alexandre2016-07-211-1/+1
| | | | | | | | | | Replace invocation of `find` with Ruby code that matches old cached files in a better, and safe way to avoid data-integrity issues.
| * Fix emails on push for new and deleted branches20061-emailsonpushworker-fails-on-new-branch-pushesSean McGivern2016-07-211-2/+2
| |
| * limit project expor retry to only 3James Lopez2016-07-181-1/+1
| |
* | Merge remote-tracking branch 'upstream/master' into new-issue-by-emailLin Jen-Shin2016-07-151-1/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: navbar_icon was renamed to custom_icon in: Fix spec Don't attempt to disable statement timeout on a MySQL DB Disable statement timeout outside of transaction and during adding concurrent index Disable PostgreSQL statement timeout during migrations Add visibility icon Remove previously introduced CSS that will not be used anymore Make admin/groups view consistent with dashboard/groups Fix New Group button spacing on mobile Make CSS consistent again Rename .group-controls to .controls Remove unnecesary CSS class Change bg color of collapsed diff to blue on hover Reduce padding on collapsed diff message updated changelog fixed similar issue with gitlab.com importer because why not! fix updated_at not preserved after import - for GitLab projects Update permissons links to new page CHANGELOG Changed collapsed assignee tooltip to users name Fixes tooltip when updating the assignee Refresh branch cache after `git gc`
| * Refresh branch cache after `git gc`Stan Hu2016-07-131-1/+3
| | | | | | | | Possible workaround for #15392
* | Merge remote-tracking branch 'upstream/master' into new-issue-by-emailLin Jen-Shin2016-07-158-17/+58
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (1547 commits) Add margin between buttons if both retry and cancel are present Add margin between labels; remove underline hover style on status button udpated JS based on feedback Use default cursor for table header of project files (!5165) Fix duplicated entry in changelog [ci skip] Improves left static sidebar behaviour Include default callback URL (OAuth) Cleanup feature proposal template Simplify regex for string-based multi-word label surrounded in quotes Revert "Merge branch '18193-developers-can-merge' into 'master' " Upgrade Rails from 4.2.6 to 4.2.7. some JS magic to fix empty URL bug formats my test properly Update CHANGELOG Doesn't match empty label references surrounded in quotes Fix markdown rendering for label references that contains `.` Fix markdown rendering for label references that begin with a digit Fix markdown rendering for consecutive label references Stub omniauth provider for GitLab Update CHANGELOG ...
| * Expire the branch cache after `git gc` runsStan Hu2016-07-122-10/+14
| | | | | | | | | | | | | | Due to a stale NFS cache, it's possible that a branch lookup fails while `git gc` is running and causes missing branches in merge requests. Possible workaround for #15392
| * Represent DiffRefs as proper class instead of tuple arrayDouwe Maan2016-07-061-2/+14
| |
| * Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-292-4/+4
| |
| * Merge branch 'repo-check-require-push-events' into 'master' Robert Speicher2016-06-171-1/+5
| |\ | | | | | | | | | | | | | | | | | | | | | Do not check repos without push events Reduce false positives from automatic repository checks by skipping projects without push events. See merge request !4684
| | * Do not check repos without push eventsJacob Vosmaer2016-06-151-1/+5
| | |
| * | fixed merge conflicts on UI branchJames Lopez2016-06-162-1/+14
| |\ \
| | * \ fixed merge conflictsJames Lopez2016-06-162-1/+14
| | |\ \
| | | * \ Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵feature/project-exportJames Lopez2016-06-162-1/+14
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | feature/project-export # Conflicts: # app/models/ci/pipeline.rb
| | | * | Revert "squashed merge and fixed conflicts"James Lopez2016-06-162-14/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit 13e37a3ee5c943525a99481b855d654e97e8597c.
| | | * | squashed merge and fixed conflictsJames Lopez2016-06-162-1/+14
| | | | |
| * | | | enable retry on workerJames Lopez2016-06-151-2/+1
| | | | |