Repository navigation
test: prove the pane holder across node restarts and measure it against Herdr - #1952
Merged
Merged
Conversation
… one shared function
…he app starts its daemon
…ill, and let CLI helpers end
… app starts its daemon in
…, and read memory once a flood settles
…repeat the Windows Antigravity cell
… the known Windows failure The lane and the color probe put each node, holder and server they start in one owner the moment it starts, find holders by their pane records, and end everything by pid and start time when a cell passes, fails or the run is stopped by a signal; the folder goes only once nothing runs. A CLI off its pin fails its cell, the holder's identity is checked against the process table, and the Windows Antigravity cell is shown but not counted while with-hide/hide-private#405 is open.
The slow consumer now reads one holder's socket through a proxy, or stops one Herdr session client, instead of slowing the node's sink, records the node's memory, drops a round's build-process conditions per phase, and ends everything the round started by pid and start time.
…its budget A connection's first return of freed pages, and one after 1 MiB of output, is logged; the idle and memory tests wait on that instead of a settle time, the memory test asserts the 6 MiB budget, and a unit test shows a full scrollback drops its oldest rows first. The debug-only switch that kept freed pages is gone.
…ss on Windows Windows refuses to delete the read-only files Git writes, so the lane's folder removal now makes them writable first (agent_live_check.system.remove_tree); and TerminateProcess answers access denied for a process already ending, which now counts as ended once its object is signalled.
# Conflicts: # scripts/ci-plan.py # scripts/tests/test_ci_plan.py
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.
Related: engine bundle 2 (pane holder), the last of #1917, #1918, #1927, #1929, #1934; with-hide/hide-private#405
Summary
This shows that a pane keeps running, untouched, when the node that holds it is killed and a new one takes it back, with every supported agent's real CLI on macOS, Linux and Windows, and measures the holder path against Herdr's.
A new lane restarts the node under each pinned CLI: 21 cells on three systems.
Measured on macOS against Herdr v0.9.5, the holder path is faster and within every agreed bound; one fix was needed, so a holder now gives freed heap memory back once its screen is still.
One Windows Antigravity cell failed once in ten runs: agy read the holder's answer to its color question as keys. The cause and the product question are in hide-private#405; until it closes, the lane shows that cell but does not fail on it, whatever the cause of that cell's failure.
The lane, the measurement and the probe end everything they start, by pid and start time, however a run ends.
스크린샷 없음: 화면 변경이 없습니다(개발 스위치 아래의 노드, CI 레인, 측정 스크립트, 문서).
Review
hide-holder/src/holder.rs(next_job,return_freed) - the high-frequency path: the writer waits once for 1 s after its last fragment, then gives freed pages back and waits with no bound; a connection's first return and one after 1 MiB of output are logged (holder.memory_returned), so a pane redrawing a line every second does not fill its log. Nothing is added to the PTY reader or the encoder but the pane's count of bytes fed.scripts/holder_owned.py- the one end for every process the lane, the measurement and the probe start: children as started, holders by their pane records, everything under them by one look at the process table; one failing end does not stop the others, and the folder goes only once nothing runs.scripts/tests/test_holder_owned.pyholds it after a node restart that fails and after SIGTERM.scripts/holder-restart-check.py(KNOWN_FAILURES) - the Windows Antigravity cell, keyedantigravityas the contract names it, is shown as a known failure and not counted while hide-private#405 is open, unless it leaves a process running; the other 20 cells block. The mark hides every failure of that cell, not only Run the focus ordering spec on the DOM terminal renderer #405's cause, so its reason in the report is what tells a new one apart; a key naming no agent of the contract stops the run, andscripts/tests/test_holder_restart_known_failures.pyholds the mark, the pass and the fail. A CLI off its pin fails its cell, and the holder's identity is checked against the process table.hide-node/src/terminal/holder.rs,hided/src/core.rs-Holders::start_localtakes the holder folders only with the switch on (Option<HolderFolders>)..github/workflows/holder-restart.yml,scripts/ci-plan.py- the lane on three systems; the five extra Antigravity runs are gone.malloc_zone_pressure_relief, glibcmalloc_trim,HeapCompact) a second after the last fragment; an idle holder wakes 0 times in 60 s. The lane job took 2.7 to 6.1 minutes per system (runs 41234750464, 41237366181: build 78 to 90 s, cells 24 to 39 s, color probe about 80 s); theholder_nodeexample adds 17 to 44 s per system.Evidence
screen.rs's to check, not the lane's.memory.rswaits for the return logged after the flood's last line and holds the 6 MiB budget on Linux and Windows in every build, and on macOS that the holder is within the budget or its return brought it down (local debug, five runs: 7.20 to 9.14 MiB at the flood's end, 5.86 to 6.75 MiB after; a CI runner: 5.08 MiB at the end, 5.09 after), the release measurement judging the bound there; a unit test shows a full 2 MiB scrollback drops its oldest rows first and keeps its size.test_holder_owned.pypasses and fails when pane records are ignored; a measurement round stopped by SIGTERM left no process and no folder;test_holder_perf_close.pyholds that a round's own failure is raised with what its close left beside it.herdr pane runand no client attached; whether Herdr answers while a screen is attached was not measured (hide-private#405).21 cells (agent x system), this head
Run 41250820500 (40248e9). Each cell: result (first turn / reattach / second turn, s); every CLI matched its pin and no cell left a process running.
Windows Antigravity, five more runs in the same job at 080c2f6 (that step is gone from the workflow; this is its record): pass, pass, pass, pass, pass. Through 080c2f6: 1 failure in 10 runs (20c9452, hide-private#405); it passed at 2fca9dc and on this head.
Measurement tables (macOS; dropped pairs listed first)
Dropped pairs (a build process in some phase of either round)
Kept pairs: 1 panes [1, 2, 3, 4], 64 panes [2, 3, 4], 100 panes [1, 3, 4, 5], 128 panes [1, 2, 3]
Latency, key to frame at the node: each kept pair (ms; load min-max of both rounds)
Latency bound: median over kept pairs of holder - (1.1 x Herdr + 0.5 ms)
Flood CPU (user+sys s of the path's processes): each kept pair
Loss, wakeups and memory in every kept round
Slow consumer at 64 panes: one pane's connection read 10 ms of every 40 (holder: proxy on its socket; Herdr: its session client stopped 30 ms of 40)
One unattached holder flooded 300 MB: before 2.72 MiB, right after 5.16 MiB, still 2.5 s 5.16 MiB
Verdicts
45 of 45 pass
Before the freed-memory return (pair 1 of the first battery, same method): one holder idle 3.06 MB unattached and 3.47 MB attached at 64 panes (bound then 3 MB); after a 300 MB flood 8.2 MB, and 8.4 to 8.9 MB after 0.46 to 1.5 GB on one holder.
Method
scripts/holder-perf.py(docs/PERFORMANCE_TESTING.md, The pane holder's path): the node is hide-node'sholder_nodeexample built throughHolders::start_local; the Herdr path is a private server of the pinned v0.9.5 (HOME, XDG folders, HERDR_SESSION, HERDR_CONFIG_PATH and HERDR_SOCKET_PATH its own) attached through the node's Herdr sessions, the holder path the same node withHIDE_DEV_PANE_HOLDER=1, both at 120x40 running/bin/shon the same Mac in alternating rounds.Latency is a 12-letter token typed through the node's
keyuntil a frame showing it reaches the node's screen sink, 200 tokens 40 ms apart on an extra echo pane, alone, beside one pane flooding 300 MB, beside eight panes flooding 75 MB each, and beside one 75 MB flood whose connection alone is read slowly; memory isphys_footprint, wakeupspkg_idle_wkups + interrupt_wkups, CPU user+sys fromproc_pid_rusage; the echo's log is compared token for token with what was typed.Each phase records the load and the build processes running; a pair either of whose rounds saw a build process is dropped.
Release binaries ran from a folder of their own, with no cargo running in this worktree during a round.
Verification record
test: pass a macOS holder within its budget or one its return brought down), main merged at 61c5e93.verifysuccess,vtand the holder restart lane success on Linux, macOS and Windows. The 21-cell table is from run 41250820500 on 40248e9 (21/21, none marked known failure); 41247368773 on 2fca9dc was 21/21 too.scripts/verify-cargo.sh lintandtest, 55 test binaries, 7014 passed, 0 failed, withHERDR_*andHIDE_*unset;python3 -m unittest discover scripts/testsOK (21 skipped).memory.rson macOS debug, five local runs: 7.20 to 9.14 MiB at the flood's end, 5.86 to 6.75 MiB after its return; the macOS runner at 61c5e93 read 5.08 MiB at the flood's end and 5.09 after (job 124704224457), within the budget, which the check now passes.analyze.py, 45/45 bounds pass; slow consumer and unattached flood re-measured with release binaries copied out of the worktree.