Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-15Merge branch '18451-track-new-redis-connections' into 'master' Douwe Maan
Resolve "Track the number of new Redis connections per transaction" ## What does this MR do? Add a new metric counter, `new_redis_connections`, that contains the number of calls to `Redis::Client#connect` in the current transaction. ## Are there points in the code the reviewer needs to double check? Not sure. I tested this in kind of a brute-force way: 1. Add a debugger in the monkey-patched `connect` method. 2. With metrics enabled, start the app and load a page. 3. The first Redis connection is created by `Rack::Attack` and isn't in a transaction, but still works fine. 4. The second Redis connection is within a transaction (the page load), and increments the counter. 5. If I reload the page, neither debugger is hit. 6. If I use a Redis client and do `CLIENT KILL` on my two existing clients, then reload the page, I get 3 and 4 again. 7. If I disable metrics collection, the debugger never gets hit. ## Why was this MR needed? We may have a Redis connection leak somewhere, so adding metrics will let us track this. ## What are the relevant issue numbers? Closes #18451. ## Screenshots (if relevant) Hahaha nope, not relevant. ## Does this MR meet the acceptance criteria? - [ ] [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 - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) cc @yorickpeterse See merge request !4649
2016-06-14Fix spec description typoSean McGivern
2016-06-14Merge remote-tracking branch 'origin/master' into artifacts-expire-dateKamil Trzcinski
2016-06-14Project members with guest role can't access confidential issuesDouglas Barbosa Alexandre
2016-06-13Merge branch 'gitlab-auth-method-names' into 'master' Douwe Maan
Improve Gitlab::Auth method names Auth.find was a very generic name for a very specific method. Auth.find_in_gitlab_or_ldap was inaccurate in GitLab EE where it also looks in Kerberos. See merge request !4589
2016-06-13Improve testsKamil Trzcinski
2016-06-13Improve design based on reviewKamil Trzcinski
2016-06-13Added keep artifacts API endpointKamil Trzcinski
2016-06-13Support expiration date in CI API when uploading artifactsKamil Trzcinski
2016-06-12Fix Error 500 when using closes_issues API with an external issue trackerStan Hu
Closes #18484
2016-06-10Merge branch 'rename-ci-commit-phase-4' into 'master' Rémy Coutable
Rename Commit to Pipeline in TriggerRequest Changes in TriggerRequest a `commit` to `pipeline`. See merge request !4505
2016-06-10Improve Gitlab::Auth method namesJacob Vosmaer
Auth.find was a very generic name for a very specific method. Auth.find_in_gitlab_or_ldap was inaccurate in GitLab EE where it also looks in Kerberos.
2016-06-10Rename MergeRequest#cannot_be_merged_because_build_is_not_success? to ↵Rémy Coutable
#mergeable_ci_state? The logic of the method was obviously inverted. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-10Improve initial implementation of the ↵Rémy Coutable
'only_allow_merge_if_build_succeeds.rb' feature Based on the feedback from reviewers. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-10Allow or not merge MR with failed buildRui Anderson
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-10Merge remote-tracking branch 'origin/master' into rename-ci-commit-phase-4Kamil Trzcinski
2016-06-09Rename commit to pipeline in TriggerRequestKamil Trzcinski
2016-06-09Add test for getting info/refs from repoSean McGivern
2016-06-09Ensure only IDs ending in .git perform git actionsSean McGivern
It doesn't seem possible to set constraints based on format for project IDs ending in .git, so set the constraint on the ID and ensure the format is nil to avoid the case where the project ID is something like project.git.foo.
2016-06-08Add parenthesesJacob Vosmaer
2016-06-08Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Jacob Vosmaer
git-http-controller Conflicts: lib/gitlab/workhorse.rb
2016-06-06Fix testsJacob Vosmaer
2016-06-06Merge branch 'rename-ci-commit' into rename-ci-commit-phase-2Kamil Trzcinski
# Conflicts: # features/steps/shared/builds.rb # spec/requests/ci/api/builds_spec.rb
2016-06-06Merge remote-tracking branch 'origin/master' into rename-ci-commitKamil Trzcinski
2016-06-06Fix tests offenses: use `pipeline` of Ci::Build and rename viewsKamil Trzcinski
2016-06-03Rename remaining ci_commits in specsKamil Trzcinski
2016-06-03Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski
2016-06-03Merge commit 'ca3c5c295ed653b483fe81c3918ffe60f46666b9' into rename-ci-commitKamil Trzcinski
* commit 'ca3c5c295ed653b483fe81c3918ffe60f46666b9': Let contributors know where to start Ensure branch cleanup regardless of whether the import process succeeds Fix failing todo tests Reorder the todos because the use of the project finder attempts to order them differently Update target todo test to use a public project Use the project finder in the todos finder to limit todos to just ones within projects you have access to. Move filtering todos by projects not pending deletion into a scope on the todo model Reduce the filters on the todos joins project query by being explicit about the join Ensure we don't show TODOS for projects pending delete Fix deprecation warnings in spec/services/issues/bulk_update_service_spec.rb Remove unused Issuable#is_assigned? method fixup! Don't allow merges with new commits fixup! Add `sha` parameter to MR accept API Reduce Namespace queries in UserReferenceFilter Added ReferenceFilter#nodes Returning enums in ReferenceFilter#each_node Don't allow merges with new commits Add `sha` parameter to MR accept API
2016-06-03Merge branch 'master' into awardablesZ.J. van de Weg
2016-06-03Use pipelines in context of ProjectKamil Trzcinski
2016-06-03Rename Ci::Build commit to pipelineKamil Trzcinski
2016-06-02Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipelineKamil Trzcinski
2016-06-02Merge branch 'master' into git-http-controllerJacob Vosmaer
Conflicts: config/routes.rb
2016-06-01Add `sha` parameter to MR accept APISean McGivern
The `sha` parameter is optional, and when present, must match the current HEAD SHA of the source branch. Otherwise, the API call fails with a 409 Conflict and a message containing the current HEAD for the source branch. Also tidy up some doc wording.
2016-06-01Merge branch 'issue_15557' into 'master' Rémy Coutable
Fix error 500 when sorting issues by milestone due date and filtering by labels fixes #15557 See merge request !4327
2016-06-01Add leading comment space copFelipe Artur
2016-05-30Merge branch 'master' into awardablesZJ van de Weg
2016-05-29Update specs for creating new note without accessGrzegorz Bizon
2016-05-25Merge branch 'fix-issue-17496' into 'master' Douwe Maan
Fix groups API to list only user's accessible projects Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/17496 See merge request !1966
2016-05-25Merge branch 'master' into awardablesZJ van de Weg
2016-05-25Fix groups API to list only user's accessible projectsStan Hu
Closes #17496
2016-05-24Enable RSpec/NotToNot cop and auto-correct offensesRobert Speicher
Also removes the note from the development/testing.md guide
2016-05-23Fix some specs which would have broken in 2017 to not break anymore by using ↵Connor Shea
a dynamic year value.
2016-05-23Fix the CI login to Container Registry (the gitlab-ci-token user)Kamil Trzcinski
2016-05-20Update API and fetching taskZeger-Jan van de Weg
2016-05-20Backend for a gitignores dropdownZeger-Jan van de Weg
2016-05-19Minor runner-related code refactoringsGrzegorz Bizon
2016-05-19Set run untagged option when registering a runnerGrzegorz Bizon
2016-05-19Refactor CI API specs for creating runnerGrzegorz Bizon
2016-05-19Extend runner options that are configurable via APIGrzegorz Bizon