Task names mismatched due to KMP & flavors - #49
Open
opencode-agent[bot] wants to merge 1 commit into
Open
Conversation
Co-authored-by: 283375 <283375@users.noreply.github.com>
Collaborator
|
/opencode The check for API 24 failed with a long-lasting issue. Try to fetch the actions results directly. If cannot, here's the key logs: The tests was proved to be working on another simulator, so the problem should be inside the CI. Search Internet and codebase for the action step's precise behavior and locate the root cause. If the problem still exist after 5 fixing attempts, terminate the session and report the findings you've got. Always try executing commands rather than thinking to confirm actual behaviors. Always refer to the latest codebase rather than recalling your memories. |
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
Root cause: The CI commands used
assembleDebugAndroidTestandconnectedDebugAndroidTest— standard AGP naming patterns — but these only matched the:coremodule. Both:appand:sharedwere silently skipped because::shareduses KMP'swithDeviceTestBuilder, which generates tasks named*AndroidDeviceTest(not*DebugAndroidTest). SoconnectedDebugAndroidTestnever matchedshared:connectedAndroidDeviceTest.:apphas product flavors (stable,unstable), so the variant-specific tasks areconnectedStableDebugAndroidTestandconnectedUnstableDebugAndroidTest. The genericconnectedDebugAndroidTestdoesn't aggregate them.Changes made (2 files):
.github/scripts/connected-android-test.sh: Replaced./gradlew connectedDebugAndroidTestwith explicit task names for all 4 variants across 3 modules. Also addedcoreto the report archiving..github/workflows/connected-android-test.yml: Replaced./gradlew assembleDebugAndroidTestwith explicit assembly tasks for all modules.Verified: all test APKs compile successfully, and all connected test tasks resolve correctly in the dry-run.
Closes #48
opencode session | github run