summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAleksei Lipniagov <alipniagov@gitlab.com>2019-06-25 15:11:06 +0300
committerAleksei Lipniagov <alipniagov@gitlab.com>2019-06-28 13:49:57 +0300
commitfb1d433703f902987a358af0d9cac12b64ec440e (patch)
tree8caf42f0323a3137747b87a6a93637dd736b0b15 /config
parent5ee5b280b05f63768f359d0b82d5edd490c0e7cd (diff)
downloadgitlab-ce-fb1d433703f902987a358af0d9cac12b64ec440e.tar.gz
Get memory data after booting app in production62722-boot-app-in-ci-and-check-memory
Preload the app in `production` env, hit it with a single request, and gather total gem memory consumption data using `derailed exec perf:mem` from `derailed_benchmarks`. Present the result as MR metrics.
Diffstat (limited to 'config')
-rw-r--r--config/boot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/boot.rb b/config/boot.rb
index 2811f0e6188..b76b26a5e75 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -3,7 +3,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
# Set up gems listed in the Gemfile.
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
begin
- require 'bootsnap/setup'
+ require 'bootsnap/setup' unless ENV['DISABLE_BOOTSNAP']
rescue LoadError
# bootsnap is an optional dependency, so if we don't have it, it's fine
end