`retry_failed_rspec_examples` gets stuck into infinite loop in Rspec jobs
Summary
It seems retry_failed_rspec_examples
somehow keeps getting called until the job exited with the timeout.
Job #3596674869 failed for 0efd3e7c:
RSpec exited with 1.
Retrying the failing examples in a new RSpec process...
$ gem install junit_merge --no-document --version 0.1.2
Successfully installed nokogiri-1.14.0-x86_64-linux
Successfully installed junit_merge-0.1.2
2 gems installed
==> 'gem install junit_merge --no-document --version 0.1.2' succeeded in 1 seconds.
Running RSpec command: bin/rspec -Ispec -rspec_helper --color --format documentation --format RspecJunitFormatter --out rspec/junit_rspec-retry.xml --only-failures --pattern "spec/{bin,channels,config,contracts,db,dependencies,elastic,elastic_integration,experiments,factories,finders,frontend,graphql,haml_lint,helpers,initializers,lib,metrics_server,models,policies,presenters,rack_servers,replicators,routing,rubocop,scripts,serializers,services,sidekiq,sidekiq_cluster,spam,support_specs,tasks,uploaders,validators,views,workers,tooling,components}{,/**/}*_spec.rb"
Run options: include {:last_run_status=>"failed"}
Test environment set up in 0.47234682 seconds
Tables documentation
for each object
has a valid feature category (FAILED - 1)
1st Try error in ./spec/db/docs_spec.rb:70:
Table metadata files with an invalid feature category:
db/docs/chat_names.yml
db/docs/chat_teams.yml
db/docs/ci_pipeline_chat_data.yml
RSpec::Retry: 2nd try ./spec/db/docs_spec.rb:70
Failures:
1) Tables documentation for each object has a valid feature category
Failure/Error:
expect(objects_with_invalid_feature_category).to be_empty, object_metadata_errors(
'Table metadata files with an invalid feature category',
:error,
objects_with_invalid_feature_category
)
Table metadata files with an invalid feature category:
db/docs/chat_names.yml
db/docs/chat_teams.yml
db/docs/ci_pipeline_chat_data.yml
Shared Example Group: "validate dictionary" called from ./spec/db/docs_spec.rb:177
# ./spec/db/docs_spec.rb:71:in `block (3 levels) in <main>'
# ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:407:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:403:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:403:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:239:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
Finished in 3.62 seconds (files took 44.02 seconds to load)
1 example, 1 failure
Failed examples:
rspec './spec/db/docs_spec.rb[2:1:3]' # Tables documentation for each object has a valid feature category
Steps to reproduce
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Edited by Nao Hashizume