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 Itemizable test #4496

Open
dorner opened this issue Jul 4, 2024 · 0 comments
Open

Flaky Itemizable test #4496

dorner opened this issue Jul 4, 2024 · 0 comments
Labels

Comments

@dorner
Copy link
Collaborator

dorner commented Jul 4, 2024

Summary

The following test only fails sometimes: https://github.com/rubyforgood/human-essentials/actions/runs/9780748669/job/27003147071?pr=4488

 1) ItemizableUpdateService events with distributions should send an itemizable event if it already exists
     Failure/Error:
       raise InventoryError.new("Could not reduce quantity by #{quantity} - current quantity is #{current_quantity}",
         item_id,
         id)

     InventoryError:
       Could not reduce quantity by 5 - current quantity is 0 for My Item 1 in Smithsonian Conservation Center
     # ./app/events/event_types/event_storage_location.rb:35:in `reduce_inventory'
     # ./app/events/event_types/inventory.rb:45:in `move_item'
     # ./app/events/inventory_aggregate.rb:71:in `block in handle_inventory_event'
     # ./app/events/inventory_aggregate.rb:65:in `each'
     # ./app/events/inventory_aggregate.rb:65:in `handle_inventory_event'
     # ./app/events/inventory_aggregate.rb:114:in `block in <module:InventoryAggregate>'
     # ./app/events/inventory_aggregate.rb:57:in `handle'
     # ./app/events/inventory_aggregate.rb:42:in `block in inventory_for'
     # ./app/events/inventory_aggregate.rb:33:in `each'
     # ./app/events/inventory_aggregate.rb:33:in `inventory_for'
     # ./app/models/event.rb:84:in `validate_inventory'
     # ./app/events/distribution_event.rb:4:in `publish'
     # ./spec/services/itemizable_update_service_spec.rb:234:in `block (4 levels) in <top (required)>'
     # ./spec/services/itemizable_update_service_spec.rb:23:in `block (3 levels) in <top (required)>'
     # ./spec/services/itemizable_update_service_spec.rb:22:in `block (2 levels) in <top (required)>'
     
     Randomized with seed 18466

Things to consider

No response

Criteria for Completion

No response

@cielf cielf added Help Wanted Groomed + open to all! Difficulty—Advanced labels Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants