Skip to content

Seed missing Android golden for DesktopModeScreenshotTest#5178

Closed
shai-almog wants to merge 1 commit into
masterfrom
chore/seed-desktopmode-android-golden
Closed

Seed missing Android golden for DesktopModeScreenshotTest#5178
shai-almog wants to merge 1 commit into
masterfrom
chore/seed-desktopmode-android-golden

Conversation

@shai-almog
Copy link
Copy Markdown
Collaborator

What

Seeds the missing Android reference screenshot for DesktopModeScreenshotTest.

DesktopModeScreenshotTest was added in #5170 ("Deepen desktop integration") but no baselines were ever committed, so every screenshot run reports DesktopMode as missing reference on all platforms (see the CI comments on #5177). On Android this is non-fatal, but it means the test has no golden to compare against.

This commits the Android baseline harvested from the full-resolution emulator render produced by the scripts-android CI job (320×640, matching the other Android goldens):

DesktopMode (Android)
Title bar ≡ Desktop Mode + colored list rows (Row 1…N)

How it was produced

Downloaded the full-res DesktopMode.png from the emulator-screenshot artifact of a passing scripts-android run, rather than rendering locally (the comparison tolerance is 0.30% / channel-delta 4, so a non-CI render wouldn't match).

Scope / follow-ups

  • This PR seeds Android only, as requested. DesktopMode is also missing on ios, mac-native, and javascript — happy to seed those too in a follow-up.
  • Separately, the iOS/Mac native suites show ChatView_* and ToolbarTheme_* differing (not missing) — that looks like native-theme drift from the Regenerate native theme .res files for #5170 CSS changes #5174 .res regeneration and is unrelated to this golden; flagging it for a separate decision.

🤖 Generated with Claude Code

DesktopModeScreenshotTest was added in #5170 ("Deepen desktop integration")
but no reference screenshots were committed, so every CI screenshot run
reports DesktopMode as "missing reference" (non-fatal, but it means the test
has no baseline). This seeds the Android baseline from the full-resolution
emulator render produced by the scripts-android CI job, so the Android
instrumentation screenshot suite now has a golden to compare against.

The captured screen is the desktop-mode list (title bar + colored rows),
320x640, matching the other Android goldens.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented Jun 5, 2026

Compared 124 screenshots: 124 matched.

Native Android coverage

  • 📊 Line coverage: 13.12% (7843/59792 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 10.62% (38839/365604), branch 4.53% (1558/34420), complexity 5.57% (1841/33023), method 9.78% (1511/15453), class 15.97% (346/2166)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 13.12% (7843/59792 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 10.62% (38839/365604), branch 4.53% (1558/34420), complexity 5.57% (1841/33023), method 9.78% (1511/15453), class 15.97% (346/2166)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 1537.000 ms
Base64 CN1 encode 220.000 ms
Base64 encode ratio (CN1/native) 0.143x (85.7% faster)
Base64 native decode 1179.000 ms
Base64 CN1 decode 257.000 ms
Base64 decode ratio (CN1/native) 0.218x (78.2% faster)
Image encode benchmark status skipped (SIMD unsupported)

@shai-almog
Copy link
Copy Markdown
Collaborator Author

Folded into #5177 (everything consolidated into the camera PR per request); closing this standalone PR.

@shai-almog shai-almog closed this Jun 5, 2026
@shai-almog shai-almog deleted the chore/seed-desktopmode-android-golden branch June 5, 2026 15:59
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