ci: show why the refresh-cost step failed - #224
Merged
Conversation
All four dispatched measurement runs failed with a single line: FAIL: Socket closed while waiting for response That says the app died or refused the connection. It does not say why, and the app's own log sits at /tmp/programa-ci-refresh-cost.log on the runner where nobody can read it -- so a four-run cycle produced no diagnosis at all. On failure the step now reports whether the app is still running, whether the socket exists, and the tail of the app log, before exiting non-zero. Refs #183
This was referenced Jul 31, 2026
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.
Refs #183.
What happened
#223 added a dispatch-only step to measure the text-input refresh cost in-process. I dispatched four runs (two on
main, two on the fix branch) and all four failed with a single line:That tells you the app died or refused the connection. It does not tell you why. The app's own log is written to
/tmp/programa-ci-refresh-cost.logon the runner and never surfaced, so four runs produced no diagnosis.I guessed twice at the cause — a
DispatchQueue.main.syncdeadlock, then anassert(Thread.isMainThread)trip from an off-mainsendEvent— and both were wrong on inspection (main.syncis the established pattern at eight other sites in that file, andsimulateShortcutdoes hop to main). Rather than guess a third time, this makes the next run answer the question.What this adds
On failure the step now reports, before exiting non-zero:
Programa DEVprocess is still aliveTest plan
bash -n