Commit Graph

2105 Commits

Author SHA1 Message Date
Valery Sizov 898350e30b Bump reliable fetcher 2019-09-03 08:02:58 +03:00
Heinrich Lee Yu 1fbe0fa1dc Add atlassian-jwt gem explicitly
This is used by the Jira integration in EE
2019-09-02 22:26:18 +08:00
Rémy Coutable b7398bc1fd Merge branch 'fix-peek-on-puma' into 'master'
Fix Peek on Puma

Closes #66528

See merge request gitlab-org/gitlab-ce!32213
2019-09-02 08:43:21 +00:00
Takuya Noguchi e3f9cc432c Update jira-ruby to 1.7.1
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-08-30 17:06:10 +09:00
Sean McGivern c2452db59c Use gitlab-peek forked gem 2019-08-28 17:25:02 +01:00
Sean McGivern 7f102819a5 Fix Peek on Puma
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-08-27 14:15:25 +01:00
Ash McKenzie 3c236bb8f2
Remove the mdl gem as it's no longer in use 2019-08-27 18:51:10 +10:00
Brett Walker bdd5b5b695 Replace echo function with a resolver
The `GraphQL::Function` has been deprecated in
favor of resolvers.
2019-08-26 17:43:38 +00:00
Ash McKenzie f7dc2825c1 Merge branch 'sh-upgrade-ruby-prof' into 'master'
Bump ruby-prof to 1.0.0

See merge request gitlab-org/gitlab-ce!29588
2019-08-26 04:43:37 +00:00
Jason Goodman 27fbd36ade Install Unleash Client Gem 2019-08-26 04:13:54 +00:00
Stan Hu 87e87b7b8c Bump ruby-prof to 1.0.0
This is significant improvement over the previous releases:
https://github.com/ruby-prof/ruby-prof/blob/master/CHANGES
2019-08-24 14:55:47 -07:00
Andrew Newdigate 3956e7bb86 Add cache tracing and Redis tracing
This change adds Distributed Tracing support for two new types of events

1. Redis Calls
1. ActiveSupport (Rails) Caching Operations

The intention is to help application developers and infrastructure
SREs to understand the pressure that caching operations can have on
the application when running at scale.

The Redis and Caching spans can be viewed in the Jaeger UI by clicking
the "Trace" link in the performance bar when running on GDK.
2019-08-23 10:11:19 +00:00
Peter Leitzen 6767326267 Use ActiveModel's type instead of virtus
The virtus project has been discontinued:

https://github.com/solnic/virtus/commit/a6f896984
2019-08-20 10:52:21 +00:00
Heinrich Lee Yu 4ee5272939 Remove active_record_sane_schema_dumper gem
We don't need this since this is already the default
behavior of Rails since 5.1
2019-08-19 17:27:04 +08:00
Mayra Cabrera 23754943a7 Merge branch 'sh-update-rugged-0.28.3' into 'master'
Upgrade Rugged to 0.28.3.1

See merge request gitlab-org/gitlab-ce!31794
2019-08-15 17:27:48 +00:00
Stan Hu e70407d8bc Upgrade Rugged to 0.28.3.1
This is a security release:
https://github.com/libgit2/libgit2/releases
2019-08-15 06:11:42 -07:00
Stan Hu 0b43c1027f Merge branch '46548-open-source-alternative-to-recaptcha-for-gitlab-com-registration' into 'master'
Open source alternative to reCAPTCHA for GitLab.com registration

See merge request gitlab-org/gitlab-ce!31625
2019-08-14 22:04:42 +00:00
Jeremy Jackson 5d9d5e6031 Migrates Snowplow backend from EE to CE
This introduces several changes, but these are all just ported from the
EE project.
2019-08-14 19:21:58 +00:00
Jacob Vosmaer f3e0ec7b4a Update Gitaly server and gem to 1.58.0 2019-08-12 15:50:30 +00:00
Robert Speicher 216acee11d Merge branch 'sh-update-ruby-labkit' into 'master'
Update gitlab-labkit to 0.4.2

See merge request gitlab-org/gitlab-ce!31685
2019-08-12 15:25:36 +00:00
Thong Kuah 2d58eba111 Bump nokogiri to 1.10.4
This pulls in fix for CVE-2019-5477, where usage of
Nokogiri::CSS::Tokenizer#load_file leads to potential command injection.
2019-08-12 12:25:15 +12:00
Stan Hu 3b5dab8e77 Update ffi gem to 1.11.1
This reduces duplication on Omnibus GitLab and saves about ~8 MB of disk
space.

Full list of changes:
https://github.com/ffi/ffi/blob/master/CHANGELOG.md
2019-08-10 07:47:39 -07:00
Stan Hu 1aac70dab2 Update gitlab-labkit to 0.4.2
This relaxes the gRPC version so that it can be updated. Also adds
cache support for distributed tracing.

Full release notes:
https://gitlab.com/gitlab-org/labkit-ruby/-/tags
2019-08-10 07:36:01 -07:00
Alex Buijs 456c0691cd
Add invisible_captcha gem 2019-08-09 13:20:09 +02:00
Sean McGivern 66963aad70 Remove GC metrics from performance bar
These were disabled in production mode, but that also broke the rest of
the performance bar. As they were only enabled in development mode, we
can just remove them for now.
2019-08-06 20:42:46 +01:00
Douwe Maan dca9e2124c Merge branch '65671-update-mini_magick-to-4.9.5' into 'master'
Update mini_magick to 4.9.5

Closes #65671

See merge request gitlab-org/gitlab-ce!31505
2019-08-06 17:08:58 +00:00
Sean McGivern a445dc2e67 Merge branch 'update-reliable-fetcher' into 'master'
Update reliable fetcher

See merge request gitlab-org/gitlab-ce!31416
2019-08-06 10:27:21 +00:00
Takuya Noguchi 6b7e245902 Update mini_magick to 4.9.5
to address CVE-2019-13574

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-08-06 05:26:38 +01:00
Valery Sizov f88189e23a Update reliable fetcher
We added retry_count increment when job is recovered
2019-08-06 03:23:30 +03:00
Stan Hu b5771bccc6 Use Rails 5.2 Redis caching store
This is the first step in providing a fault-tolerant and distributed
Redis caching store. We disable compression to avoid introducing a
change that could have an adverse effect in production.

Note that we won't be able to take advantage of the fault-tolerance and
distributed features yet until we solve
https://gitlab.com/gitlab-org/gitlab-ce/issues/64829.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64794
2019-08-05 15:52:52 -07:00
Rémy Coutable e7d9d32ae7 Merge branch '54853-update-gitlab-styles' into 'master'
Update gitlab-styles to close #54853

Closes #54853

See merge request gitlab-org/gitlab-ce!31155
2019-07-31 07:01:30 +00:00
Sean McGivern 18cdc5ba6c Remove line profiler from performance bar
1. The output isn't great. It can be hard to find hotspots and, even
   when you do find them, to find why those are hotspots.
2. It uses some jQuery-specific frontend code which we can remove now
   that we don't have this any more.
3. It's only possible to profile the initial request, not any subsequent
   AJAX requests.
2019-07-30 10:00:52 +01:00
Douglas Barbosa Alexandre 534f8fc797 Merge branch 'determinstic_dns_specs' into 'master'
Have deterministic DNS for specs

See merge request gitlab-org/gitlab-ce!31086
2019-07-30 01:27:52 +00:00
Stan Hu 7d745d31d9 Update rouge to v3.7.0
This adds support for a number of new languages (e.g. Ada)
and fixes a number of lexers:
https://github.com/rouge-ruby/rouge/compare/v3.5.1..v3.7.0

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64625
2019-07-29 15:37:23 -07:00
Thong Kuah 46ef495488
Write out sham_rack gem
This means we have one less Net::HTTP monkeypatch.

sham_rack cannot handle IPv6 addresses which means it breaks Net::HTTP
connections because it monkey-patches Net::HTTP
2019-07-29 19:20:27 -03:00
Douglas Barbosa Alexandre 58f0959098 Merge branch 'sh-update-rugged-0.28.2' into 'master'
Update Rugged to 0.28.2

See merge request gitlab-org/gitlab-ce!31218
2019-07-29 20:43:33 +00:00
Stan Hu 3e18a4154a Update Rugged to 0.28.2
This is a bug fix release:
https://github.com/libgit2/libgit2/releases
2019-07-26 22:10:47 -07:00
Kyle Wiebers 03a8f1088f Update gitlab-styles to add Lint/SafeNavigationWithEmpty 2019-07-26 16:50:45 -05:00
Sean McGivern ad1c71663f Replace peek-pg with our own implementation
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-26 14:37:26 +01:00
Nick Thomas 4aa76dddec
Remove dead MySQL code
None of this code can be reached any more, so it can all be removed
2019-07-23 16:53:03 +01:00
Stan Hu eedf735574 Make Bootsnap available via ENABLE_BOOTSNAP=1
Bootsnap speeds up Rails loading and now ships by default with Rails 5.2
apps. We should promote this to a default gem and test it out in
production. This will also make it possible for the Helm Charts to take
advantage of this.

It appears that Bootsnap with Rails 5.2.3 and all the GitLab CE gems
loads fine on an ARM platform now, so it's possible that
https://gitlab.com/gitlab-org/gitlab-ce/issues/34799 has been resolved.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/45230
2019-07-19 13:13:44 -07:00
Stan Hu 9dd59df699 Fix inconsistency in Redis performance bar stats
peek-redis resets its counters at the start of an ActionController
notification (`start_processing.action_controller`), which causes it to
miss some Redis queries that precede it, such as the database load
balancer and Rack Attack queries. This produces inconsistencies in the
performance bar between the number of calls and their durations with the
actual calls in the detailed view.

We fix this by getting rid of peek-redis in favor of consolidating all
logic into the `RedisDetailed` view, which tracks Redis queries using
`RequestStore`. This has the nice property of removing thread-specific
counters as well.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64707
2019-07-17 15:11:01 -07:00
Stan Hu d87c6b634e Bump fog-aws to v3.5.2
This will make it possible for Oracle Cloud to work with S3 by disabling
Signature V4 streaming (https://github.com/fog/fog-aws/issues/523).

Full CHANGELOG:
https://github.com/fog/fog-aws/blob/master/CHANGELOG.md

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63041
2019-07-16 16:06:44 -07:00
Zeger-Jan van de Weg 63b07f5242
Upgrade Gitaly-Proto to 1.37.0
This was done to perform some local testing, but while the change was
already made it made sense to commit the change.
2019-07-16 10:33:07 +02:00
Heinrich Lee Yu aeb67dd489 Upgrade to Rails 5.2
Updates changed method names and fixes spec failures
2019-07-12 10:15:31 +08:00
Felipe Artur f0683aab05 Improve Graphql Docs
Adds more friendly docs for GraphQl implementation
2019-07-11 08:06:35 +00:00
Douglas Barbosa Alexandre 72dee32f46
Upgrade rspec-rails to 3.8.2 and dependencies
This brings the rspec-core version in line with the Gitaly changes
and introduces Rails 5.1/5.2 improvements.

Full CHANGELOG:
https://github.com/rspec/rspec-rails/blob/master/Changelog.md
2019-07-10 15:04:56 -03:00
Robert Speicher ee3fc6d627 Merge branch 'update-net-ssh' into 'master'
Update net-ssh gem to ~> 5.2

See merge request gitlab-org/gitlab-ce!30341
2019-07-09 16:56:18 +00:00
Markus Koller 385233981a Centralize config for markdownlint
The configuration is currently only specified in CI, by moving it into
`.mdlrc` we get immediate feedback locally in supported editors.

To ensure `mdl` is available it's also added to the `Gemfile`, though
CI will still use the version installed in the `gitlab-docs-lint` image.
2019-07-09 03:01:04 +00:00
Stan Hu 8ae165e6e7 Bump prometheus-client-mmap to 0.9.8
This fixes a critical error where a nil exception would be hit
if an error occurred while logging a Prometheus metric:

https://gitlab.com/gitlab-org/prometheus-client-mmap/merge_requests/36
2019-07-08 10:48:02 -07:00