docling-java icon indicating copy to clipboard operation
docling-java copied to clipboard

Automatically update docling-serve container version

Open edeandrea opened this issue 2 weeks ago • 2 comments

Similar to like I do in https://github.com/quarkiverse/quarkus-langfuse/blob/main/.github/workflows/langfuse-server-update.yml I'd like to auto-update the versioning of the docling-serve container image stored in the config.

Maybe make it a part of https://github.com/docling-project/docling-java/blob/main/.github/workflows/version-tests.yml?

edeandrea avatar Nov 12 '26 17:11 edeandrea

Implementation plan

Goal: Automatically bump DoclingServeContainerConfig.DOCLING_IMAGE_VERSION (currently v1.35.0) to the newest docling-serve tag that passes the weekly version tests (latest run: v1.38.2), as part of version-tests.yml.

Decisions

  • Placement: new steps in .github/workflows/version-tests.yml, reusing its results.
  • Candidate selection: parse the generated results.md for the newest ✅ SUCCESS tag.
  • Validation: rely on the version-tests sanity check; the bump PR's normal CI (build.yml) runs the full test suites.
  • PR handling: open a PR for human review (no auto-merge).
  • Eligibility: stable vX.Y.Z tags within the current major only (no pre-releases, no major jumps).

Changes

  1. New script .github/scripts/docling-serve-image-bump.sh (bash, runnable locally)
    • Takes the path to results.md; supports DRY_RUN.
    • Reads the current version from the Java constant.
    • Picks the newest ✅ SUCCESS tag matching ^v<currentMajor>\.[0-9]+\.[0-9]+$ (sort -V).
    • If newer than current, rewrites the constant in DoclingServeContainerConfig.java.
    • Emits current, new, updated and skipped (newer tags that failed) to $GITHUB_OUTPUT.
    • No-op (exit 0) when already up to date; non-zero only on real errors.
  2. version-tests.yml
    • New workflow_dispatch input updateDefaultImage (boolean, default true; scheduled runs bump too).
    • After the existing docs PR steps, run the script — only when the image is docling-project/docling-serve on ghcr.io.
    • Open a PR with peter-evans/create-pull-request:
      • only DoclingServeContainerConfig.java added
      • fixed branch update-docling-serve-image/<new> so reruns update the same PR
      • title/commit: chore(testcontainers): bump default docling-serve image to <new>
      • signed off and signed commits, base main
      • body: old → new version, link to the run and compatibility table, list of skipped failing tags
      • labels: automation, version-upgrade, module:docling-testcontainers, area:docling-serve
  3. Docs: update the CI/CD section of docling-testing/docling-version-tests/README.md to describe the auto-bump PR and the new input.

Verification

  • Run the script against the current serve-compatibility.md (expect v1.35.0 → v1.38.2).
  • Test fixtures: dry run, already up to date, newest tag failing, major-version jump.
  • Lint the workflow YAML.

edeandrea avatar Nov 12 '26 17:11 edeandrea

🎉 This issue has been resolved in v0.7.2 (Release Notes)

docling-java-ops[bot] avatar Nov 17 '26 15:11 docling-java-ops[bot]