Skip to content

Fix native-image CI docker build flake#2832

Merged
mjameswh merged 2 commits intomasterfrom
sdk-java-fix-ci-docker-build-flake
Apr 7, 2026
Merged

Fix native-image CI docker build flake#2832
mjameswh merged 2 commits intomasterfrom
sdk-java-fix-ci-docker-build-flake

Conversation

@mjameswh
Copy link
Copy Markdown
Contributor

@mjameswh mjameswh commented Apr 7, 2026

Summary

  • Fixed os_family conditionals in build-native-image.yml: the matrix sets os_family: linux (lowercase) but all if: checks compared against 'Linux' (titlecase), causing Docker build steps to never run and non-Docker setup steps to run unconditionally on Linux.
  • Split docker build out of the inlined $(docker build -q ...) command substitution inside docker run. Previously a build failure caused docker run to receive an empty image argument and attempt to pull sh:latest, obscuring the real error. Now build and run are separate lines so failures are explicit.

@mjameswh mjameswh requested a review from a team as a code owner April 7, 2026 07:23
@mjameswh mjameswh merged commit f4a26e0 into master Apr 7, 2026
18 checks passed
@mjameswh mjameswh deleted the sdk-java-fix-ci-docker-build-flake branch April 7, 2026 16:35
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.

2 participants