Skip to content

ci: pre-install pinned NDK in Schema Validation workflow - #1459

Merged
michalharakal merged 2 commits into
developfrom
fix/schema-validation-ndk-install
Oct 29, 2026
Merged

michalharakal merged 2 commits into
developfrom
fix/schema-validation-ndk-install

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Summary

The Schema Validation workflow failed on develop (run 40885713880) with:

> Failed to apply plugin 'sk.ainet.transformers.bom-coverage'.
   > A problem occurred configuring project ':skainet-backends:skainet-backend-jni-cpu'.
      > com.android.builder.sdk.InstallFailedException: Failed to install the following SDK components:
            ndk;28.2.13676358 NDK (Side by side) 28.2.13676358

The underlying cause was a transient download error (Premature EOF): configuring the project graph reaches skainet-backend-jni-cpu, and when the pinned NDK is missing on the runner, AGP downloads it mid-configuration with no retry. Every run of this job re-downloads the NDK, so it fails whenever the download hiccups.

Fix

Install the pinned NDK up front via sdkmanager with 3 retries, before any Gradle invocation — the same approach publish.yml already uses. The version is read from gradle/libs.versions.toml (android-ndk), so it stays in sync with skainet-backend-jni-cpu's ndkVersion.

The failed develop run has also been re-run, since the failure was transient.

🤖 Generated with Claude Code

michalharakal and others added 2 commits October 29, 2026 14:58
Configuring the project graph reaches skainet-backend-jni-cpu, whose
Android plugin requires the pinned NDK. When absent, AGP downloads it
mid-configuration with no retry, so a transient network error (such as
the "Premature EOF" that failed run 40885713880 on develop) fails the
whole job. Install the NDK up front via sdkmanager with retries, the
same approach publish.yml already uses, reading the version from
gradle/libs.versions.toml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
sdkmanager is not on PATH on the plain ubuntu runner (publish.yml gets
it via the setup-android action); use the preinstalled SDK's copy under
ANDROID_HOME directly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@michalharakal
michalharakal merged commit 722bbb6 into develop Oct 29, 2026
16 checks passed
@michalharakal
michalharakal deleted the fix/schema-validation-ndk-install branch October 30, 2026 19:10
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