docling-java
docling-java copied to clipboard
Automatically update docling-serve container version
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?
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.mdfor the newest✅ SUCCESStag. - 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.Ztags within the current major only (no pre-releases, no major jumps).
Changes
- New script
.github/scripts/docling-serve-image-bump.sh(bash, runnable locally)- Takes the path to
results.md; supportsDRY_RUN. - Reads the current version from the Java constant.
- Picks the newest
✅ SUCCESStag matching^v<currentMajor>\.[0-9]+\.[0-9]+$(sort -V). - If newer than current, rewrites the constant in
DoclingServeContainerConfig.java. - Emits
current,new,updatedandskipped(newer tags that failed) to$GITHUB_OUTPUT. - No-op (exit 0) when already up to date; non-zero only on real errors.
- Takes the path to
version-tests.yml- New
workflow_dispatchinputupdateDefaultImage(boolean, defaulttrue; scheduled runs bump too). - After the existing docs PR steps, run the script — only when the image is
docling-project/docling-serveonghcr.io. - Open a PR with
peter-evans/create-pull-request:- only
DoclingServeContainerConfig.javaadded - 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
- only
- New
- Docs: update the CI/CD section of
docling-testing/docling-version-tests/README.mdto describe the auto-bump PR and the new input.
Verification
- Run the script against the current
serve-compatibility.md(expectv1.35.0→v1.38.2). - Test fixtures: dry run, already up to date, newest tag failing, major-version jump.
- Lint the workflow YAML.
🎉 This issue has been resolved in v0.7.2 (Release Notes)