Skip to content
Permalink
Browse files

Retry failed test to avoid flaky (#5894)

* Retry failed test 3 times

* Fix offenses

* Add changelog entry
  • Loading branch information
armandfardeau committed Mar 26, 2020
1 parent 8c6c28d commit 61f80a2cfcd20b4983d97ef3d690cd19ebff38dc
@@ -13,6 +13,7 @@ After this, `Decidim::Proposals::ProposalEndorsement` and the corresponding coun

### Added

- **decidim-dev**: Retry failed test to avoid flaky. [\#5894](https://github.com/decidim/decidim/pull/5894)
- **decidim-core**: Add scroll to last message and apply it on conversations. [\#5718](https://github.com/decidim/decidim/pull/5718)
- **decidim-core**: Allow to restric direct messages to only people followed by the user. [\#5720](https://github.com/decidim/decidim/pull/5720)
- **decidim-comments**: Comments can mention groups and its members are notified. [\#5763](https://github.com/decidim/decidim/pull/5763)
@@ -145,6 +145,7 @@ PATH
rspec-cells (~> 0.3.4)
rspec-html-matchers (~> 0.9.1)
rspec-rails (~> 3.7)
rspec-retry (~> 0.6.2)
rspec_junit_formatter (~> 0.3.0)
rubocop (~> 0.71.0)
rubocop-rails (~> 2.0)
@@ -425,7 +426,7 @@ GEM
multi_xml (>= 0.5.2)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
i18n-tasks (0.9.30)
i18n-tasks (0.9.31)
activesupport (>= 4.0.2)
ast (>= 2.1.0)
erubi
@@ -542,7 +543,7 @@ GEM
activerecord (>= 4.2)
request_store (~> 1.1)
parallel (1.19.1)
parser (2.7.0.4)
parser (2.7.0.5)
ast (~> 2.4.0)
pg (1.1.4)
pg_search (2.3.2)
@@ -634,7 +635,7 @@ GEM
rspec-rails (< 5.0)
rspec-core (3.9.1)
rspec-support (~> 3.9.1)
rspec-expectations (3.9.0)
rspec-expectations (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-html-matchers (0.9.2)
@@ -643,14 +644,16 @@ GEM
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-rails (3.9.0)
rspec-rails (3.9.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-support (~> 3.9.0)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.9.2)
rspec_junit_formatter (0.3.0)
rspec-core (>= 2, < 4, != 2.12.0)
@@ -721,7 +724,7 @@ GEM
thor (1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
tomlrb (1.2.9)
tomlrb (1.3.0)
truncato (0.7.11)
htmlentities (~> 4.3.1)
nokogiri (>= 1.7.0, <= 2.0)
@@ -751,7 +754,7 @@ GEM
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webmock (3.8.2)
webmock (3.8.3)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
s.add_dependency "rspec-cells", "~> 0.3.4"
s.add_dependency "rspec-html-matchers", "~> 0.9.1"
s.add_dependency "rspec-rails", "~> 3.7"
s.add_dependency "rspec-retry", "~> 0.6.2"
s.add_dependency "rspec_junit_formatter", "~> 0.3.0"
s.add_dependency "rubocop", "~> 0.71.0"
s.add_dependency "rubocop-rails", "~> 2.0"
@@ -22,3 +22,17 @@
require "paper_trail/frameworks/rspec"

require_relative "spec_helper"

if ENV["CI"]
require "rspec/retry"

RSpec.configure do |config|
# show retry status in spec process
config.verbose_retry = true
# show exception that triggers a retry if verbose_retry is set to true
config.display_try_failure_messages = true

# Retry failed test, set to 1 for normal behavior
config.default_retry_count = ENV.fetch("FAILED_TEST_RETRY_COUNT") { 3 }
end
end
@@ -140,6 +140,7 @@ PATH
rspec-cells (~> 0.3.4)
rspec-html-matchers (~> 0.9.1)
rspec-rails (~> 3.7)
rspec-retry (~> 0.6.2)
rspec_junit_formatter (~> 0.3.0)
rubocop (~> 0.71.0)
rubocop-rails (~> 2.0)
@@ -420,7 +421,7 @@ GEM
multi_xml (>= 0.5.2)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
i18n-tasks (0.9.30)
i18n-tasks (0.9.31)
activesupport (>= 4.0.2)
ast (>= 2.1.0)
erubi
@@ -537,7 +538,7 @@ GEM
activerecord (>= 4.2)
request_store (~> 1.1)
parallel (1.19.1)
parser (2.7.0.4)
parser (2.7.0.5)
ast (~> 2.4.0)
pg (1.1.4)
pg_search (2.3.2)
@@ -629,7 +630,7 @@ GEM
rspec-rails (< 5.0)
rspec-core (3.9.1)
rspec-support (~> 3.9.1)
rspec-expectations (3.9.0)
rspec-expectations (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-html-matchers (0.9.2)
@@ -638,14 +639,16 @@ GEM
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-rails (3.9.0)
rspec-rails (3.9.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-support (~> 3.9.0)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.9.2)
rspec_junit_formatter (0.3.0)
rspec-core (>= 2, < 4, != 2.12.0)
@@ -716,7 +719,7 @@ GEM
thor (1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
tomlrb (1.2.9)
tomlrb (1.3.0)
truncato (0.7.11)
htmlentities (~> 4.3.1)
nokogiri (>= 1.7.0, <= 2.0)
@@ -746,7 +749,7 @@ GEM
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webmock (3.8.2)
webmock (3.8.3)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
@@ -145,6 +145,7 @@ PATH
rspec-cells (~> 0.3.4)
rspec-html-matchers (~> 0.9.1)
rspec-rails (~> 3.7)
rspec-retry (~> 0.6.2)
rspec_junit_formatter (~> 0.3.0)
rubocop (~> 0.71.0)
rubocop-rails (~> 2.0)
@@ -425,7 +426,7 @@ GEM
multi_xml (>= 0.5.2)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
i18n-tasks (0.9.30)
i18n-tasks (0.9.31)
activesupport (>= 4.0.2)
ast (>= 2.1.0)
erubi
@@ -542,7 +543,7 @@ GEM
activerecord (>= 4.2)
request_store (~> 1.1)
parallel (1.19.1)
parser (2.7.0.4)
parser (2.7.0.5)
ast (~> 2.4.0)
pg (1.1.4)
pg_search (2.3.2)
@@ -634,7 +635,7 @@ GEM
rspec-rails (< 5.0)
rspec-core (3.9.1)
rspec-support (~> 3.9.1)
rspec-expectations (3.9.0)
rspec-expectations (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-html-matchers (0.9.2)
@@ -643,14 +644,16 @@ GEM
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-rails (3.9.0)
rspec-rails (3.9.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-support (~> 3.9.0)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.9.2)
rspec_junit_formatter (0.3.0)
rspec-core (>= 2, < 4, != 2.12.0)
@@ -721,7 +724,7 @@ GEM
thor (1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
tomlrb (1.2.9)
tomlrb (1.3.0)
truncato (0.7.11)
htmlentities (~> 4.3.1)
nokogiri (>= 1.7.0, <= 2.0)
@@ -751,7 +754,7 @@ GEM
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webmock (3.8.2)
webmock (3.8.3)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

0 comments on commit 61f80a2

Please sign in to comment.
You can’t perform that action at this time.