The GitHub Actions job "Build Burr" on 
burr.git/fix/astream-result-post-end-stream-pairing has failed.
Run started by GitHub user xihaian251 (triggered by skrawcz).

Head commit for run:
e323c8364cf342ba0d700e82b800dfc994927c5c / xihaian251 
<[email protected]>
fix(core): only end a stream that was actually started

astream_result calls post_end_stream from its error path, but the callback is 
only
valid after pre_start_stream has run. That does not hold when the halt action 
is not
streaming (the branch delegates to _astep and returns early on success) or when 
input
processing fails before the streaming phase, so hooks that keep per-stream state
cannot pair the callback. LocalTrackingClient.post_end_stream indexes 
stream_state,
which only pre_start_stream populates; the resulting KeyError is raised from 
inside
the except block and replaces the exception the action raised.

Track whether pre_start_stream completed and only call post_end_stream on the 
error
path when it did. Adds a core test for the hook pairing and a tracking test 
that the
action's exception survives.

Report URL: https://github.com/apache/burr/actions/runs/40469731648

With regards,
GitHub Actions via GitBox

Reply via email to