Conversation
waitForNode polled with fetchSemanticsNodes()'s default atLeastOneRootRequired, which throws when no Compose root is resumed. Tapping into the next activity opens that gap briefly, and waitUntil doesn't retry thrown errors, so "No compose hierarchies found" failed navigateToEditor intermittently on CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
XCFramework BuildThis PR's XCFramework is available for testing. Add the following to your .package(url: "https://github.com/wordpress-mobile/GutenbergKit", branch: "pr-build/755")Built from b411908 |
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.
What?
Why?
How?
Testing Instructions
Accessibility Testing Instructions
Screenshots or screencast
AI-generated details
Fixes one of two Android E2E flakes:
IllegalStateException: No compose hierarchies foundfromnavigateToEditor(trunk builds 3071, 3051, 2844).MainActivity~30–50ms beforeSitePreparationActivityresumes. Compose tests only track resumed roots, so a poll landing in that gap finds none.fetchSemanticsNodes()defaults toatLeastOneRootRequired = trueand throws there;waitUntildoesn't retry thrown errors. Passingfalselets the poll keep waiting, as Compose's ownwaitUntilAtLeastOneExistsdoes.Verified
:app:compileDebugAndroidTestKotlinandmake lint-android; CI's Android E2E step exercises the change.🤖 Generated with Claude Code