Repository navigation
feat(tree): report failed window saves, and capture hosted-test hangs in CI - #900
Merged
Merged
Conversation
ordinary snapshot saves logged failures without exposing them in the tree, so a window whose saves kept failing looked healthy until a relaunch restored the last file that reached disk. `tree` now carries `snapshotUnsaved` for that window until its next save succeeds. The failure still logs through NSLog because agtermCore imports no `os` for the Linux fork, so a subsystem-filtered log query still misses it.
a hung hosted step ran until the 30-minute job timeout without capturing stacks or process state. It now runs `scripts/test-app.sh` under `scripts/watchdog.sh` at 900s and uploads `hosted-test-hang` with the xcresult when the deadline passes. The test host starts outside the xcodebuild process tree, so `WATCHDOG_RUNNER` names it, anchored to this checkout's DerivedData, and the watchdog samples it and kills it with the tree. Libghostty and zmx are staged in a step of their own so a cache miss does not spend the deadline.
zmx patch 0003 already covers the app-rooted daemon item's bind/listen theory, and `session new --command` now ends with its command, so the replay item covers restart and missing-daemon replay only. At its pin zmx does not build under zig 0.17, so the zig item and the DA reply fix wait for the next `ZMX_REV` bump and share its one Live sessions migration.
the 900s deadline also timed xcodegen and the Debug compile, and one cache-hit run spent 1412s building and testing, so a slow but healthy run would have been killed as a hang. `xcodebuild build-for-testing` now runs in its own step and only `test-without-building` runs under the watchdog, at 600s. The job cap goes to 35 minutes, as the test job's does.
launch-time writes in WindowLibrary skip saveChecked, so "the last write of this window's file" promised more than the flag tracks.
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.
Failed window saves show in
tree. Ordinary snapshot saves logged failures without exposing them in the tree, so a window whose saves kept failing looked healthy until a relaunch restored the last file that reached disk. The window's tree now carriessnapshotUnsaved: truefrom a failed AppStore save until the next one succeeds, beside the app-wideindexUnsaved.Hosted-test hangs leave evidence. A hung
App-hosted testsstep ran until the job timeout without stacks or process state. The job now stages libghostty and zmx and runsxcodebuild build-for-testingin steps of their own, then runsxcodebuild test-without-buildingunderscripts/watchdog.shat 600s. On a hang the watchdog samples the test host, kills it, and uploadshosted-test-hangwith the xcresult. The host starts outside the command's process tree, soWATCHDOG_RUNNERidentifies this checkout's DerivedData test host for sampling and cleanup alongside the command tree. The job cap goes from 30 to 35 minutes, as thetestjob has. The hang's cause is still unknown, so its backlog item stays open with the new evidence path.Backlog notes. The failed-save item is removed. Two items are narrowed to what still applies: zmx patch 0003 covers the app-rooted daemon item's bind/listen theory, and the replay-wrapper item now covers only
session restart --commandand missing-daemon replays. The zig 0.17 item and the doubled DA reply item are rewritten to ride the nextZMX_REVbump, since zmx at its pin does not build under zig 0.17.