fix: propagate errors when using pipelines (#2560)#2624
Merged
ddelgrosso1 merged 5 commits intogoogleapis:mainfrom Aug 11, 2025
Merged
fix: propagate errors when using pipelines (#2560)#2624ddelgrosso1 merged 5 commits intogoogleapis:mainfrom
ddelgrosso1 merged 5 commits intogoogleapis:mainfrom
Conversation
7 tasks
Contributor
Author
|
I don't understand why the new test fails in CI for node 14. I only have a apple sillicon mac and nodejs 14 is not available for that architecture, so I can't test locally. |
Contributor
|
cc: @thiyaguk09 |
ddelgrosso1
approved these changes
Aug 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
This Pull Request add two tests relating to issues #2367 and #2560.
The first one is about the application hanging when a pipeline is used that writes to a File stream and that pipeline errors. This was fixed in PR #2437 but without any unit tests. That change introduced a regression that is logged as #2560.
Since both issues are related I tried to add unit tests for both scenarios.
If you undo the changes form PR #2437 the "should close upstream when pipeline fails" test fails as we reintroduce the bug. But the "should error pipeline if source stream emits error before any data" test succeeds as this problem did not exist before v7.10.0.
If you run the tests with the latest version (so with #2437 changes in place) the "should close upstream when pipeline fails" test now succeeds, but the "should error pipeline if source stream emits error before any data" fails with an "Uncaught Error: Error before first chunk".
Here is what Gemini thinks of this:
The code changes were also suggested by Gemini.
Fixes #2560