Fix Load Images error handling - chain no longer runs forever on iteration errors#3141
Conversation
…ns during iteration Co-authored-by: joeyballentine <34788790+joeyballentine@users.noreply.github.com>
Co-authored-by: joeyballentine <34788790+joeyballentine@users.noreply.github.com>
ad5cedc to
d6c2ff7
Compare
|
@copilot The only issue with this is that it doesn't throw the errors at the end if fail_fast is false |
…t=False Co-authored-by: joeyballentine <34788790+joeyballentine@users.noreply.github.com>
Fixed in commit 5d47dbc. Moved |
|
@copilot the tests you added aren't really tests if they don't import the actual thing being tested... |
Co-authored-by: joeyballentine <34788790+joeyballentine@users.noreply.github.com>
Fixed in commit b80a213. Tests now import the actual Generator class from |
|
@copilot you need to fix the formatting issues |
Co-authored-by: joeyballentine <34788790+joeyballentine@users.noreply.github.com>
|
@copilot pyright has some issues with some things you did in the test |
Co-authored-by: joeyballentine <34788790+joeyballentine@users.noreply.github.com>
joeyballentine
left a comment
There was a problem hiding this comment.
I feel like this is something I fixed in one of my follow-up PRs that got cancelled and I just forgot to redo it. Anyway, I tested this and its good, plus I appreciate the added tests for it.
next(generator_supplier)which can yield an Exception, but doesn't check if the returned value is an Exception before using itSummary
Fixed two issues with Load Images error handling and improved test quality:
deferred_errorsinitialization outside the iteration loop so errors accumulate across all iterations whenfail_fast=Falseapi.iterusing importlib to avoid dependency issuesChanges Made:
backend/src/process.py:backend/tests/test_generator_exception_handling.py:How the Fix Works:
Validation:
Original prompt
Fixes #3057
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.