summaryrefslogtreecommitdiff
path: root/config/boot.rb
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 20:12:50 +0300
commitf44719f39cb9ee88c63759caa582d484cd6d4e9a (patch)
tree7afc8b86283c3e1537f728c66ef3b0130e2b677d /config/boot.rb
parent1cd8fb49f9b9150faf50767edbdfb564fde8576b (diff)
downloadgitlab-ce-f44719f39cb9ee88c63759caa582d484cd6d4e9a.tar.gz
Get memory data after booting app in production62722-boot-app-in-ci-and-check-memory-ce
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/boot.rb')
-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