Repository navigation
Restore the version menu test's wait on a standing comparison - #446
Merged
Merged
Conversation
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.
test_the_version_menu_is_worked_by_pointer_and_keyfails intermittently onmain— two of five whole-file runs under-n2— where the reopen after the comparison walk finds.lf-version-row[data-lf-version="1"]resolved butinactive. The failure is a missing wait rather than a product fault, and the wait is one this file used to have.#443 made the closed version chooser a stable token:
paintDiffnow writesversionBtn.textContent = currentVersionToken()with no reading ofdiffOn, so the label saysv2whether or not a comparison is standing. The assertions that read that label were rewritten to match, and three of them became tautologies in the process. The one at line 3265 was the file's settle point, and the four comment lines above it still say so — "the base is settled when the chooser says so, and the base's document is a fetch away, so a test that closed the menu on the press alone would ask where the walk stands from a loaded machine and be told the version being read." That is the state the reopen below reads. Nothing holds for it now, so the Escape and the reopen can run before the walk's comparison has settled, and the open lands on a row the base has not reached.This restores each reading on the class the same commit already adopted for
test_the_menu_compares_with_any_version_older_than_this_one—on, whichpaintDifftoggles beside the text. Three sites gain a reading rather than a rewrite: the settle point at line 3265, the standing comparison the reopened menu reports, and the ArrowDown that the comment calls "the way off it", which now asserts the comparison cleared rather than re-reading a token that never changed.test_render_projection.py's comparison retry gets the same reading; it did not fail, because thelf-ins-blockassertion after it still gates.Verified on
mainat51ddc7e3: the whole oftests/test_render_anchors.pyunder-n2passes three runs from three with this change, against two failures in five without it, and the projection case passes.The runs behind this
Whole file,
-n2, Linux, same runner throughout:The failure:
It passes alone under
-n0every time; the whole file under-n2is what gives the unsettled reopen room to happen.