Repository navigation
Conversation
… prevent frequent intermittent failures. (mozilla#3954)" This reverts commit 3068875. Although the retry loop addresses the intermittent test failure from the initial-scan race, it changes what the test verifies, from "a change triggers a reload" to "repeated changes eventually trigger a reload". Additionally, the repeated writes can be a new source of intermittent test failures: if the reload for the first write is still pending but not detected yet, another write can be issues which could result in 3 instead of 2 reloads to be detected - causing a test failure.
Rob--W
commented
Nov 27, 2026
|
|
||
| // Wait before touching the file: | ||
| // - Changes made before the watcher's initial async scan completes are | ||
| // never reported (see #3954 and #3950). The wait below is expected to |
Member
Author
There was a problem hiding this comment.
I kept the start of this comment the same as @rpl's comment at #3954. "never reported" is technically not fully accurate as a statement in isolation (it should be "may not be reported"), but in the context here it describes the condition for which the delay is needed. Let me know if I should reword (I kept the same start because it was the justification for the original commit/PR).
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.
This is a follow-up to PR #3954; basically a revert of that PR plus a new commit that aims to fix the intermittent issue more reliably.
I left some quick review comments at #3954 (review) at first based on my intuition, but now I have also confirmed the two issues with that PR:
The proposed fix (second commit) fixes the issue and adds a comment to explain why the test is like this, referencing #3954 (which itself references #3950 eventually - as the original motivation for #3954, i.e. detecting too little) and #3697 (the opposite problem: detecting too much).