Skip to content

chore(android): remove unused test dependencies and duplicate Wear settings - #148231

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/android-test-build-cleanup-20260914
Sep 14, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/android-test-build-cleanup-20260914

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Android test builds still include an unused test framework and a duplicate Wear test setting.

User Impact

No user-visible change. Existing JUnit 4 tests and Android resource support are preserved.

Why This Change Was Made

Remove unused Kotest dependencies and the duplicate Wear setting. Declare the JUnit Platform launcher explicitly because Kotest previously supplied it transitively; keep Vintage and the existing versions unchanged.

Evidence

  • Baseline and candidate each passed 13 representative app tests per store flavor, including plain JUnit 4, Robolectric asset loading, and Compose interaction tests. All 284 Wear and 10 Wear-shared tests also passed, with no skipped cases.
  • Full discovery matched exact baseline test IDs: 3,228 Play and 3,359 ThirdParty cases. This was discovery-only, not full-suite execution.
  • Kotest is absent from the resolved candidate test runtime; launcher and Vintage remain at 6.1.3. Removing Kotest without the explicit launcher reproduced a JUnit Platform startup failure.
  • Kotlin lint passed for app, benchmark, Wear, and Wear-shared. Independent review found no actionable P0-P2 issues; whitespace validation passed.

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check could not safely complete for this revision.

ClawSweeper will not retry this unchanged revision.

Next step: No contributor action is requested. Maintainers should inspect the linked workflow run.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 14, 2026 12:02
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: wearos App: wearos size: XS maintainer Maintainer-authored PR labels Sep 14, 2026
@IWhatsskill IWhatsskill self-assigned this Sep 14, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 10:00 AM ET / 14:00 UTC.

ClawSweeper review

What this changes

Removes unused Android Kotest dependencies, explicitly retains the JUnit Platform launcher, and removes a duplicate Wear test-resource setting.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused cleanup absent from current main. No actionable correctness defect was found, and the protected maintainer label excludes automatic closure.

Priority: P3
Reviewed head: 927472f9759bb7fcd1a03de8e7785ce5de1495a5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused cleanup preserves the required test runtime and has relevant reported validation with no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this bot-authored internal cleanup; reported Gradle execution and discovery directly cover the changed test configuration, with no native runtime or UI claim.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this bot-authored internal cleanup; reported Gradle execution and discovery directly cover the changed test configuration, with no native runtime or UI claim.
Evidence reviewed 6 items Pinned introduced change: The independently inspected merge-base-to-head diff matches the supplied introduction evidence and contains only the Android dependency cleanup and duplicate Wear setting removal.
Existing test contracts preserved: The phone configuration retains useJUnitPlatform and Vintage, with the launcher explicitly using the same 6.1.3 version. Wear retains resource inclusion at line 76. The Android tree has no remaining Kotest references.
Cleanup remains absent from main and release: Fetched main still declares both Kotest dependencies; its Wear configuration contains both resource-setting blocks. The v2026.9.4 phone build also retains Kotest.
Findings None None.
Security None None.

How this fits together

Android’s Gradle configuration selects dependencies and resources for phone and Wear tests. The phone tests run through JUnit Platform with Vintage supporting existing JUnit 4 tests.

flowchart LR
  A[Dependency catalog] --> B[Phone test configuration]
  B --> C[JUnit Platform launcher]
  C --> D[Vintage runs JUnit 4 tests]
  E[Wear test configuration] --> F[Tests with Android resources]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Other -7. Total -7 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 2 9 -7
Total 3 2 9 -7

Review metrics

None.

Technical review

Best possible solution:

Keep the existing JUnit execution contract while removing unused framework dependencies and redundant configuration.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is cleanup rather than a reported runtime bug; source confirms unused dependency declarations and the duplicate Wear setting.

Is this the best way to solve the issue?

Yes: explicitly preserving the launcher and Vintage is a narrow way to remove Kotest without changing the existing test engine contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 36a725a599bc.

Labels

Label changes:

  • add P3: This is low-risk test-build cleanup with no intended user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this bot-authored internal cleanup; reported Gradle execution and discovery directly cover the changed test configuration, with no native runtime or UI claim.

Label justifications:

  • P3: This is low-risk test-build cleanup with no intended user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this bot-authored internal cleanup; reported Gradle execution and discovery directly cover the changed test configuration, with no native runtime or UI claim.

Evidence

What I checked:

  • Pinned introduced change: The independently inspected merge-base-to-head diff matches the supplied introduction evidence and contains only the Android dependency cleanup and duplicate Wear setting removal. (apps/android/app/build.gradle.kts:380, 927472f9759b)
  • Existing test contracts preserved: The phone configuration retains useJUnitPlatform and Vintage, with the launcher explicitly using the same 6.1.3 version. Wear retains resource inclusion at line 76. The Android tree has no remaining Kotest references. (apps/android/gradle/libs.versions.toml:86, 927472f9759b)
  • Cleanup remains absent from main and release: Fetched main still declares both Kotest dependencies; its Wear configuration contains both resource-setting blocks. The v2026.9.4 phone build also retains Kotest. (apps/android/app/build.gradle.kts:382, 36a725a599bc)
  • Reported validation: The captured PR body reports baseline/candidate execution of 13 representative phone tests per flavor, 284 Wear tests and 10 Wear-shared tests; exact discovery parity covers 3,228 Play and 3,359 ThirdParty cases. Discovery is explicitly distinguished from execution. Supplied checks include successful Android test and lint lanes. This review did not execute Gradle. (927472f9759b)
  • Recent dependency ownership: Catalog history identifies recent dependency work by Peter Steinberger; GitHub commit metadata verifies the author login as steipete. Older pickaxe/blame inspection failed because required historical blobs were unavailable, so no source-line introduction attribution is asserted. (apps/android/gradle/libs.versions.toml, d13f07b1c28b)
  • Documented Android contact: The Android README names obviyus as its maintainer and documents the phone and Wear Gradle test entrypoints. (apps/android/README.md:517, 927472f9759b)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@roboclaw-bot
roboclaw-bot merged commit 37480e9 into main Sep 14, 2026
117 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/android-test-build-cleanup-20260914 branch September 14, 2026 16:28
@roboclaw-bot

roboclaw-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

Merged via squash.


Maintainer review before landing focused on whether Kotest and the duplicate Wear setting can be removed without changing JUnit 4 execution, test discovery, or Android-resource availability:

  • Removes the unused Kotest dependencies and duplicate Wear configuration at their Gradle owners, and explicitly declares the JUnit Platform launcher that the remaining test runtime actually requires.
  • app/build.gradle.kts depended on Kotest despite having no Kotest tests, so the launcher arrived only transitively through an unrelated framework. Removing Kotest alone reproduced a JUnit Platform startup failure. wear/build.gradle.kts also assigned unitTests.isIncludeAndroidResources = true twice.
  • Baseline and candidate each passed 13 Play, 13 ThirdParty, 284 Wear, and 10 Wear-shared tests (320 executions per revision, no failures/errors/skips). The selected phone cases cover plain JUnit 4, Robolectric asset loading, and Compose interaction. Exact discovery IDs also matched for 3,228 Play and 3,359 ThirdParty cases; that comparison was discovery-only, not execution of those full suites. The resolved candidate classpath contains no Kotest, and ktlint plus independent review through P2 passed.
  • Deliberately retained Vintage, useJUnitPlatform(), the existing 6.1.3 version, and one Wear resource-inclusion setting. This is not a test-engine migration or a version upgrade.

Merge-blocking checks were green on the merged head: openclaw/ci-gate.

Not covered: physical phone/watch end-to-end flows or measured APK-size and runtime-performance improvements. The local full-phone-suite comparison exercised discovery, not every test case.

This completes the audited dependency/configuration cleanup; PR #148233 covers the unused production methods.

vincentkoc added a commit that referenced this pull request Sep 14, 2026
* commit '3c08384584f57787a26da9998488233fc15ccf7e': (122 commits)
  fix(agents): keep tool result summaries when middleware details exceed shape limits (#147805)
  test: make full-suite fixtures portable across runtimes (#148247)
  refactor(qa): share unknown confidence results (#148200)
  chore(android): remove unused test dependencies and duplicate Wear settings (#148231)
  test: reuse compiled preflight in startup fixtures (#148330)
  test(wizard): route recovery integration through database forks (#148337)
  refactor(plugins): simplify provider auth patch recursion (#147933)
  fix(cli): drain failed web capability output (#148234)
  refactor(android): remove unused production helpers (#148233)
  fix(plugins): scope feed integrity to hosted ClawHub (#148220)
  test(qa): compare Telegram entities semantically (#148219)
  test(qa): recognize native Slack exec progress rows (#148217)
  test(cron): distinguish repeated delivery incidents (#148151)
  test(qa): preserve restart command ownership (#148218)
  test(qa): isolate bundled skill CLI gateway state (#148150)
  test(qa): align process lifecycle contracts (#148149)
  improve(media): reduce metadata fetched during orphan cleanup (#148244)
  fix(matrix): retain sync state runtime for deferred persistence (#148152)
  test: deduplicate gateway watch exit fixtures (#148237)
  refactor(cli): derive daemon status contract from gatherer (#148108)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: wearos App: wearos maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants