Skip to content

fix: integration test openjdk:alpine base image no longer resolvable - #48

Merged
RafaeLeal merged 1 commit into
masterfrom
fix/integration-test-base-image
Sep 14, 2026
Merged

RafaeLeal merged 1 commit into
masterfrom
fix/integration-test-base-image

Conversation

@RafaeLeal

Copy link
Copy Markdown
Contributor

Summary

program_integration_test.clj's vessel-test (12 assertions in one deftest) fails on master, unrelated to any application-code change: it hardcodes --repository openjdk --tag alpine as a base image, and that tag no longer resolves.

Root cause, in two parts:

  1. openjdk:alpine is gone. The openjdk Docker Hub repository was deprecated years ago and the plain alpine tag has since been removed entirely — pulling it now fails with manifest unknown.
  2. Every actively-maintained replacement uses a format this repo's jib version can't read. Swapping in a currently maintained image (tried eclipse-temurin:17-jre-alpine, amazoncorretto:17-alpine, alpine:3.18) just traded one failure for another: Unknown mediaType: application/vnd.oci.image.index.v1+json. Docker Hub images have moved to publishing multi-arch manifests as an OCI image index by default, and jib-core 0.13.0 (this repo's pinned version, deps.edn) predates that format and only understands the older Docker v2 manifest list.

Fix

Point the test at openjdk:8u212-jre-alpine instead of openjdk:alpine. It's one of the few tags still present in the (frozen, deprecated) openjdk repository, and — because it predates the OCI-index switch — it still serves a Docker v2 manifest list, which jib-core 0.13.0 can parse.

This is a test-fixture-only change (test/integration/vessel/program_integration_test.clj); no application code is touched.

Test plan

  • Confirmed on master (before this fix) that the same failure reproduces: Vessel: Tried to pull image manifest for registry-1.docker.io/library/openjdk:alpine but failed because: manifest unknown.
  • Started a local registry:2 container on port 5000 (matching the integration-test GitHub Actions job's services.registry) since the test's later "pushes the built image to the registry" step needs one.
  • make integration-test now passes: Ran 1 tests containing 12 assertions. 0 failures, 0 errors.
  • make unit-test still green: 47 tests, 164 assertions, 0 failures, 0 errors (unaffected, as expected).

🤖 Generated with Claude Code

The openjdk Docker Hub repository was deprecated and the plain "alpine"
tag has since been removed, so program_integration_test.clj's
"containerizes the application" test (and everything downstream of it
in the same deftest) failed with "manifest unknown" trying to pull
registry-1.docker.io/library/openjdk:alpine.

Swapped in openjdk:8u212-jre-alpine, which still exists and, unlike
every other currently-maintained JRE/alpine image checked (eclipse-temurin,
amazoncorretto, alpine itself), still serves a Docker v2 manifest list
rather than an OCI image index — jib-core 0.13.0 (this repo's pinned
version) doesn't understand the OCI index media type and fails with
"Unknown mediaType: application/vnd.oci.image.index.v1+json" against
any image published in that newer format.

Verified locally with a `registry:2` container on port 5000 (matching
the GitHub Actions integration-test job's registry service): all 12
assertions in program_integration_test.clj now pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 14, 2026 17:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the integration test to use a resolvable OpenJDK Alpine tag compatible with the pinned Jib version.

Changes:

  • Replaces openjdk:alpine with openjdk:8u212-jre-alpine.
  • Updates expected manifest assertions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@RafaeLeal RafaeLeal changed the title Fix integration test: openjdk:alpine base image no longer resolvable fix: integration test openjdk:alpine base image no longer resolvable Sep 14, 2026
@RafaeLeal
RafaeLeal merged commit bcd3d1d into master Sep 14, 2026
4 of 8 checks passed
@RafaeLeal
RafaeLeal deleted the fix/integration-test-base-image branch September 14, 2026 21:30
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.

3 participants