Skip to content

feat(image): add ninja to the runner images - #42

Merged
azlekov merged 2 commits into
mainfrom
feat/ninja-build
Nov 5, 2026
Merged

azlekov merged 2 commits into
mainfrom
feat/ninja-build

Conversation

@azlekov

@azlekov azlekov commented Nov 5, 2026 •

Copy link
Copy Markdown

Why

Native Dart hooks need ninja, and the image doesn't have it. The dartcv4 hook in biokom-scan-app fails on the large pool with Failed to find ninja with version=latest. Pull request builds only get past this because that repo installs it during the job.

What

  • Add ninja-build to the core stage, next to cmake and build-essential, so runner, runner-ndk and runner-slim all get it.
  • Add ninja to the tools tests/image-smoke.sh checks.
  • Fix a flaky test in tests/slots.sh: the concurrent claims shared one home and raced on the same cache links, which failed this PR's first run. Each claim now has its own home, as real runners do.

The package goes in the shared apt layer, so that layer is rebuilt once. The SDK and NDK layers don't change.

Testing

Not built locally. This PR's build job builds the images and runs the smoke test, which now checks ninja. tests/slots.sh needs flock, so it runs in CI only; shellcheck passes.

Runners pick this up once the new image is deployed to the hosts.

🤖 Generated with Claude Code

azlekov and others added 2 commits November 5, 2026 15:31
Native Dart hooks need it: the dartcv4 hook of biokom-scan-app stops with "Failed to
find ninja" on the large pool. Installing it in core gives every target the tool, and
the smoke test now checks it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The four claims shared one home, so they raced to replace the same cache links and
one could die on "ln: Already exists", failing the test at random. Runners have a home
each, so the race only ever existed in the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@azlekov
azlekov merged commit d380a06 into main Nov 5, 2026
11 checks passed
@azlekov
azlekov deleted the feat/ninja-build branch November 5, 2026 13:45
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