Repository navigation
Arm the mid-flight post's wait before the press that sends it - #109
Merged
Merged
Conversation
This was referenced Nov 14, 2026
Merged
leaf-agent
added a commit
that referenced
this pull request
Nov 14, 2026
…r Dependabot alerts (#5940) Clears the six open Dependabot alerts for `hono` (#109–#113, fixed in 4.13.16) and `basic-ftp` (#107, fixed in 6.2.4). Both are development-only transitives of the eval stack. Dependabot's own security updates for both failed on 2026-11-13 (runs [43392104554](https://github.com/max-sixty/leaf/actions/runs/43392104554) and [43392104839](https://github.com/max-sixty/leaf/actions/runs/43392104839)), so nothing else was going to open this PR. - **basic-ftp**: `package.json` pins it through the scoped override `get-uri>basic-ftp`, which #1681 added because `get-uri` still asks for 5.x. That exact pin is why Dependabot couldn't update it. This PR moves the pin from 6.2.1 to 6.2.6, the latest release in the same major that #1681 picked. - **hono**: nothing pins it. Every dependant asks for a range (`^4.11.4` from `@modelcontextprotocol/sdk`, `^4 || ^5` from `@hono/node-server`), and the lockfile had simply resolved 4.13.12. `pnpm update hono --depth Infinity --lockfile-only` moved it to 4.13.18. The lockfile changes nothing beyond those two packages. Verification: `pnpm install --frozen-lockfile` succeeds. `@hono/node-server` 2.1.8 `serve()` with hono 4.13.18 answered a request with 200. The `basic-ftp` that `get-uri` resolves loads as 6.2.6 and exports `Client`. Co-authored-by: leaf-agent <[email protected]>
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.
Problem
cionmainhas been red sincebc4596d. Run 33266184820 failed six tests and then hit the 45-minute nightly bound at 72%. Two of the three causes are already fixed onmain:0a4dc85separated a runtime-owned scroller stop from an authored one, andc14bb42raised the push-only bound to 90 minutes.tests/test_render_gate.py::test_a_reload_mid_flight_never_wedges_round_tripis the one left. It failed on that run and again on 33267565103, and it reproduces here without xdist — two of three runs at-n0on this runner.The wait is armed after the press it is waiting on.
.lf-answer-all's handler posts the event, so the request is issued whileclickis still in flight; await_for_eventregistered afterwards never hears it and spends its whole 5s timeout on a trip that already left. It passes only whereclickreturns before the runtime gets the post out, which is a race the machine's speed decides.Measured on this runner
A probe recording
/api/eventrequests alongside the same wait:The request is announced at 1.227s;
clickreturns at 1.732s; the wait registers after that and hears nothing more.Solution
Wrap the press in
page.expect_request, so the waiter is registered before the gesture that satisfies it. The arrangement is stated rather than raced, and nothing the test proves changes: the route's 0.5s delay still holds the post in the air, and the counters assertion andround_tripafter the reload are untouched.tests/render_harness.py'swait_for_eventis the only other use, and it re-reads the counters around each wait, so a missed event there costs a loop rather than the test.Testing
uv run pytest tests/test_render_gate.py::test_a_reload_mid_flight_never_wedges_round_trip --run-nightly -n0— four consecutive passes, against two failures in three before the change.uv run pytest tests— 708 passed, 6 skipped.pre-commit run --files tests/test_render_gate.py— clean.Automated fix for failed run