fix(dispatcher): lift progress controller creation before instrumentation#41643
fix(dispatcher): lift progress controller creation before instrumentation#41643Skn0tt wants to merge 1 commit into
Conversation
…tion ProgressController creation and registration now happens before the onBeforeCall instrumentation, so __abort__ messages can find the controller even when they arrive very early. ProgressController also stores an abort that arrives while it is still in the 'before' state and applies it once run() starts. This fixes the flaky "should throw an Error when aborted in-flight with a string reason" test on tracing bots, where the extra instrumentation overhead caused the abort message to arrive before the controller was registered.
9f96567 to
0f6ac87
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"7 flaky49491 passed, 1164 skipped Merge workflow run. |
Test results for "MCP"4 failed 7639 passed, 1132 skipped Merge workflow run. |
Test results for "tests 2"4 fatal errors, not part of any test 41 flaky105898 passed, 4474 skipped Merge workflow run. |
Lift
ProgressControllercreation and registration to happen beforeonBeforeCallinstrumentation, so that__abort__messages can find the controller even when they arrive very early.ProgressControllernow also stores an abort that arrives while it is still in the'before'state and applies it oncerun()starts.This fixes the flaky "should throw an Error when aborted in-flight with a string reason" test on tracing bots, where the extra instrumentation overhead caused the abort message to arrive before the controller was registered.