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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test flakiness investigation and attempted fixes ❄ #3498
Test flakiness investigation and attempted fixes ❄ #3498
Changes from 26 commits
6b02725
37ff2cf
f113057
be865f9
120feb0
8525c53
2539df9
842bdf8
ab9f1cd
65d7853
0b4f3a9
3741f59
b73f69c
86da626
0faf7b2
8ecbe20
fa36cd4
c0fef47
2df0584
5b0d78e
cda2319
6c686ff
68f2d2e
d871c83
710d6b5
1a7feec
b8428dd
55c0950
ab28264
4d64ca9
441882d
91a5936
5238dd9
7674b4f
0df54ef
63bcf41
d0f2971
eb15a59
cba8978
c837abe
6d06d2a
1d4c28e
c3766a9
2e93238
5642681
5dd2f81
59572c7
62ac7e2
a7bb953
4b9bce3
0582f54
65c97c8
b4de92b
9ec4680
15c308d
547a918
6104481
d9feeda
1238870
c5be6af
c238dac
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstring is missing the return.
If I'm understanding this, the await complete we get is one that waits for the whole load queue to be processed, right?
I don't know how
Queue
works, but if you calljoin
and then add more nodes to the load queue, won't the previously calledjoin
also wait for those nodes to be loaded?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be on to something - I thoughtjoin()
returned a Future. I'll investigate this more.(I misread)
Yes, if you call
join
and then add more nodes to the queue, thejoin
will wait until the queue is completely empty. An alternative would be to post a "marker" message on to the queue and wait for that to be processed, then stop waiting - maybe that'd be better for since some people might be polling their filesystem for changes faster than the queue is processed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be independent of whether the timer exists or not, in case the user gets rid of the timer or some weird edge case pops up?
I.e., shouldn't we have
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only reason the
if self._blink_timer is not None
guard exists is because this watcher can run before theInput
is mounted, and the_blink_timer
isn't initialised untilon_mount
.I don't think we have to worry about the timer disappearing or anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. So, what if the user sets cursor visibility before mounting the widget?
Then, it'll expect cursor visibility to have been set but it won't have been because we skipped the set altogether.
E.g., in a situation like this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they set the blink before the mount, then the blink timer will still be initialised in
on_mount
, but it will start as paused: