Skip to content

fix(harmonyos): keep the committed HAP host in sync - #1686

Merged
houko merged 2 commits into
mainfrom
fix/907-harmony-host-sync
Nov 21, 2026
Merged

houko merged 2 commits into
mainfrom
fix/907-harmony-host-sync

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Rebuild the committed ArkTS host with OpenHarmony SDK API 26 so HAPs packaged without the SDK ship the current renderer and widget code.
  • Record the template digest after a successful rebuild and fail a Go test on template drift.
  • Use the configured HarmonyOS bundle mode in target tests, report the selected host, and uninstall the test bundle identified in the assembled HAP.

Verification

  • Rebuilt the committed host with the API 26 SDK and Hvigor. A simulated edit to Index.ets triggered the drift test, which passed again with the original template.
  • Passed all 20 HarmonyOS packaging tests, the CLI test-bundle and flag regressions, the skill test, and the macOS arm64, macOS x64, and HarmonyOS target checks on Ubuntu.
  • Ran the Hello test command in auto mode without the SDK, exact mode with the SDK, and padded mode with the SDK installed. Inspected the resulting HAPs for the expected bytecode, test configuration, and bundle names. An hdc stub verified the install, start, and uninstall calls, and the CLI reported the matching host source.
  • No HarmonyOS device or emulator was connected for runtime verification.

Closes #907

@github-actions github-actions Bot added size/S bug Something isn't working documentation Improvements or additions to documentation cli labels Nov 21, 2026
@houko
houko force-pushed the fix/907-harmony-host-sync branch from 02d0442 to 69e7552 Compare November 21, 2026 17:04
@github-actions github-actions Bot added size/M and removed size/S labels Nov 21, 2026
@houko
houko merged commit 3292421 into main Nov 21, 2026
12 of 19 checks passed
@houko
houko deleted the fix/907-harmony-host-sync branch November 21, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cli documentation Improvements or additions to documentation size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HarmonyOS: the committed host is older than its templates

1 participant