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
path: root/spec
AgeCommit message (Collapse)Author
2016-01-13Merge branch 'configure-randomize-metrics-sample-interval' into 'master' Yorick Peterse
See merge request !2406
2016-01-13Randomize metrics sample intervalsYorick Peterse
Sampling data at a fixed interval means we can potentially miss data from events occurring between sampling intervals. For example, say we sample data every 15 seconds but Unicorn workers get killed after 10 seconds. In this particular case it's possible to miss interesting data as the sampler will never get to actually submitting data. To work around this (at least for the most part) the sampling interval is randomized as following: 1. Take the user specified sampling interval (15 seconds by default) 2. Divide it by 2 (referred to as "half" below) 3. Generate a range (using a step of 0.1) from -"half" to "half" 4. Every time the sampler goes to sleep we'll grab the user provided interval and add a randomly chosen "adjustment" to it while making sure we don't pick the same value twice in a row. For a specified timeout of 15 this means the actual intervals can be anywhere between 7.5 and 22.5, but never can the same interval be used twice in a row. The rationale behind this change is that on dev.gitlab.org I'm sometimes seeing certain Gitlab::Git/Rugged objects being retained, but only for a few minutes every 24 hours. Knowing the code of Gitlab and how much memory it uses/leaks I suspect we're missing data due to workers getting terminated before the sampler can write its data to InfluxDB.
2016-01-13Merge branch 'rs-block-user-before-removal' into 'master' Dmitriy Zaporozhets
Block the reported user before destroying the record This is intended to prevent the user from creating new objects while the transaction that removes them is being run, resulting in objects with nil authors which can then not be edited. See https://gitlab.com/gitlab-org/gitlab-ce/issues/7117 See merge request !2402
2016-01-13Merge branch 'rs-time_ago_with_tooltip-conversion' into 'master' Dmitriy Zaporozhets
Make sure time_ago_with_tooltip is using a Time object Somehow this test existed on EE but not in CE, so it started failing after a bad CE-to-EE merge. See merge request !2398
2016-01-13Merge branch 'comment-and-close-button-does-not-submit-comment' into 'master' Dmitriy Zaporozhets
Comment and close button does not submit comment See merge request !2399
2016-01-13Merge branch 'add_username_to_user_system_hooks' of ↵Dmitriy Zaporozhets
https://github.com/tbeadle/gitlabhq Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-01-13Merge pull request #9952 from tbeadle/user_id_in_member_system_hookDmitriy Zaporozhets
Include the user_id in user_*_team system hooks.
2016-01-13Block the reported user before destroying the recordRobert Speicher
This is intended to prevent the user from creating new objects while the transaction that removes them is being run, resulting in objects with nil authors which can then not be edited. See https://gitlab.com/gitlab-org/gitlab-ce/issues/7117
2016-01-12reverting more MR ajax files, will appear in different commitJacob Schatz
2016-01-12Make sure time_ago_with_tooltip is using a Time objectRobert Speicher
Somehow this test existed on EE but not in CE, so it started failing after a bad CE-to-EE merge.
2016-01-12Merge branch 'remove-application-frames-from-views' into 'master' Yorick Peterse
See merge request !2392
2016-01-12Stop tracking call stacks for instrumented viewsYorick Peterse
Where a vew is called from doesn't matter as much. We already know what action they belong to and this is more than enough information. By removing the file/line number from the list of tags we should also be able to reduce the number of series stored in InfluxDB.
2016-01-12Track memory allocated during a transactionYorick Peterse
This gives a very rough estimate of how much memory is allocated during a transaction. This only works reliably when using a single-threaded application server and a Ruby implementation with a GIL as otherwise memory allocated by other threads might skew the statistics. Sadly there's no way around this as Ruby doesn't provide a reliable way of gathering accurate object sizes upon allocation on a per-thread basis.
2016-01-12fixes conflictsJacob Schatz
2016-01-11Merge branch 'fix/ci-linter-sequence-validations' into 'master' Robert Speicher
Allow subsequent validations in CI Linter Closes #5851 See merge request !2368
2016-01-11Merge branch 'add-action-to-all-metrics' into 'master' Yorick Peterse
See merge request !2370
2016-01-11Tag all transaction metrics with an "action" tagYorick Peterse
Without this it's impossible to find out what methods/views/queries are executed by a certain controller or Sidekiq worker. While this will increase the total number of series it should stay within reasonable limits due to the amount of "actions" being small enough.
2016-01-11Merge branch 'group-issues-sorting' into 'master' Dmitriy Zaporozhets
Improve performance of getting issues on group level For testing I used the URL http://localhost:3000/groups/gitlab-org/issues?milestone_title=8.1. Prior to these changes said URL would take about 10-12 seconds to load. By applying these changes the loading time has been reduced to roughly 2-3 seconds. There's still some stuff going on in some views that I have to look at, resolving those changes might reduce the loading time a bit more. I also still have to check if I didn't break too many tests. Fixes: gitlab-org/gitlab-ce#3707 gitlab-org/gitlab-ce#4071 See merge request !2318
2016-01-11Merge branch 'rs-zenmode-cleanup' into 'master' Douwe Maan
Refactor ZenMode - No longer depends on the "hidden checkbox". - No longer depends on manually storing/restoring the scroll position. Instead, we take advantage of jquery.scrollTo. - Event-based. - Simplifies the state-based styling. See merge request !2354
2016-01-11Allow subsequent validations in CI LinterGrzegorz Bizon
Closes #5851
2016-01-11Fix Error 500 when visiting build page of project with nil runners_tokenStan Hu
Properly ensure that the token exists and add defensively check for a non-nil value. Closes #4294
2016-01-09Refactor ZenModeRobert Speicher
- No longer depends on the "hidden checkbox". - No longer depends on manually storing/restoring the scroll position. Instead, we take advantage of jquery.scrollTo. - Event-based. - Simplifies the state-based styling.
2016-01-08Merge branch 'api-project-upload' into 'master' Robert Speicher
Add API project upload endpoint Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4317 See merge request !2329
2016-01-08Merge branch 'suppress-allow-failure-builds' into 'master' Stan Hu
Suppress e-mails on failed builds if allow_failure is set Every time I push to GitLab, I get > 2 emails saying a spec failed when I don't care about the benchmarks and others that have `allow_failure` set to `true`. @ayufan mentioned creating a summary e-mail to prevent getting one e-mail per build, but the latter might actually be desirable. For example, I do want to know if Rubocop errors fail right away. See merge request !2178
2016-01-08DRY up upload and download servicesDouwe Maan
2016-01-08Merge branch 'rs-single-item-task-list-spec' into 'master' Douwe Maan
Add spec for single-item task lists Follow-up to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2330 See merge request !2340
2016-01-08Merge branch 'issue_3076' into 'master' Drew Blessing
Fix problem with projects ending with .keys #3076 Closes #3076 Move route `:username.keys` below project's routes. This allow project's to handle names ending with `.keys` See merge request !1883
2016-01-08Merge branch 'api-delete-tag' into 'master' Dmitriy Zaporozhets
Delete tag via API ### What does this MR do? Implements deleting a tag via the API. ### Are there points in the code the reviewer needs to double check? On success, it returns the name of the deleted tag. This is similar to the [delete branch API](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/api/branches.rb#L111). ### What are the relevant issue numbers / Feature requests? * This MR closes #1575 * Closes http://feedback.gitlab.com/forums/176466-general/suggestions/6599203-delete-tags-through-the-api @stanhu Could you do a review? See merge request !1862
2016-01-08Merge branch 'accept-2xx-status-codes-for-webhooks' into 'master' Dmitriy Zaporozhets
Accept 2xx status codes for successful Web hook triggers Closes https://github.com/gitlabhq/gitlabhq/issues/9956 See merge request !2332
2016-01-08Delete tag via APIRobert Schilling
2016-01-08Add two custom Date/Time conversion formatsRobert Speicher
2016-01-07Add spec for single-item task listsRobert Speicher
2016-01-07Merge branch 'milestone-ref' into 'master' Robert Speicher
Link to milestone in "Milestone changed" system note Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4141 See merge request !2203
2016-01-07Suppress e-mails on failed builds if allow_failure is setStan Hu
Every time I push to GitLab, I get > 2 emails saying a spec failed when I don't care about benchmarks and other specs that have `allow_failure` set to `true`.
2016-01-07Merge branch 'annotate-models-20160105' into 'master' Dmitriy Zaporozhets
Annotate models Time to refresh the comments via `annotate`. See merge request !2311
2016-01-07Include user_username in user_(add_to/remove_from)_(project/group) system hooks.Tommy Beadle
2016-01-07Include the username in user_create/destroy system hooks.Tommy Beadle
2016-01-07fixes ajax issue with issue specJacob Schatz
2016-01-07Update specDouwe Maan
2016-01-07Accept 2xx status codes for successful Web hook triggersStan Hu
Closes https://github.com/gitlabhq/gitlabhq/issues/9956
2016-01-07Fixed issue sorting specs for ID changesYorick Peterse
These specs assumed data was still sorted by timestamp, instead of by ID.
2016-01-07Merge branch 'remove-more-influxdb-tags' into 'master' Yorick Peterse
See merge request !2328
2016-01-07Add API project upload endpointDouwe Maan
2016-01-07Store request methods/URIs as valuesYorick Peterse
Since filtering by these values is very rare (they're mostly just displayed as-is) we don't need to waste any index space by saving them as tags. By storing them as values we also greatly reduce the number of series in InfluxDB.
2016-01-07Merge branch 'master' of github.com:gitlabhq/gitlabhqJacob Vosmaer
2016-01-07Removed UUIDs from metrics transactionsYorick Peterse
While useful for finding out what methods/views belong to a transaction this might result in too much data being stored in InfluxDB.
2016-01-07Milestone reference is a Markdown linkDouwe Maan
2016-01-07Revert "Store SQL/view timings in milliseconds"Yorick Peterse
This reverts commit 7549102bb727daecc51da84af39956b32fc41537. Apparently I was wrong about ActiveSupport::Notifications::Event#duration returning the duration in seconds, instead it returns it in milliseconds already.
2016-01-06Merge branch 'more-opengraph' into 'master' Robert Speicher
Add Open Graph data for group, project and commit. See merge request !2211
2016-01-06Merge branch 'fix-banzai-cache' into 'master' Robert Speicher
Fix mentionable reference extraction caching. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4130 Reverts https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2120 and https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2283 See merge request !2315