1. 21 Oct, 2016 13 commits
    • Yorick Peterse's avatar
      Re-organize queues to use for Sidekiq · 97731760
      Yorick Peterse authored
      Dumping too many jobs in the same queue (e.g. the "default" queue) is a
      dangerous setup. Jobs that take a long time to process can effectively
      block any other work from being performed given there are enough of
      these jobs.
      
      Furthermore it becomes harder to monitor the jobs as a single queue
      could contain jobs for different workers. In such a setup the only
      reliable way of getting counts per job is to iterate over all jobs in a
      queue, which is a rather time consuming process.
      
      By using separate queues for various workers we have better control over
      throughput, we can add weight to queues, and we can monitor queues
      better. Some workers still use the same queue whenever their work is
      related. For example, the various CI pipeline workers use the same
      "pipeline" queue.
      
      This commit includes a Rails migration that moves Sidekiq jobs from the
      old queues to the new ones. This migration also takes care of doing the
      inverse if ever needed. This does require downtime as otherwise new jobs
      could be scheduled in the old queues after this migration completes.
      
      This commit also includes an RSpec test that blacklists the use of the
      "default" queue and ensures cron workers use the "cronjob" queue.
      
      Fixes gitlab-org/gitlab-ce#23370
      97731760
    • Sean McGivern's avatar
      Merge branch 'fix_project_member_access_levels' into 'master' · 6c09fbd8
      Sean McGivern authored
      Fix project member access levels
      
      Migrate invalid project members (owner -> master)
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/18616
      
      See merge request !6957
      6c09fbd8
    • Rémy Coutable's avatar
      Merge branch 'master' into 'master' · 1e66061b
      Rémy Coutable authored
      Update Documentation image when configuring Build emails in Services
      
      ## What does this MR do?
      
      Replace old GitLab image in documentation with a new image showing the new position of Services and the module 'Build emails'
      
      ## Why was this MR needed?
      
      GitLab's layout changed with version 8.9 and the buttons were moved.
      
      See merge request !5139
      1e66061b
    • Rémy Coutable's avatar
      Merge branch 'sh-fix-label-uniquness-migration' into 'master' · 075b6ba5
      Rémy Coutable authored
      Fix broken label uniqueness label migration
      
      The previous implementation of the migration failed on staging because
      the migration was attempted to remove labels from projects that did not
      actually have duplicates. This occurred because the SQL query did not
      account for the project ID when selecting the labels.
      
      To replicate the problem:
      
      1. Disable the uniqueness validation in app/models/label.rb.
      2. Create a duplicate label "bug" in project A.
      3. Create the same label in project B with label "bug".
      
      The migration will attempt to remove the label in B even if there are no duplicates.
      
      To fix the issue, include the project ID when selecting the labels.
      
      Closes #23609
      
      See merge request !7030
      075b6ba5
    • Robert Speicher's avatar
      Merge branch 'change-rubocop-to-2-1' into 'master' · cd2275ce
      Robert Speicher authored
      Change target Ruby version for RuboCop to 2.1
      
      We have to use the lowest common denominator to check the supported syntax and in our case it is Ruby 2.1. Please note that it will not help with unsupported syntax in HAML files because they are not checked by Rubocop.
      
      See merge request !6978
      cd2275ce
    • Rémy Coutable's avatar
      Merge branch 'patch-1' into 'master' · 257789e9
      Rémy Coutable authored
      [Doc] Fix `ref` parameter name for `commits/statuses`
      
      The attribute to filter by branch or tag needs to be named `ref`, not `ref_name`. And indeed the attribute in the JSON response is `ref` (and not `ref_name`).
      
      Tested on Gitlab CE 8.9.
      
      See merge request !4876
      257789e9
    • Yorick Peterse's avatar
      Merge branch '14192-issues-closed-by-merge-requests-using-metrics-data' into 'master' · 60adbef4
      Yorick Peterse authored
      Use MergeRequestsClosingIssues cache data on Issue#closed_by_merge_requests method
      
      See merge request !6996
      60adbef4
    • Stan Hu's avatar
      Fix broken label uniqueness label migration · b332931a
      Stan Hu authored
      The previous implementation of the migration failed on staging because
      the migration was attempted to remove labels from projects that did not
      actually have duplicates. This occurred because the SQL query did not
      account for the project ID when selecting the labels.
      
      To replicate the problem:
      
      1. Disable the uniqueness validation in app/models/label.rb.
      2. Create a duplicate label "bug" in project A.
      3. Create the same label in project B with label "bug".
      
      The migration will attempt to remove the label in B even if there are no duplicates.
      
      Closes #23609
      b332931a
    • Valery Sizov's avatar
      Fix project member access levels · 168197cd
      Valery Sizov authored
      168197cd
    • Rémy Coutable's avatar
      Merge branch 'sh-disable-warm-asset-cache-ci' into 'master' · e647af36
      Rémy Coutable authored
      Disable warming of the asset cache in Spinach tests under CI
      
      I suspect some combination of Knapsack tests cause no regular Rack tests
      to be loaded (i.e. all JavaScript tests), which leads to the error:
      
      ArgumentError: rack-test requires a rack application, but none was given
      
      In CI, we precompile all the assets so there is no need to warm the
      asset cache in any case.
      
      Closes #23613
      
      See merge request !7033
      e647af36
    • Sean Packham's avatar
      Merge branch 'edit-glossary' into 'master' · cf837df9
      Sean Packham authored
      Edit glossary
      
      Grammar fixes & new additions to the glossary page.
      
      See merge request !7027
      cf837df9
    • Stan Hu's avatar
      Disable warming of the asset cache in Spinach tests under CI · cf31a0f0
      Stan Hu authored
      I suspect some combination of Knapsack tests cause no regular Rack tests
      to be loaded (i.e. all JavaScript tests), which leads to the error:
      
      ArgumentError: rack-test requires a rack application, but none was given
      
      In CI, we precompile all the assets so there is no need to warm the
      asset cache in any case.
      
      Closes #23613
      cf31a0f0
    • Valery Sizov's avatar
      Merge branch... · 9df2115a
      Valery Sizov authored
      Merge branch '12622-backup-restore-doesn-t-clear-cache-resulting-in-missing-branches-and-tags' into 'master'
      
      Fix: Backup restore doesn't clear cache
      
      ## What does this MR do?
      
      Clears cache when we do backup restoring. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/12622
      
      
      
      ## What are the relevant issue numbers?
      
      https://gitlab.com/gitlab-org/gitlab-ce/issues/12622
      
      See merge request !7019
      9df2115a
  2. 20 Oct, 2016 27 commits