Repository navigation
Conversation
The step dialog asks the server whether the runs that cached outputs name still exist. Each pass could send five more requests while the earlier ones still waited, an answer that came after a switch to another workflow or remote node was read in the new one, and a 200 answer with no run left the check waiting forever. Now at most five requests wait at one time, answers of another workflow or node are dropped, and a 200 answer with no run counts as unknown, which leaves the decision to the server. Co-authored-by: SCcagg5 <sccagg5@gmail.com>
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Member
Author
|
Folded back into #4136. |
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.
Summary
The step dialog asks the server whether the runs that cached outputs name still exist. Three bugs: each pass could send five more requests while earlier ones waited; an answer that arrived after a switch to another workflow or remote node was read in the new one; and a 200 answer with no run left the check waiting forever, so the dialog never offered Step only.
Split out of #4136 (whose first version carried these fixes), carved from #3829 and #3833 (SCcagg5), part of #4002.
Changes
dagRunDetailscounts as unknown and leaves the decision to the server (before: the check stayed pending and was never asked again).Core change
The record of requested runs carries its scope, and the effect counts the requests still waiting before sending more. An answer is written only while its scope is current.
Testing
useReuseSource.test.tsx: "keeps at most five requests in flight", "ignores a late answer of another remote node", "leaves the decision to the server when a 200 answer holds no run".Performance
No new request, poll or timer. Run checks stay one per distinct run that the cache entries name, per dialog, now capped at five in flight instead of five per pass, so a burst of answers no longer fans out more requests. A scope switch drops the old record.
Summary by cubic
Fixes three bugs in the step dialog's run checks for cached outputs: requests could pile up without a cap, late answers from a previous workflow or remote node were read in the new scope, and a 200 answer with no run left the check waiting forever.
Written for commit 94612e5. Summary will update on new commits.