Skip to content

feat(tree): report failed window saves, and capture hosted-test hangs in CI - #900

Merged
umputun merged 5 commits into
masterfrom
backlog-snapshot-ci-zmx
Nov 6, 2026
Merged

umputun merged 5 commits into
masterfrom
backlog-snapshot-ci-zmx

Conversation

@umputun

@umputun umputun commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

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 carries snapshotUnsaved: true from a failed AppStore save until the next one succeeds, beside the app-wide indexUnsaved.

Hosted-test hangs leave evidence. A hung App-hosted tests step ran until the job timeout without stacks or process state. The job now stages libghostty and zmx and runs xcodebuild build-for-testing in steps of their own, then runs xcodebuild test-without-building under scripts/watchdog.sh at 600s. On a hang the watchdog samples the test host, kills it, and uploads hosted-test-hang with the xcresult. The host starts outside the command's process tree, so WATCHDOG_RUNNER identifies this checkout's DerivedData test host for sampling and cleanup alongside the command tree. The job cap goes from 30 to 35 minutes, as the test job 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 --command and missing-daemon replays. The zig 0.17 item and the doubled DA reply item are rewritten to ride the next ZMX_REV bump, since zmx at its pin does not build under zig 0.17.

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.
Copilot AI balanced review requested due to automatic review settings November 6, 2026 06:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@umputun
umputun merged commit 47aa0a3 into master Nov 6, 2026
9 checks passed
@umputun
umputun deleted the backlog-snapshot-ci-zmx branch November 6, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants