Repository navigation
test(android): report USB state when the first order-event watch does not arrive - #1047
Merged
Merged
Conversation
… not arrive PR #1043 queue run 44295461478 timed out at first_life(rig, 'watch')'s first wait for a phone package watch. Three bounded experiments through the real lifecycle did not reproduce it, so its cause is unknown. The wait's timeout message now carries bounded synthetic state: the request's view, USB entries, forward rows, ended requests, retained handles, retention refusal, runs, the supervision loop and fake ADB counts. No assertion, deadline or name changes. Spec: ANYM-997 Signed-off-by: egerev <egor@gosync.ai> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
PR #1043's queue run 44295461478 (group 80ac4eb, Android tree = c06f8b5), job 134771439982, failed
test_foreign_forward_is_never_adopted_removed_or_used_to_revive_collection[watch]at the first wait infirst_life(rig, 'watch'):until(lambda: rig.phone.packages), line 199. After the only request finished, the phone received no package watch within 5 s. This happened before any foreign-forward setup and is separate from the exact-row waits fixed in #1042/#1045.Cause: UNKNOWN. A healthy trace shows the request's single USB entry binding during the run. The first watch is sent only after retention. Three bounded experiments forced specific interleavings through the real lifecycle with fake ADB and listener, and all three passed:
runningbefore the session turn changed.Not distinguished without CI state: the run ending in a state other than
succeeded, retention being refused, the supervision loop stopping, or an earlier connector end. No blind repeats.Change (this test file only). When the initial-watch wait in
first_life(..., 'watch')times out, the message now carries bounded synthetic state:usb_sourceandnative_supervision;The wait, its deadline, every assertion, test names and parameters, and the foreign-forward guards are unchanged.
Validation. A forced no-refresh run shows the message. In that case: run
succeeded, handle retained, USB sourceunavailable/no_live_authority, no entries or forwards, loop running. The 58 USB tests pass and Ruff is clean. Source and synthetic only.Spec: ANYM-997
Change path: AUTO (test failure observability; no product code)
Review record: none (owner 11-11: no reviews)
🤖 Generated with Claude Code