Skip to content

Finish the Decision-to-Ask rename in the Ask arrival test's measurements - #315

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-33995234828
Sep 6, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-33995234828

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Problem

main's nightly suite fails on run 33995234828 with Page.evaluate: ReferenceError: decision is not defined in tests/test_render_widgets.py::test_an_ask_arrival_starts_with_the_context_that_frames_it. 3bbacba's Decision-to-Ask rename reached both page.evaluate blocks in that test but finished neither: the first declares const ask and still reads decision.top, the second still declares const decision and reads ask.top. JavaScript inside a Python string gets no lint, so each block throws before any assertion in it runs and the test says nothing about the arrival it names.

Solution

Name the rectangle ask on both sides of both blocks, which is the rename the commit intended. The fault is local to this one test — a scan of every embedded () => {...} block across tests/ and skills/ for free identifiers turns up no other half-renamed pair.

Testing

uv run pytest tests/test_render_widgets.py -q -n0 -k an_ask_arrival_starts_with_the_context
1 passed, 105 deselected

Reproduced first: before the fix the same selection fails with ReferenceError: decision is not defined, and after fixing only the first block it fails with ReferenceError: ask is not defined from the second — so both edits are load-bearing.

The other failure on this run is separate and older

The run also fails tests/test_render_controls.py::test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus on media (.lf-media-open:is(:focus-visible, .lf-focus-visible)). That one predates this commit: it first reddened on run 33993671859 at 372a97c ("Support pasted images in threads"), which introduced .lf-media-open, and the ci-fix run triggered by that failure is still in flight. Left out of this PR so the two don't collide.


Automated fix for failed run

Both page.evaluate blocks in test_an_ask_arrival_starts_with_the_context_that_frames_it were left half-renamed: the first declares 'const ask' and reads 'decision.top', the second declares 'const decision' and reads 'ask.top'. Either way the block throws a ReferenceError before any assertion runs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants