Skip to content

fix(mobile): restore mobile architecture check and HarmonyOS test harness - #3881

Merged
bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/fix-mobile-checks
Nov 12, 2026
Merged

bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/fix-mobile-checks

Conversation

@bobleer

@bobleer bobleer commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Restore pnpm run mobile:architecture and the HarmonyOS test harness, both failing on main.

  • mobile:architecture failed two rules: the shared JVM ClientBuildContractTest.kt reached into the HarmonyOS tree (sharedReachesPlatformTrees), and RemoteSession in core-domain exposed public default arguments (defaultArgsInFeatureApi). The cross-platform build contract moves to scripts/mobile-client-build.contract.test.mjs (run by mobile:architecture), and RemoteSession gets explicit overload constructors.
  • HarmonyOS node harness tests had not been updated for MessageQueueStore/supportsMessageQueue and the sidebar footer move: on main, session-record fails 14, session-model-hydration 5, interaction-mailbox 2, workspace-editor 1.
  • NativeCryptoLoad.test.ets called the removed CloudAccountCrypto.derivePasswordHash, so the ohosTest target did not compile; TransportAndGeneralChatUnit.test.ets reached HUKS through watch provisioning and swallowed unexpected errors.

Type and Areas

Type: bug fix (tests / checks)

Areas: mobile shared KMP, HarmonyOS tests, repository scripts

Motivation / Impact

No direct user-facing change. Restores the mobile architecture gate and HarmonyOS test signal.

Verification

  • pnpm run mobile:architecture: exits 1 on main, passes with this change
  • node --test scripts/mobile-client-build.contract.test.mjs (2 passed)
  • node --test src/apps/mobile/harmonyos/tools/tests/{session-record,session-model-hydration,interaction-mailbox,workspace-editor}.test.cjs: all pass (27/5/14/16)
  • ./gradlew :core-domain:jvmTest :core-feature:jvmTest :core-transport:jvmTest: SessionListPolicyTest, RemoteResponseMapperTest pass
  • The ohosTest .ets changes were not compiled locally (no DevEco toolchain here).

Reviewer Notes

AI-assisted change, lightly tested as listed above.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

…ness

- pnpm run mobile:architecture failed on main: the shared JVM client build
  contract test reached into the HarmonyOS tree, and RemoteSession exposed
  public default arguments. Move the cross-platform build contract to
  scripts/mobile-client-build.contract.test.mjs and replace the defaults with
  explicit constructors.
- Update HarmonyOS harness tests for MessageQueueStore and the sidebar footer,
  drop the removed derivePasswordHash call from the ohosTest target, and stop
  the local unit test from swallowing unexpected errors or touching HUKS.
@bobleer
bobleer merged commit 2d7198b into openBitFun:main Nov 12, 2026
37 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant