Repository navigation
Scale iPhone UI-test budgets to the host; screenshots best-effort - #197
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The `iPhone companion` job failed eight times in three days on eight different lines. The Session logs of three red runs and the green run from the same morning (38370101202, 38386816197, 38215609174; 38386254082) show one host: GitHub's shared macos-latest runners spend 5–30× longer than a developer Mac on every XCTest round trip — idle waits of 15–28 s, app launches of 25–34 s, SpringBoard interruption checks of 16–22 s per tap, accessibility snapshots of 5–9 s — red or green. A run went red whenever one step crossed one of the suite's fixed 10, 20 or 30 s budgets, which were tuned on a fast Mac. Today's main failure was a screenshot attachment hitting XCTest's own 30 s after every assertion had passed. Every wait is now UITestBudget.seconds(base), multiplied by MODEX_UI_TIMEOUT_SCALE (CI sets 4, forwarded through xcodebuild's TEST_RUNNER_ prefix in Scripts/test-e2e.sh); a green run is unchanged, since a budget only matters once it is exceeded. Screenshots go through attachScreenshot, which records a missed capture as an expected failure instead of failing the test. Scripts/xctest-activity-times.py totals a Session log's XCTest steps so the next report starts from the same numbers. The pure retry helpers and their probe tests keep their unscaled 30 s. Coven-Harness: Claude Code / claude-fable-5-1
BunsDev
force-pushed
the
ios-ci-host-speed
branch
from
October 13, 2026 12:15
0769fbe to
5fd8886
Compare
# Conflicts: # docs/status.md
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
#197 replaced capture(_:name:) with attachScreenshot(of:named:) and fixed waits with UITestBudget.seconds; the archive test was written before it landed and no longer compiled after the merge. Coven-Harness: Claude Code / claude-opus-5-5
BunsDev
added a commit
that referenced
this pull request
Oct 18, 2026
Val decided on #290: Known rough edges keeps only open problems. Six fixed incidents move, word for word, to docs/reviews/2026-10-18-resolved-rough-edges.md, each under the PR that fixed it (#153, #189, #190, #197, #204, #265 and #271). The section now links to them. Entries with an open part stay: the layout e2e note, the demo-thread and sizing test corrections whose causes are unproven, and the poisoned ChatGPT threads. Also: node-pty's line says Modex still ships the beta, the demo-thread note no longer waits on a merge that happened (#189), and the tracker pointers list the open CF PRs after #289 landed. Coven-Harness: Claude Code / claude-opus-5-5
BunsDev
added a commit
that referenced
this pull request
Oct 18, 2026
…ycle 1) (#292) * Record what shipped in plans, specs, README and status Docs and plans steward, cycle 1 (#290). - Plans: a status line on each ledger under docs/superpowers/plans/ and on docs/mac-store-preview-plan.md, naming the PRs and release that delivered it. Unticked boxes stay as history rather than being ticked after the fact. - Specs: routines (Phases 0 and 1 on main), sticky Auto routing (shipped in v0.0.11) and approval rules (parts 1 and 2 shipped, gate off). - README: app-owned sign-in, self-updating Macs from v0.0.12, Windows and Linux installers from v0.1.0, Images and Plugins no longer marked unreleased. - status.md: the site's static fallback follows apps/site/release.json; the delivered release-candidates entry leaves In flight for a pointer to tracker #273; Next 3 points to #286. Coven-Harness: Claude Code / claude-opus-5-5 * Bring reference docs in line with main and the releases Docs and plans steward, cycle 1 (#290). Each change was checked against the code on main, a release section of status.md or a review. - Shipped work no longer reads as pending: the approval rules editor (v0.0.7), Modex sign-in (v0.0.9), 1Password filling (v0.0.11), the notes folder (v0.1.0), the hosted native updater scenarios and the first published-to-published upgrade, and Windows/Linux publication. - Behaviour matches the code: Windows and Linux show no update banner; Auto's judge sees a placeholder for assistant replies and runs `jev` with one attempt; Claude's model list is Modex's fixed aliases; the Settings sections and transport labels; Space options → Agent notes; the companion's policy route and current version; the knowledge fence for overlapping folders; CI's e2e runs the unpackaged build. - The Store record and processed 0.0.8 package are recorded under gate 5. Coven-Harness: Claude Code / claude-opus-5-5 * Close the two finished In flight entries and add the GitHub App to Next Val decided on #290: the local work recovery and retired worktrees entries are done, so they leave In flight. The recovery audit and the archive READMEs keep their record. Their one open item, repository authorization through a GitHub App, becomes Next 4, ahead of the out-of-scope Cloud tasks. Coven-Harness: Claude Code / claude-opus-5-5 * Move fixed rough edges into a dated review Val decided on #290: Known rough edges keeps only open problems. Six fixed incidents move, word for word, to docs/reviews/2026-10-18-resolved-rough-edges.md, each under the PR that fixed it (#153, #189, #190, #197, #204, #265 and #271). The section now links to them. Entries with an open part stay: the layout e2e note, the demo-thread and sizing test corrections whose causes are unproven, and the poisoned ChatGPT threads. Also: node-pty's line says Modex still ships the beta, the demo-thread note no longer waits on a merge that happened (#189), and the tracker pointers list the open CF PRs after #289 landed. Coven-Harness: Claude Code / claude-opus-5-5 * Move status.md's release sections into their release reviews Val decided on #290: status.md keeps the Shipped table as the index, and each release's details live in its review. The v0.0.6 to v0.1.0 sections (651 lines) move unchanged to a "Status summary" section at the end of each review. Only link targets change, so they resolve from docs/reviews/. status.md drops from 1,060 to 388 lines. The Shipped rows now link their reviews. Four links that pointed at the old release anchors now point at the reviews. A new convention and step 1 of the release procedure say where a release's details go from now on. Coven-Harness: Claude Code / claude-opus-5-5 * Trim the Mac App Store entry to its current state Val decided on #290. The 52-line In flight entry becomes 15 lines: what Apple shows, what signed acceptance covered, and what is open, each linked to its receipt. The old entry moves unchanged to a "Status summary" section of the October 11 signed-acceptance review, with links re-based to docs/reviews/. The short entry drops two statements that no longer hold. The iPhone CI failures have been diagnosed (resolved rough edges), and the Store recovery changes are on main (edf52fc, #173). Coven-Harness: Claude Code / claude-opus-5-5
This branch was successfully deployed
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.
Summary
iPhone companionfailures (8 in 3 days, 8 different lines — screenshot timeout, "not ready to tap … last frame none" ×3, truncated typed text, failed terminate, two ignored-first-tap assertions): GitHub's sharedmacos-latestrunners take 5–30× longer than a developer Mac on every XCTest round trip, and that is the same on green runs as on red ones. The suite wrapped every step in fixed 10/20/30 s budgets tuned on a fast Mac, so whichever step crossed its budget first named the "failure". Evidence from the Session logs of runs 38370101202, 38386816197, 38215609174 (red) and 38386254082 (green, same morning): idle waits 15–28 s (100–135 per run), launches 25–34 s, SpringBoard "interrupting elements" checks 16–22 s per tap, accessibility snapshots 5–9 s. Today'smainfailure was a screenshot request hitting XCTest's own 30 s after every assertion in the test had passed.UITestBudget.seconds(base)×MODEX_UI_TIMEOUT_SCALE(CI sets 4, forwarded withTEST_RUNNER_inScripts/test-e2e.sh; the runner logs the scale in effect). Green runs are unchanged — a budget only matters once exceeded. Screenshot attachments are best-effort (attachScreenshot: a missed capture is an expected failure, not a test failure).Scripts/xctest-activity-times.pytotals a Session log's XCTest steps so the next triage compares numbers against a green run instead of chasing the last line that failed;docs/ios-companion.mddocuments both.completeDemoAction,completeForgetConfirmation) and their probe tests keep their unscaled 30 s.Test plan
XCTExpectFailurenon-strict continues past a recorded failure undercontinueAfterFailure = false; scale ≥ 1) and all 17DemoWorkspaceTestspass locally withTEST_RUNNER_MODEX_UI_TIMEOUT_SCALE=4; the runner log showsUITestBudget: scale ×4; the four demo screenshots are still attachedtap()) — a different bottleneck than CI's, outside the suite's budgetsiPhone companionon this PR (both the push and pull_request runs)unit + e2e (macOS)(unchanged code paths)