openfoodfoundation / openfoodnetwork

Connect suppliers, distributors and consumers to trade local produce.
https://www.openfoodnetwork.org
GNU Affero General Public License v3.0
1.11k stars 719 forks source link

[Flaky] rspec ./spec/system/admin/bulk_product_update_spec.rb:203 #11028

Open drummer83 opened 1 year ago

drummer83 commented 1 year ago

What we should change and why (this is tech debt)

 Failures:

  1) 
  As an Administrator
  I want to be able to manage products in bulk
 creating a new product
     Failure/Error: visit spree.admin_products_path

     Ferrum::PendingConnectionsError:
       Request to http://127.0.0.1:42967/admin/products reached server, but there are still pending connections: http://127.0.0.1:42967/admin/products

     [Screenshot Image]: /home/runner/work/openfoodnetwork/openfoodnetwork/tmp/capybara/screenshots/failures_r_spec_example_groups_as_an_administrator_i_want_to_be_able_to_manage_products_in_bulk_creating_a_new_product_227.png

     # ./spec/system/admin/bulk_product_update_spec.rb:212:in `block (2 levels) in <main>'
     # ./spec/system/support/cuprite_setup.rb:41:in `block (2 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # Ferrum::TimeoutError:
     #   Timed out waiting for response. It's possible that this happened because something took a very long time (for example a page load was slow). If so, setting the :timeout option to a higher value might help.
     #   ./spec/system/admin/bulk_product_update_spec.rb:212:in `block (2 levels) in <main>'

Finished in 3 minutes 45.8 seconds
40 examples, 1 failure

Failed examples:

rspec ./spec/system/admin/bulk_product_update_spec.rb:203 # 
  As an Administrator
  I want to be able to manage products in bulk
 creating a new product
I, [2023-06-15T14:15:09.789406 #3168]  INFO -- : [knapsack_pro] To retry all the tests assigned to this CI node, please run the following command on your machine:
I, [2023-06-15T14:15:09.789763 #3168]  INFO -- : [knapsack_pro] bundle exec rspec --format progress --default-path spec "spec/system/admin/bulk_product_update_spec.rb"
Coverage report generated for RSpec to /home/runner/work/openfoodnetwork/openfoodnetwork/coverage. 5666 / 24281 LOC (23.34%) covered.
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
Error: Process completed with exit code 1.

Context

https://github.com/openfoodfoundation/openfoodnetwork/actions/runs/5279826915/jobs/9551076879

Impact and timeline

filipefurtad0 commented 1 year ago

Not exactly a duplicate, but closely related to: https://github.com/openfoodfoundation/openfoodnetwork/issues/10018 / https://github.com/openfoodfoundation/openfoodnetwork/issues/10220.

drummer83 commented 1 year ago

Another occurrence here: https://github.com/openfoodfoundation/openfoodnetwork/actions/runs/6448349405/job/17505529038?pr=11623