Repository navigation
fix: strip one revision path segment in the write watch's stack frames, matching #6066's URLs - #6080
Merged
Merged
Conversation
#6066's URLs carry #6066 serves a revision's resources at /revisions/<identity>/…, one path segment where there were two. The write watch's frame cleaner still stripped two, so it cut runtime/ and vendor/ off every frame, and neither allowed scroll write (`stopWhereItStands` in runtime/arrivals.js, CodeMirror's measure in vendor/codemirror) matched any more. Every test whose page stopped a scroll or measured an editor then failed its teardown with "unmoved scroll". The watch reports the same writes as before. Refs #3985
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.
#6066 moved a revision's resources from
/revisions/<a>/<b>/…to/revisions/<identity>/…. The write watch's stack-frame cleaner (tests/write_watch.js) still stripped two path segments afterrevisions/, so it also cut offruntime/andvendor/. The two allowed no-op scroll writes,stopWhereItStandsinruntime/arrivals.jsand CodeMirror's measure invendor/codemirror.*, stopped matchingEXPECTED_SCROLLS. Every test whose page stopped a scroll under way, or measured a scrolled editor, then failed its teardown withunmoved scroll: … from stopWhereItStands (arrivals.js:379:7)or… LeafEditorView.measure (codemirror.esm.js…). That covered 20 of the 23 teardown errors in run 43766062952. The cleaner now strips the single identity segment, so the watch judges the same writes it did before #6066.On current
main,test_the_reading_keys_accumulate_and_reverseandtest_a_tall_local_comment_survives_its_panes_scroll_behavior_and_returnfail with those teardown errors. With this change they pass, along with both browsers oftest_a_landing_that_moves_nothing_stops_a_scroll_still_under_wayandtests/browser/test_render_write_watch.py(which checks that a genuineunmoved-scrollis still reported).This fixes one of the run's causes.
test_show_from_on_me_lands_in_the_card_it_opensis a separate regression from #6056, filed as #6081. The colour failures are fixed onmainby #6075.Refs #3985 — automated triage