Skip to content

build: Android host tests for skainet-backend-cpu (#1230) - #1559

Merged
michalharakal merged 1 commit into
developfrom
feature/1230-android-host-tests-cpu-backend
Nov 23, 2026
Merged

michalharakal merged 1 commit into
developfrom
feature/1230-android-host-tests-cpu-backend

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Closes #1230.

What changes

skainet-backend-cpu adds withHostTest {} to its Android target, so its commonTest sources compile and run against the Android compilation as host-side JVM unit tests. Before, the module had no Android test task at all.

Where the switch lives

In the module, not in the convention plugin. skainet-io-core and skainet-io-gguf already enable it per module, and turning it on for every module at once would start many test suites that have never run on Android, in one step. The test (android) CI leg runs testAndroidHostTest repo-wide, so this module's tests are picked up there without a workflow change.

Result

./gradlew :skainet-backends:skainet-backend-cpu:testAndroidHostTest: 67 suites, 375 tests, 0 failures, 0 skipped (131 s locally, cold compile included). The 67 suites are all 67 test files in commonTest; nothing new failed.

The metric suites (sk.ainet.exec.metrics.*, 49 tests) pass, including MetricsPlatformParityTest, which requires the same Double bits as on the JVM.

Not covered

  • Instrumented tests on a device or emulator were not run.
  • Host tests run on the host JVM against the Android compilation; they do not exercise ART or the NEON JNI kernels.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@michalharakal
michalharakal merged commit d16c7cf into develop Nov 23, 2026
19 checks passed
@michalharakal
michalharakal deleted the feature/1230-android-host-tests-cpu-backend branch November 23, 2026 15:24
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.

[Lane 3 · android] Precision/Recall/F1 — Android target parity check (enable host tests for skainet-backend-cpu)

1 participant