Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flaky] rspec ./spec/controllers/admin/bulk_line_items_controller_spec.rb:55 #11016

Open
Tracked by #8293
filipefurtad0 opened this issue Jun 15, 2023 · 1 comment
Open
Tracked by #8293

Comments

@filipefurtad0
Copy link
Contributor

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

Failures:

  1) Admin::BulkLineItemsController#index as an administrator when no ransack params are passed in sorts line_items in ascending id line_item
     Failure/Error: expect(line_item_ids[0]).to be < line_item_ids[1]
     
       expected: < 102
            got:   105
     # ./spec/controllers/admin/bulk_line_items_controller_spec.rb:56:in `block (5 levels) in <top (required)>'

Finished in 2 minutes 4 seconds (files took 9.12 seconds to load)
109 examples, 1 failure

Failed examples:

rspec ./spec/controllers/admin/bulk_line_items_controller_spec.rb:55 # Admin::BulkLineItemsController#index as an administrator when no ransack params are passed in sorts line_items in ascending id line_item

Context

https://github.com/openfoodfoundation/openfoodnetwork/actions/runs/5275378952/jobs/9543514824?pr=10704

Impact and timeline

@filipefurtad0
Copy link
Contributor Author

filipefurtad0 commented Jun 15, 2023

I can reproduce it locally, I must say it has a the weird behavior of failing in "blocks", like so:

Pass.
Pass.
Pass.
Pass.
Pass.
Pass.
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
Pass.
Pass.
Pass.
Pass.
Pass.
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
    !!! Fail !!!
Pass.
Pass.
Pass.
Pass.
Pass.

I wonder if this relates to the CPU performance somehow...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: All the things 💤
Development

No branches or pull requests

1 participant