Repository navigation
Closed
Labels
tend-ci-causeA root cause of a CI failure report
Description
Push run 41395985405, at 5d7e533eb225, records the following failures.
Both named and anonymous logs fail the final visibility assertion: the passage must fit both its log and the window above the fixed footer.
tests.browser.navigation.test_panes::test_thread_travel_into_a_bounded_log_scrolls_the_log_and_the_page_no_more[anonymous]: AssertionError: the passage stayed off the window assert False + where False = evaluate('([log, passage, bar]) => {\n const box = log.getBoundingClientRect();\n const at = passage.getBoundingClientRect();\n const foot = bar ? bar.getBoundingClientRect().top : innerHeight;\n return at.top >= box.top && at.bottom <= box.bottom\n && at.top >= 0 && at.bottom <= foot;\n }', [<JSHandle preview=JSHandle@…>, <JSHandle preview=JSHandle@Entry 3: the deploy copied shard 3 to the
tests.browser.navigation.test_panes::test_thread_travel_into_a_bounded_log_scrolls_the_log_and_the_page_no_more[named]: AssertionError: the passage stayed off the window assert False + where False = evaluate('([log, passage, bar]) => {\n const box = log.getBoundingClientRect();\n const at = passage.getBoundingClientRect();\n const foot = bar ? bar.getBoundingClientRect().top : innerHeight;\n return at.top >= box.top && at.bottom <= box.bottom\n && at.top >= 0 && at.bottom <= foot;\n }', [<JSHandle preview=JSHandle@…>, <JSHandle preview=JSHandle@Entry 3: the deploy copied shard
Representative failing boundary
d or without one. Travel centred the passage by moving the page, scrolling the log
only as far as its edge, so a log already on screen slid under the user; one
scrolled off the window must still come back with the passage in it."""
page = open_page(
browser,
serve(
bounded_log_page(named),
anchored=[("deploy", "the deploy copied shard 3 to the new key format")],
),
)
resized(page, 1400, 900)
thread = only_thread(serve.page_dir)
log = page.locator(".log")
passage = log.locator("p").nth(3)
placed = """([log, passage, bar]) => {
const box = log.getBoundingClientRect();
const at = passage.getBoundingClientRect();
const foot = bar ? bar.getBoundingClientRect().top : innerHeight;
return at.top >= box.top && at.bottom <= box.bottom
&& at.top >= 0 && at.bottom <= foot;
}"""
handles = [
log.element_handle(),
passage.element_handle(),
page.locator(".lf-fp-row").element_handle(),
]
# The log stands in the middle of the window, opened on its newest entry.
page.evaluate(
"""log => { const at = log.getBoundingClientRect();
document.scrollingElement.scrollBy({
top: at.top + at.height / 2 - innerHeight / 2, behavior: 'instant'}); }""",
log.element_handle(),
)
scroll_settled(page)
assert not page.evaluate(placed, handles)
before = page.evaluate("() => document.scrollingElement.scrollTop")
travel_to_passage(page, thread)
scroll_settled(page, ".log")
scroll_settled(page)
assert page.evaluate(placed, handles), "the passage was left out of view"
after = page.evaluate("() => document.scrollingElement.scrollTop")
assert after == pytest.approx(before, abs=1), f"the page moved {after - before}px"
# The log scrolled back to its end and the page taken to its top: the travel
# brings both the log and the passage in it into the window.
log.evaluate("log => log.scrollTop = log.scrollHeight")
page.evaluate("() => document.scrollingElement.scrollTo(0, 0)")
scroll_settled(page)
assert not page.evaluate(placed, handles)
travel_to_passage(page, thread)
scroll_settled(page, ".log")
scroll_settled(page)
> assert page.evaluate(placed, handles), "the passage stayed off the window"
E AssertionError: the passage stayed off the window
E assert False
E + where False = evaluate('([log, passage, bar]) => {\n const box = log.getBoundingClientRect();\n const at = passage.getBoundingClientRect();\n const foot = bar ? bar.getBoundingClientRect().top : innerHeight;\n return at.top >= box.top && at.bottom <= box.bottom\n && at.top >= 0 && at.bottom <= foot;\n }', [<JSHandle preview=JSHandle@<div tabindex="0" data-bound="end" class="log scroll" data-lf-scrolls="" data-lf-bound="end" data-lf-lent-reach-stop="">…</div>>, <JSHandle preview=JSHandle@<p aria-details="">Entry 3: the deploy copied shard 3 to the new key…</p>>, <JSHandle preview=JSHandle@<div class="lf-fp-row">…</div>>])
E + where evaluate = <Page url='http://127.0.0.1:38819/versions/v1.html'>.evaluate
/home/runner/work/leaf/leaf/tests/browser/navigation/test_panes.py:1179: AssertionError
This session read the CI evidence but ran no local reproduction. Reconcile current main, later repairs and active work first; reproduce the focused boundary and read the introducing change’s intent before choosing a repair. Preserve the user behavior, and distinguish a stale test contract from a product regression. A passing attempt alone does not retire an intermittent failure.
Cause of a failure tracked in #3985.
Metadata
Metadata
Assignees
Labels
tend-ci-causeA root cause of a CI failure report
Activity
leaf-agent commentedon Nov 2, 2026
#5099 fixes the reproduced failure: focusing the floating card had disabled the root's footer clearance. That exception now applies only to focused text editors. Both bounded-log cases pass, along with six related browser cases and 745 runtime tests; the PR includes before-and-after screenshots.
The fix is pushed as
00aa3ee5d. Review and CI verification continue through the PR's workflows; this session does not poll CI becauseawait_ci: false.