Repository navigation
fix(workflow): avoid exponential response path enumeration on LTS 1.13 - #46589
Merged
Merged
Conversation
Replace complete-path enumeration with bounded reachability over nonblocking and observed taken edges, preventing reconverging branches from hanging workers before execution. Persist observed edge decisions in version 2 coordinator snapshots while preserving residual path conditions when restoring version 1 snapshots. Cover graph traversal bounds, activation semantics, streaming output, and checkpoint compatibility.
Contributor
Pyrefly Type Coverage
|
Wait for the consumer to receive all published messages before closing the Redis subscription. Closing as soon as producers finish races with the listener and can discard the final messages under CI load. Keep cleanup in a finally block so failures still stop the subscriber.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## lts/1.13.x #46589 +/- ##
=============================================
Coverage ? 53.52%
=============================================
Files ? 1334
Lines ? 107407
Branches ? 13298
=============================================
Hits ? 57485
Misses ? 47747
Partials ? 2175
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
wylswz
approved these changes
Nov 17, 2026
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.
Fixes ENG-1501.
Summary
Reconverging branches can create trillions of complete paths in a small workflow, causing response registration to hang the worker before execution starts. Replace complete-path enumeration with reachability over nonblocking and observed taken edges. Each search visits each node once while preserving selector-dependent blocking and ordered early streaming.
Store observed edge decisions in version 2 coordinator snapshots. Existing version 1 snapshots retain their residual path conditions when restored. Version 2 snapshots require patched workers.
LTS context
Based on the latest
lts/1.13.xcommit,fd0f575fcc316e207f025712e44bbdcdef9e80a0. This is a direct fix for the LTS implementation: Difymainuses Graphon, and the related upstream fix in langgenius/graphon#400 is still a draft. There is no equivalent Difymaincommit to cherry-pick yet.