Repository navigation
Wait for any helper in the thumbnail cancel test - #224
Open
rustytensor wants to merge 1 commit into
Open
rustytensor wants to merge 1 commit into
rustytensor wants to merge 1 commit into
Conversation
The test asks for six thumbnails whose helpers hang, then waits for the first clip's helper to start. The provider runs as few as two helpers at once, and which requests get those slots first is not fixed. When the first clip is not among them, its helper only starts once another has used up its 10 seconds, and the 5 second wait fails. The test now takes whichever helper has started.
This was referenced Nov 23, 2026
[Low impact] This test-only change appears safe to merge. SummaryUpdates
Reviews (1) · Last reviewed commit: "Wait for any helper in the thumbnail can..." · Reviewed by Greptile |
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.
thumbnailsCancelRunningHelpersAndAvoidFailureMarkerfails now and then on CI. It failed in this run of #219 before it was merged, and four times in a row on my two open PRs (#114 and #222), which don't touch thumbnails.Why it fails
qBound(2, idealThreadCount() / 2, 6)helpers at once. That is two on a CI runner with four cores, and six on a desktop, which is why it passes at home.What changed
+12 −3, in the test only. It now waits for any clip's helper file to have its PID in it and uses that one. Its comment already said "at least one helper".
Tested
On Omarchy, with the test held to two cores and both kept busy, it failed 7 times out of 8 before the change and passes 20 out of 20 after it. On four busy cores it failed 3 out of 12 before and passes 15 out of 15 after. Nothing else in the suite is touched.