From 14b20ce9b38314943dcaf73b8dab7508b70ba487 Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Thu, 26 Nov 2015 10:31:52 -0800 Subject: Upgrade to listen 3.0.5, re-enable tests In listen 3.0.4 and below, the `#stop` method on the notification backends are a no-op, meaning that we are leaking them per test. This ended up triggering another bug in Ruby that causes our builds to fail randomly on CI. listen bug: https://github.com/guard/listen/issues/353 ruby bug: https://bugs.ruby-lang.org/issues/11744 --- Gemfile | 2 +- Gemfile.lock | 4 ++-- activesupport/test/file_evented_update_checker_test.rb | 5 ----- ci/travis.rb | 10 ++-------- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/Gemfile b/Gemfile index a1a05fd6d7..f8e7743a18 100644 --- a/Gemfile +++ b/Gemfile @@ -45,7 +45,7 @@ end # Active Support. gem 'dalli', '>= 2.2.1' -gem 'listen', '~> 3.0.4' +gem 'listen', '~> 3.0.5' # Active Job. group :job do diff --git a/Gemfile.lock b/Gemfile.lock index 883a7d8eff..31a3343a7e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -222,7 +222,7 @@ GEM kindlerb (0.1.1) mustache nokogiri - listen (3.0.4) + listen (3.0.5) rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9) loofah (2.0.3) @@ -342,7 +342,7 @@ DEPENDENCIES jquery-rails! json kindlerb (= 0.1.1) - listen (~> 3.0.4) + listen (~> 3.0.5) mail! minitest (< 5.3.4) mocha (~> 0.14) diff --git a/activesupport/test/file_evented_update_checker_test.rb b/activesupport/test/file_evented_update_checker_test.rb index ec3a7e28f3..071449d399 100644 --- a/activesupport/test/file_evented_update_checker_test.rb +++ b/activesupport/test/file_evented_update_checker_test.rb @@ -5,11 +5,6 @@ require 'file_update_checker_shared_tests' class FileEventedUpdateCheckerTest < ActiveSupport::TestCase include FileUpdateCheckerSharedTests - def setup - skip if ENV['LISTEN'] == '0' - super - end - def new_checker(files = [], dirs = {}, &block) ActiveSupport::FileEventedUpdateChecker.new(files, dirs, &block).tap do wait diff --git a/ci/travis.rb b/ci/travis.rb index 658d66c6b4..b29e06dd5c 100755 --- a/ci/travis.rb +++ b/ci/travis.rb @@ -111,14 +111,8 @@ class Build end def env - if activesupport? && !isolated? - # There is a known issue with the listen tests that casuses files to be - # incorrectly GC'ed even when they are still in-use. The current is to - # only run them in isolation to avoid randomly failing our test suite. - { 'LISTEN' => '0' } - else - {} - end + # Provide extra ENV variables for the build here + {} end def run_bug_report_templates -- cgit v1.2.3