15258: Removes /lib from eager load paths because of failing integration tests.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 23 May 2019 12:52:10 +0000 (09:52 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 23 May 2019 12:52:10 +0000 (09:52 -0300)
PhantomJS started to randomly fail, maybe because of memory or timing reasons.
This change exposes the bug observed on production, on development & test envs.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

apps/workbench/config/application.rb

index c8a722f0bfff06b107a83a198aee5a79755877c1..1c7a9d0dac8866511f795e1fea048d7f4989a300 100644 (file)
@@ -26,14 +26,9 @@ module ArvadosWorkbench
     # -- all .rb files in that directory are automatically loaded.
 
     # Custom directories with classes and modules you want to be autoloadable.
-    # config.autoload_paths += %W(#{config.root}/extras)
-
     # Autoload paths shouldn't be used anymore since Rails 5.0
     # See #15258 and https://github.com/rails/rails/issues/13142#issuecomment-74586224
-    config.eager_load_paths += %W(#{config.root}/lib)
-
-    # Load entire application at startup.
-    config.eager_load = true
+    # config.autoload_paths += %W(#{config.root}/extras)
 
     # Only load the plugins named here, in the order given (default is alphabetical).
     # :all can be used as a placeholder for all plugins not explicitly named.