Skip to content

Commit

Permalink
Deterministic system tests (unabridged#62)
Browse files Browse the repository at this point in the history
This removes rspec-retry completely and tries to make system tests completely deterministic by adding wait_for_connect and wait_for_render helpers to system tests. I think this should be enough to make all tests pass consistently, but it's probably worth retrying the pipeline a few times to be sure.

* Use system Chrome/Chromium for Karma tests

* Ensure all existing system tests are deterministic

* Stop automatically retrying system tests
  • Loading branch information
Alec Larsen authored Oct 5, 2020
1 parent c8e095d commit 9dcd741
Show file tree
Hide file tree
Showing 18 changed files with 193 additions and 347 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ gem "puma"
gem "webpacker"
gem "sqlite3"
gem "appraisal"
gem "rspec-retry"
34 changes: 16 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ GEM
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.2)
nio4r (2.5.3)
nio4r (2.5.4)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
parallel (1.19.2)
parser (2.7.1.4)
parser (2.7.1.5)
ast (~> 2.4.1)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
puma (4.3.6)
puma (5.0.2)
nio4r (~> 2.0)
rack (2.2.3)
rack-proxy (0.6.5)
Expand Down Expand Up @@ -153,13 +153,13 @@ GEM
thor (>= 0.20.3, < 2.0)
rainbow (3.0.0)
rake (12.3.3)
regexp_parser (1.7.1)
regexp_parser (1.8.1)
rexml (3.2.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.2)
rspec-core (3.9.3)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.2)
diff-lcs (>= 1.2.0, < 2.0)
Expand All @@ -175,22 +175,21 @@ GEM
rspec-expectations (~> 3.9)
rspec-mocks (~> 3.9)
rspec-support (~> 3.9)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.9.3)
rubocop (0.90.0)
rubocop (0.92.0)
parallel (~> 1.10)
parser (>= 2.7.1.1)
parser (>= 2.7.1.5)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.3.0, < 1.0)
rubocop-ast (>= 0.5.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.3.0)
parser (>= 2.7.1.4)
rubocop-performance (1.8.0)
rubocop-ast (0.7.1)
parser (>= 2.7.1.5)
rubocop-performance (1.8.1)
rubocop (>= 0.87.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.10.1)
rubyzip (2.3.0)
selenium-webdriver (3.142.7)
Expand All @@ -210,15 +209,15 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
standard (0.6.0)
rubocop (~> 0.90)
rubocop-performance (~> 1.8.0)
standard (0.7)
rubocop (= 0.92)
rubocop-performance (= 1.8.1)
thor (1.0.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-display_width (1.7.0)
view_component (2.18.1)
view_component (2.19.1)
activesupport (>= 5.0.0, < 7.0)
webpacker (5.2.1)
activesupport (>= 5.2)
Expand All @@ -245,7 +244,6 @@ DEPENDENCIES
rake (~> 12.0)
rspec (~> 3.0)
rspec-rails
rspec-retry
selenium-webdriver
simplecov (< 0.18)
sqlite3
Expand Down
1 change: 0 additions & 1 deletion gemfiles/rails_5_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ gem "puma"
gem "webpacker"
gem "sqlite3"
gem "appraisal"
gem "rspec-retry"
gem "rails", "~> 5.1.7"
gem "action-cable-testing"

Expand Down
3 changes: 0 additions & 3 deletions gemfiles/rails_5_1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ GEM
rspec-expectations (~> 3.9)
rspec-mocks (~> 3.9)
rspec-support (~> 3.9)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.9.3)
rubocop (0.91.0)
parallel (~> 1.10)
Expand Down Expand Up @@ -224,7 +222,6 @@ DEPENDENCIES
rake (~> 12.0)
rspec (~> 3.0)
rspec-rails
rspec-retry
selenium-webdriver
simplecov (< 0.18)
sqlite3
Expand Down
1 change: 0 additions & 1 deletion gemfiles/rails_5_2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ gem "puma"
gem "webpacker"
gem "sqlite3"
gem "appraisal"
gem "rspec-retry"
gem "rails", "~> 5.2"
gem "action-cable-testing"

Expand Down
24 changes: 11 additions & 13 deletions gemfiles/rails_5_2.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ GEM
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.2)
nio4r (2.5.3)
nio4r (2.5.4)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
parallel (1.19.2)
Expand All @@ -107,7 +107,7 @@ GEM
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
puma (4.3.6)
puma (5.0.0)
nio4r (~> 2.0)
rack (2.2.3)
rack-proxy (0.6.5)
Expand Down Expand Up @@ -140,7 +140,7 @@ GEM
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (12.3.3)
regexp_parser (1.7.1)
regexp_parser (1.8.0)
rexml (3.2.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
Expand All @@ -162,22 +162,21 @@ GEM
rspec-expectations (~> 3.9)
rspec-mocks (~> 3.9)
rspec-support (~> 3.9)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.9.3)
rubocop (0.90.0)
rubocop (0.91.0)
parallel (~> 1.10)
parser (>= 2.7.1.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.3.0, < 1.0)
rubocop-ast (>= 0.4.0, < 1.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.3.0)
rubocop-ast (0.4.2)
parser (>= 2.7.1.4)
rubocop-performance (1.8.0)
rubocop-performance (1.8.1)
rubocop (>= 0.87.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.10.1)
rubyzip (2.3.0)
selenium-webdriver (3.142.7)
Expand All @@ -192,20 +191,20 @@ GEM
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
standard (0.6.0)
standard (0.6.1)
rubocop (~> 0.90)
rubocop-performance (~> 1.8.0)
thor (1.0.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-display_width (1.7.0)
view_component (2.18.2)
view_component (2.19.1)
activesupport (>= 5.0.0, < 7.0)
webpacker (5.2.1)
activesupport (>= 5.2)
Expand Down Expand Up @@ -233,7 +232,6 @@ DEPENDENCIES
rake (~> 12.0)
rspec (~> 3.0)
rspec-rails
rspec-retry
selenium-webdriver
simplecov (< 0.18)
sqlite3
Expand Down
1 change: 0 additions & 1 deletion gemfiles/rails_6_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ gem "puma"
gem "webpacker"
gem "sqlite3"
gem "appraisal"
gem "rspec-retry"
gem "rails", "~> 6.0"

gemspec path: "../"
Loading

0 comments on commit 9dcd741

Please sign in to comment.