Repository navigation
Chore(deps): bump the npm-frontend-security group across 1 directory with 3 updates - #5387
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Merged
3 of 5 tasks
danielhanchen
added a commit
that referenced
this pull request
May 12, 2026
…og for Playwright probes (#5391) * studio/tests: AbortSignal-bound in-page fetches + wall-clock watchdog Run 25696797934 / job 75446949358 on PR #5387 cancelled the "Chat UI Tests" macos-14 job at 30 min: studio.log went idle after the chat surface mounted, no further requests reached the server, and Playwright silently sat on a `page.evaluate(async () => fetch( /api/inference/load))` for 27+ minutes before the runner-level timeout fired. The two other Chat UI Tests jobs on the same SHA passed in 5-17 min, so this was a transient renderer wedge under --single-process Chromium, not a regression from the security bumps in that PR. Root cause: Playwright's `page.evaluate(...)` has no `timeout=` argument. If the JS body awaits a fetch whose promise never settles (the renderer's network thread stalls behind the busy main thread on the free macos-14 runner), the entire Python script hangs until something external kills it. Add two helpers in `_playwright_robust.py`: - `evaluate_fetch(page, url, *, method, headers, body, timeout_ms)` wraps `fetch()` in an `AbortController` so the JS resolves either with a real response or with `{status: 0, error: "AbortError..."}` after the budget elapses. Callers fail loud on a non-None `error` and the wedge surfaces as a one-line diagnostic instead of a 30-min cancel. - `install_wall_clock_watchdog(deadline_s)` starts a daemon Timer that hard-exits the process at the deadline. Belt-and- suspenders for any wedge inside the browser that the per- action timeouts cannot bound. Default 720s (12 min); healthy runs measure 5-9 min on macos-14 so the headroom is small without amplifying a wedge to the 30-min runner cap. Wire both into `playwright_chat_ui.py` and `playwright_extra_ui.py`: - Replace every `page.evaluate(async () => fetch(...))` site with `evaluate_fetch(...)`: refresh-token exchange, defaults fetch, inference load, health probe, post-rotation refresh. Five sites in chat_ui, two in extra_ui. - Arm the watchdog at the top of `with sync_playwright()` and cancel it on clean exit. Knobs (all default-safe, override only for slow runners): STUDIO_UI_WALL_TIMEOUT_S (default 720s) STUDIO_UI_FETCH_TIMEOUT_MS (default 30000ms) STUDIO_UI_LOAD_TIMEOUT_MS (default 180000ms) Verified locally with `python -c "ast.parse(...)"` on all three files and a unit smoke that confirms `evaluate_fetch`'s JS argument shape and that `install_wall_clock_watchdog` returns a daemonised Timer that responds to `.cancel()`. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-329f4cbf04
branch
2 times, most recently
from
May 15, 2026 11:37
625f37a to
ec30e78
Compare
…with 3 updates Bumps the npm-frontend-security group with 3 updates in the /studio/frontend directory: [hono](https://github.com/honojs/hono), [ip-address](https://github.com/beaugunderson/ip-address) and [mermaid](https://github.com/mermaid-js/mermaid). Updates `hono` from 4.12.17 to 4.12.19 - [Release notes](https://github.com/honojs/hono/releases) - [Commits](honojs/hono@v4.12.17...v4.12.19) Updates `ip-address` from 10.1.0 to 10.2.0 - [Commits](https://github.com/beaugunderson/ip-address/commits) Updates `mermaid` from 11.14.0 to 11.15.0 - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Commits](https://github.com/mermaid-js/mermaid/compare/[email protected]@11.15.0) --- updated-dependencies: - dependency-name: hono dependency-version: 4.12.18 dependency-type: indirect dependency-group: npm-frontend-security - dependency-name: ip-address dependency-version: 10.2.0 dependency-type: indirect dependency-group: npm-frontend-security - dependency-name: mermaid dependency-version: 11.15.0 dependency-type: indirect dependency-group: npm-frontend-security ... Signed-off-by: dependabot[bot] <[email protected]>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-329f4cbf04
branch
from
May 16, 2026 12:59
ec30e78 to
5e6f07a
Compare
Contributor
Author
|
Looks like these dependencies are no longer updatable, so this is no longer needed. |
dependabot
Bot
deleted the
dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-329f4cbf04
branch
June 3, 2026 12:31
danielhanchen
pushed a commit
that referenced
this pull request
Aug 23, 2026
…the job
The Chat UI Tests job on this branch ran 55 minutes and was recorded as
cancelled, which `gh pr checks` renders as a failure. It was the 45 minute job
cap plus GitHub's force-kill drain. Nothing before the lanes was slow: the
prologue took 6m44s, and every step through Playwright install passed.
Not this branch's doing. The lane step has a median of 411s over 521 successful
runs and has never exceeded 508s while passing; the five timeouts it shares a
shape with sat in that same step for 48 to 50 minutes. That is a bimodal cliff,
not a budget creeping toward its cap, so 45 minutes is a hang detector and
raising it would only buy a longer waste. Six timeouts in 1070 executed jobs
across six unrelated branches and six runners, none on main, and this branch
passed the same job at 13.05 to 15.92 minutes on six earlier commits. The
suites do not touch what this branch changes: the continuation, cross-tab claim
and image-gate paths are covered by the vitest suite, and the four Linux lanes
and the macOS suite ran these same Playwright scripts against this same commit
and passed.
What made it a 55 minute silence rather than a failure is that nothing in the
path had a deadline shorter than the job's own.
* Neither the step nor the lanes were bounded. Every wait inside the suites is
per-operation: 60s default, 540s a turn, 1080s for the rapid-submit
predicate. Five turns against a stalled model reach the cap before any one
of them fires. Each lane now runs under coreutils timeout at 1500s, 3.6x the
measured lane wall, with the step capped at 28m beneath the job's 45m.
Resolved by absolute path and proven with --version, because System32 has
its own timeout.exe with unrelated semantics and this job prepends a shim to
GITHUB_PATH.
* The step printed nothing while it stalled. The lane files are only cat'ed
after both waits return, so there was no live signal at all; the always()
artifact upload never runs when the runner kills the job at its cap; and
Python block-buffers into a file, so what the suites did print died with
them. Added a heartbeat, PYTHONUNBUFFERED, and a tail of the server log
beside the lane log, since a lane killed mid-turn is usually explained by
the llama-server it was driving. A step timeout is a step failure rather
than a cancellation, so the upload runs now.
* Two suites had no wall watchdog. playwright_loaded_models_indicator.py and
playwright_update_banner_layout.py never armed one, though their siblings
have since a page.evaluate, which takes no timeout at all, hung a job for 27
minutes in #5387. They hold ten raw page.evaluate calls between them, and
they are the last thing the chat lane runs and the middle of the extra lane.
Same 720s default and env knob as the siblings.
* The health polls were not bounded either. `curl -fs` sets no maximum
transfer time and --connect-timeout stops helping once the handshake lands,
so a server that binds its port and then wedges parked the first iteration
forever and the 180 iteration count was never a deadline. Added --max-time,
and made the loop track elapsed time, since once a probe can cost --max-time
an iteration count means up to 18 minutes rather than the 180s it reads as.
Checked against a lane that never returns: unbounded, the step is still silent
past every deadline it claims; bounded, it fails in seconds, names the lane,
and the SIGINT leaves a traceback on the wait that was stuck. The watchdog
hard-exits 2 with the label and the deadline. The health probe against a socket
that accepts and never answers used to outlive its own deadline and now reports
at it, with a healthy server still passing immediately.
danielhanchen
added a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Aug 23, 2026
…nslothai#9425) * Studio: claim automatic continuation across tabs with a storage lease The same saved thread open in two tabs, last reply cut for length: the claim set lives in module scope, so each tab has its own empty one and both start a continuation. Two sibling branches, two paid requests. Back the per-message claim with a short localStorage lease, written with a random token and read back, so exactly one tab starts the run. No storage, or storage that throws, falls back to the module-only claim that shipped before. * Studio: make the cross-tab continuation claim exclusive, reactive and renewed Write-then-read-back narrowed the race without closing it: two tabs can both read the slot free, both write, and both verify their own token. Take the read-decide-write under a Web Lock, which is the only primitive that is actually exclusive, and keep the localStorage lease as the durable record the lock cannot be. The claim now says WHY it did not start a run, so the tab that loses drops its spinner and puts the manual Continue button back instead of waiting on a run it never owned. The lease is renewed for as long as the run is live and given back when it ends, so its TTL means one thing: the holder stopped answering. * Studio: scope continuation lease renewal and release to the runtime that took it Compare mode mounts a Thread runtime per pane, so one tab runs two lease keepers. Renewing and releasing every lease the tab owned meant the pane that finished first ended the hold on the pane still generating: its renewals found nothing held, and a settle window later another tab could claim its message and start a second paid run. Leases now carry the holder that took them, a Thread hands its own id down to the bar that claims, and renewal and release touch only that holder's leases. resetAutoContinue stays wholesale on purpose: a run ending is one runtime speaking for itself, a reset is the whole tab being told it holds nothing. * Studio: release and renew a continuation lease by the run that owns it Rounds of one turn share a holder, and React runs the bar's effect before the thread's, so the next round is claimed before the keeper sees the finished one end. Anything that renewed or released every lease a holder owns therefore cut the round that had just started down to the settle window and dropped its renewal token, and half a minute later another tab could take it. Leases are now renewed and released one message at a time, with the holder as the identity that says whose it is. The keeper keeps a claim in a pending list until a run of its own thread starts, promotes it then, and releases only what that run was resuming, so the effect ordering stops mattering either way. * Name the per-message renewal helper in the lease comment * Studio: tie a continuation lease to its own thread's run, not to what is on screen The keeper read thread.isRunning, which is the SELECTED thread. Opening another saved chat does not stop a generation -- the chat view is keyed by project, so the provider is not remounted and the run keeps streaming on the thread the user left -- but it does flip that selector, and the lease was released as if the run had ended. One settle window later another tab could claim a message still being written and pay for it twice. The lifetime now comes from runningByThreadId, which is per thread and survives navigation, and the keeper lives outside React entirely: a hold is one message on one thread, it arms on a run that starts after it was taken, it renews while that thread generates, and it is given back when that thread stops. Selection, mount and effect ordering are no longer inputs. * Mark a continued message done, and keep a pending run's lease Two ways a second tab still reached the same continuation. A finished run cut its record to a 30 second settle window, which assumed the other tab would pick up the saved thread in that time. Nothing does: the history event is same-window, no chat key has a storage listener, and persisted messages are re-read only when a thread is opened. So the stale tab took the message back on its next remount. The record now carries an explicit done flag and outlives the sitting, which is the question a lease cannot answer. A hold that had not yet seen its run was dropped on a fixed 60 second timer, and its renewals stopped with it. Preflight has no bound, since the adapter awaits settings pairing and then polls for model readiness while a local model loads, so the lease lapsed under a run that had since begun streaming. Pending holds are now renewed too. A tab that dies still hands the message back at the TTL. * Do not take a hold for a run that was never issued Regression from the previous commit. Removing the arming timeout made an unarmed hold renew forever, which is right for a run still in preflight and wrong for one that will never exist. aui.thread() follows the selection rather than the thread the continue bar belongs to, so switching chat or branch while the Web Lock claim is pending leaves startContinuation searching a different message list, finding nothing and issuing no run, after the hold has been taken. The lease behind it is then renewed for the life of the tab and every other tab reads it as live, so one message is stuck cross-tab until the tab closes. The message is checked before anything is held, off the same store startContinuation reads a line later in the same tick, so a run that has been issued and is merely slow to start is unaffected. On the declined path nothing is held and nothing is recorded, and the lease runs out its own TTL exactly as a tab closed mid-claim would. * Answer the losing claim per message, give back an unissued claim, settle a failed hold Three ways the claim path outlived the thing it was deciding about. Rows are mounted by index, so selecting a different truncated branch at the same index re-renders the continue bar rather than remounting it, and a boolean losing answer suppressed automatic continuation for a message no other tab had claimed. It is now remembered as the message it was decided for. The guard added in the previous commit declined the hold but left the claim in the tab's own continued set, which is what makes a later claim answer skipped. A message nothing was issued for has not been continued, so the claim is handed back. Only inside the tab: the storage lease stays and lapses on its own, so no second tab may start while this one is still deciding. A preflight that fails never reaches the running signal, so its hold never armed and was renewed for the life of the tab. The adapter already reports that failure per thread, so unarmed holds for that thread are discarded on the event rather than on any deadline. A slow preflight emits nothing and keeps its hold. * Do not read the image gate's settling pulse as a run A continuation carrying an image the loaded model cannot read is refused before any request is made, and the gate flips the per-thread running flag on and off so compare mode's waitForRunEnd resolves. A hold waiting for its own run read that pair as the run starting and finishing: it armed on the first flag and was released on the second, writing the done marker that tells every other tab for a day that the message has been continued. The failure that follows could not undo it, since a released hold is already gone. The pulse now carries a named owner and the keeper's running signal ignores a thread whose only owner is that gate, so the hold never arms and the failure discards it like any other run that died before starting. Only when the gate is all that holds the flag: a real run sharing the key still answers yes. Tagging the pulse rather than letting the failure undo the marker, because a real run that streamed and then died emits the same two flags, and its own cleanup clears the flag before the wrapper reports the failure. Undoing on failure would unmark genuinely continued messages and hand another tab a duplicate request. * Bound the Windows UI lanes so a wedged suite fails instead of eating the job The Chat UI Tests job on this branch ran 55 minutes and was recorded as cancelled, which `gh pr checks` renders as a failure. It was the 45 minute job cap plus GitHub's force-kill drain. Nothing before the lanes was slow: the prologue took 6m44s, and every step through Playwright install passed. Not this branch's doing. The lane step has a median of 411s over 521 successful runs and has never exceeded 508s while passing; the five timeouts it shares a shape with sat in that same step for 48 to 50 minutes. That is a bimodal cliff, not a budget creeping toward its cap, so 45 minutes is a hang detector and raising it would only buy a longer waste. Six timeouts in 1070 executed jobs across six unrelated branches and six runners, none on main, and this branch passed the same job at 13.05 to 15.92 minutes on six earlier commits. The suites do not touch what this branch changes: the continuation, cross-tab claim and image-gate paths are covered by the vitest suite, and the four Linux lanes and the macOS suite ran these same Playwright scripts against this same commit and passed. What made it a 55 minute silence rather than a failure is that nothing in the path had a deadline shorter than the job's own. * Neither the step nor the lanes were bounded. Every wait inside the suites is per-operation: 60s default, 540s a turn, 1080s for the rapid-submit predicate. Five turns against a stalled model reach the cap before any one of them fires. Each lane now runs under coreutils timeout at 1500s, 3.6x the measured lane wall, with the step capped at 28m beneath the job's 45m. Resolved by absolute path and proven with --version, because System32 has its own timeout.exe with unrelated semantics and this job prepends a shim to GITHUB_PATH. * The step printed nothing while it stalled. The lane files are only cat'ed after both waits return, so there was no live signal at all; the always() artifact upload never runs when the runner kills the job at its cap; and Python block-buffers into a file, so what the suites did print died with them. Added a heartbeat, PYTHONUNBUFFERED, and a tail of the server log beside the lane log, since a lane killed mid-turn is usually explained by the llama-server it was driving. A step timeout is a step failure rather than a cancellation, so the upload runs now. * Two suites had no wall watchdog. playwright_loaded_models_indicator.py and playwright_update_banner_layout.py never armed one, though their siblings have since a page.evaluate, which takes no timeout at all, hung a job for 27 minutes in unslothai#5387. They hold ten raw page.evaluate calls between them, and they are the last thing the chat lane runs and the middle of the extra lane. Same 720s default and env knob as the siblings. * The health polls were not bounded either. `curl -fs` sets no maximum transfer time and --connect-timeout stops helping once the handshake lands, so a server that binds its port and then wedges parked the first iteration forever and the 180 iteration count was never a deadline. Added --max-time, and made the loop track elapsed time, since once a probe can cost --max-time an iteration count means up to 18 minutes rather than the 180s it reads as. Checked against a lane that never returns: unbounded, the step is still silent past every deadline it claims; bounded, it fails in seconds, names the lane, and the SIGINT leaves a traceback on the wait that was stuck. The watchdog hard-exits 2 with the label and the deadline. The health probe against a socket that accepts and never answers used to outlive its own deadline and now reports at it, with a healthy server still passing immediately. --------- Co-authored-by: danielhanchen <[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.
Bumps the npm-frontend-security group with 3 updates in the /studio/frontend directory: hono, ip-address and mermaid.
Updates
honofrom 4.12.17 to 4.12.19Release notes
Sourced from hono's releases.
Commits
7e62bcd4.12.19e2f252afix(stream): upgrade@hono/node-serverto v2 and fix abort handling (#4940)54f2f0cfeat(request): addbytes()(#4921)e59db59feat(cache): key cache entries by configured vary headers (#4915)48a7ccbfeat(bearer-auth): make bearerAuth generic for typed context in verifyToken (...ff7522ffix(cookie): return the first cookie when there are multiple cookies with the...26f8c33fix(serveStatic): make options parameter optional in all adapters (#4934)16c4e38ci: pin GitHub Actions to SHAs (#4932)f10dee84.12.18a5bd9ebMerge commit from forkUpdates
ip-addressfrom 10.1.0 to 10.2.0Commits
Updates
mermaidfrom 11.14.0 to 11.15.0Release notes
Sourced from mermaid's releases.
... (truncated)
Commits
41646dfMerge pull request #7739 from aloisklink/ci/fix-release2671f5cdocs: fix v11.15.0 releasef4bf04bMerge pull request #7738 from mermaid-js/changeset-release/masterabfb563Version Packages60b289fRelease Candidate 11.15.0 (#7737)d37c0dbMerge pull request #7730 from aloisklink/fix/fix-edgeLabelRightLeft-changes5ab5a28docs: improve nested namespace changeset18f8b4cfix: revert endEdgeLabelLeft/endEdgeLabelRight change504b2ebMerge pull request #7726 from aloisklink/fix/correct-unnecessary-html-escapes...1502f32fix(wardley): fix unnecessary sanitization of text