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
2022-11-14Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2022-08-10Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2022-03-03Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-10-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-10-11Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-10-05Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-04-26Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-03-25Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-03-23Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-02-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-02-12Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-02-11Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-01-29Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-01-12Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-12-09Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-28Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-02Merge branch 'fix-peek-on-puma' into 'master'Rémy Coutable
Fix Peek on Puma Closes #66528 See merge request gitlab-org/gitlab-ce!32213
2019-08-28Make performance bar enabled checks consistentSean McGivern
Previously, we called the `peek_enabled?` method like so: prepend_before_action :set_peek_request_id, if: :peek_enabled? Now we don't have a `set_peek_request_id` method, so we don't need that line. However, the `peek_enabled?` part had a side-effect: it would also populate the request store cache for whether the performance bar was enabled for the current request or not. This commit makes that side-effect explicit, and replaces all uses of `peek_enabled?` with the more explicit `Gitlab::PerformanceBar.enabled_for_request?`. There is one spec that still sets `SafeRequestStore[:peek_enabled]` directly, because it is contrasting behaviour with and without a request store enabled. The upshot is: 1. We still set the value in one place. We make it more explicit that that's what we're doing. 2. Reading that value uses a consistent method so it's easier to find in future.
2019-08-28Add top-level warnings key to performance bar responseSean McGivern
This key is useful to reduce the amount of logic needed on the frontend: if `has_warnings` is true, then the frontend knows that the request in question has warnings for some metric.
2019-08-27Fix Peek on PumaSean McGivern
Peek's `Peek.request_id` method doesn't work well with a multi-threaded server and concurrent requests, because requests can 'steal' another request's ID, or unset it before it was due. The upstream change resolves this; the commit here is just to ensure that GitLab works with that upstream change, mostly by not using `Peek.request_id` any more (as the method doesn't exist).
2019-07-26Replace peek-pg with our own implementationSean McGivern
This uses an ActiveRecord subscriber to get queries and calculate the total query time from that. This means that the total will always be consistent with the queries in the table. It does however mean that we could potentially miss some queries that don't go through ActiveRecord. Making this change also allows us to unify the response JSON a little bit, making the frontend slightly simpler as a result.
2019-07-03Only save Peek session in Redis when Peek is enabledRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-06-10Add backtraces to Peek performance bar for SQL callsStan Hu
Just as we have backtraces for Gitaly, we should also have backtraces for SQL calls. This makes it much easier to find the source of the SQL call and optimize N+1 queries and other performance issues with an endpoint.
2019-04-23Upgrade Rails to 5.1.6.1Jasper Maes
Model.new.attributes now also returns encrypted attributes.
2018-11-20Enable even more frozen string for lib/gitlabgfyoung
Enables frozen string for the following: * lib/gitlab/patch/**/*.rb * lib/gitlab/popen/**/*.rb * lib/gitlab/profiler/**/*.rb * lib/gitlab/project_authorizations/**/*.rb * lib/gitlab/prometheus/**/*.rb * lib/gitlab/query_limiting/**/*.rb * lib/gitlab/quick_actions/**/*.rb * lib/gitlab/redis/**/*.rb * lib/gitlab/request_profiler/**/*.rb * lib/gitlab/search/**/*.rb * lib/gitlab/sherlock/**/*.rb * lib/gitlab/sidekiq_middleware/**/*.rb * lib/gitlab/slash_commands/**/*.rb * lib/gitlab/sql/**/*.rb * lib/gitlab/template/**/*.rb * lib/gitlab/testing/**/*.rb * lib/gitlab/utils/**/*.rb * lib/gitlab/webpack/**/*.rb Partially addresses gitlab-org/gitlab-ce#47424.
2018-09-24Simplify by using Gitlab::SafeRequestStoreMichael Kozono
These are clear wins.
2017-11-03Fix SQL timings for the performance barYorick Peterse
My recent change accidentally changed the reported time from milliseconds to seconds, resulting in wrong timings being displayed.
2017-10-23Remove Sherlock usage from the performance barYorick Peterse
Sherlock::Query generates a backtrace on every call to "new", which is very slow. Formatter queries are also not displayed properly due to the lack of "white-space: pre" in the CSS. We took a look at fixing this, but the produced output is not really better than just displaying queries on one line. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/39351
2017-07-19Merge branch 'rc/bump-peek-performance_bar' into 'master'Sean McGivern
Bump peek-performance_bar to 1.3.0 and get rid of a monkey-patch See merge request !12939
2017-07-18Fix queries duration sorting in Performance BarRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-18Bump peek-performance_bar to 1.3.0 and get rid of a monkey-patchRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-17Don't track cached queries in Gitlab::PerformanceBar::PeekQueryTrackerRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-09Ensure peek-performance_bar doesn't break existing functionalitiesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09Fix Rubocop offenses, improve SQL duration format and changelog entryRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09Display queries duration in performance bar queries modalRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09Store Sherlock::Query in Peek adapterRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>