Repository navigation
fix: remove old pane holder folders at node start and report refused answers - #1963
Merged
Merged
Conversation
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.
Closes with-hide/hide-private#409
Summary
The pane holder's fidelity check found that the old version folders were never cleaned up. This fixes that and six smaller gaps from the same check.
All of it sits behind the development switch
HIDE_DEV_PANE_HOLDER=1except the Windows device Herdr copy cleanup (item 5).noticescapability, which logs it with the pane id; a node that does not accept it is sent nothing and the protocol version stays 1 (B14).The deletion started in feat: keep pane records and reconcile them with the holders that run #1927, which taught
process::runningto read Windows' process table; its description namedrunningon Windows but not this effect, so it was not intended.NotFoundcrash; the flood-close and self-exit tests can no longer pass without proving the end.docs/BUILD.mdsays the Mac mini'svt (macos)job prepares its own Zig.스크린샷 없음: no screen changes; everything here is a daemon, holder, kit or test change.
Review
Noticemessage, not a new protocol version or a closed connection, because the connection did nothing wrong and the pane runs on.hide-holder/src/holder.rs- failure path:Answers::sendnow takes a mutex per parse that has answers, and refusals go through the holder's event loop to the connection.hide-holder-protocol/src/lib.rs- wire: new kind0x92and capabilitynotices; an unknown notice reason reads asOther, never as a broken frame.hide-host/src/kit.rs- failure path on Windows devices: a copy whose files cannot all be asked is now kept; a kept copy and a failed removal each log onekit.herdr_copy_*line on the node's error stream.hide-node/src/terminal/holder.rs- ownership: the prune runs on the recover thread afterrecover, so the folders of holders the reconcile ended go in the same start.Evidence
scripts/verify-cargo.sh lint && scripts/verify-cargo.sh teston macOS at 4cd7b70 withHERDR_*removed: 7031 passed, 0 failed, 158 ignored.node::a_starting_node_removes_the_old_version_folders_nothing_runs_from: of three folders the unused older one goes, the one a v0 holder runs from and the current one stay,pane_holder.folders_prunedsays removed 1, in use 1, failed 0.queues.rs: 17 x 64 KiB input closes withinput_queue_fulland the pane runs on; 6000 OSC 11 questions are refused withanswer_queue_full, a node acceptingnoticesgets refused then resumed, a v1 node accepting onlyscreengets nothing and keeps its connection.node::a_node_logs_the_answers_its_holder_refused_with_the_pane_and_keeps_the_sessionlogspane_holder.answers_refusedwith pane idq1and the session keeps drawing.holder_nodeloggedpane_holder.folders_prunedremoving the planted older folderv0-0000000000000000, with no failure, and every cell passed.holder::tests::refusals_and_resumptions_a_writer_has_not_sent_fold_into_one_of_each: 1000 refuse/resume pairs leave 2 queued notices with summed counts, newest reason last.holder.pty_close_unconfirmed, a failedholder.ended, or a self-exit before the program and its first child were seen running (on Windows the child keeps starting grandchildren, so only those two are asserted);idlereads a thread that ended as work, not aNotFoundpanic.kit::tests::an_older_herdr_copy_stays_while_a_process_runs_it_and_goes_once_none_doesnow runs on every system, and the Windows check lane runs it.scripts/check-vt-build-refusals.shasserts it.vtandholder restarton all three systems andwindows check.kit.herdr_copy_keptandkit.herdr_copy_remove_failedrecords have no test of their own; the kept/removed behavior they report is covered by the kit test on every system.check-vt-build-refusals.shwas not run locally (it builds hide-vt twice without Zig); the CIvtjob runs it.Verification record
python3 -m unittest discover -s scripts/tests: 779 OK (21 skipped); identity, harness anchor and engine boundary guards ok.