test(arkts): fix harmonyos-smoke compile — byte_offset drift after #5250#5288
Conversation
…e compile after #5250 #5250 added `Expr::Call.byte_offset` but missed the `Expr::Call { .. }` initializers in perry-codegen-arkts's tests (3 in src/tests.rs, 3 in tests/phase2_full_app_smoke.rs). perry-codegen-arkts isn't built by the gating `cargo-test` job, only by the informational `harmonyos-smoke` job (continue-on-error), so this E0063 sat red on main — and on every open PR — without blocking anything. Mirrors the #5266 cheerio fix. After: `cargo test -p perry-codegen-arkts --lib` (111 passed) and `--test phase2_full_app_smoke` (2 passed) both green. No version/CHANGELOG/Cargo.lock edits.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughSix test fixture lines across two files ( ChangesTest Fixture Update for
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Why harmonyos-smoke is red
The
harmonyos-smokejob fails at step 5 (cargo test -p perry-codegen-arkts --lib) with:#5250 added
Expr::Call.byte_offset(call-site source locations for diagnostics) but missed the 6Expr::Call { .. }literals inperry-codegen-arkts's tests. Becauseperry-codegen-arktsis not built by the gatingcargo-testjob — only byharmonyos-smoke, which iscontinue-on-error: true(informational, "must not block package publish") — this E0063 has sat red onmain, and on every open PR, without failing any required check. Same class as the #5266 cheerio fix (which patched theperry-hirintegration test the same merge missed).Fix
Add
byte_offset: 0to the 6Expr::Callinitializers (3 insrc/tests.rs, 3 intests/phase2_full_app_smoke.rs). The HarmonyOS/ArkTS codegen target is real, so the smoke test is worth keeping green rather than deleting — it was only bit-rotting because it's non-gating.Verification
Exactly the two commands
harmonyos-smokeruns:cargo test -p perry-codegen-arkts --release --lib→ 111 passed, 0 failedcargo test -p perry-codegen-arkts --release --test phase2_full_app_smoke→ 2 passed, 0 failedfmt clean; file-size / GC store-site / addr-class gates pass. No
version/CHANGELOG.md/Cargo.lockedits.Summary by CodeRabbit
Note: This release contains no user-facing changes.