Skip to content

Fixes 38293: Upgrade the JRE from trixie-security in operator ingestion images - #38294

Merged
ulixius9 merged 1 commit into
mainfrom
ulixius9/ingestion-slim-jre-go-fix
Nov 20, 2026
Merged

ulixius9 merged 1 commit into
mainfrom
ulixius9/ingestion-slim-jre-go-fix

Conversation

@ulixius9

@ulixius9 ulixius9 commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #38293

The operator ingestion images install default-jre-headless in the top-of-file apt layer. Docker caches that layer indefinitely, so builds kept the old openjdk point release (21.0.13+9) even though trixie-security has a newer one. This PR adds src:openjdk-NN to the existing dpkg-source upgrade set in the late root layer of ingestion/operators/docker/Dockerfile and Dockerfile.ci. That layer re-reads the Debian index on every build, so each build now gets the latest trixie-security JRE. The Airflow-based ingestion/Dockerfile{,.ci} are out of scope: they are bookworm/JDK 17 and not affected by this report.

Type of change:

  • Improvement

High-level design:

N/A — small change.

Tests:

Use cases covered

  • An image whose cached apt layer holds an older trixie openjdk-21 is upgraded to the trixie-security build in the late root layer.

Unit tests

  • Not applicable — Dockerfile-only change.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion source changes).

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

  1. In python:3.12-slim-trixie (linux/amd64), installed openjdk-21-jre-headless=21.0.12.1+1-1~deb13u1, then ran the PR's exact dpkg-query … awk expression and apt-get install --only-upgrade.
    • The selected set included openjdk-21-jre-headless.
    • Afterwards java -version printed openjdk version "21.0.13.1" 2026-11-17.
  2. py-operator-build-test on this PR builds Dockerfile.ci end to end. That build and its sample-data ingest are still pending in CI.

UI screen recording:

Not applicable — Docker build change with no UI impact.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For a UI feature or feature task: N/A — no UI.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above. — N/A: Dockerfile-only, verified manually above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    • Reviewed 7e789ce09aa. No 🔴 findings. Fixed the 🟡 about where the comment sat (final commit only moves those lines). Answered the 🟡 about the Airflow-based images: they are out of scope, see above.
  • Decision check: no durable decision; this extends an existing upgrade list.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

Adds installed OpenJDK packages to the late package-upgrade step in both operator ingestion Dockerfiles.

  • Operator ingestion images upgrade the JRE from the refreshed package index.

Acknowledged scope: ulixius9 explicitly excluded the Airflow-based images because they use Bookworm and Java 17.

Reviews (1) · Last reviewed commit: "Upgrade the JRE to trixie-security's lat..." · Reviewed by Greptile

…estion images

default-jre-headless is installed in the early apt layer, whose cache key never
changes, so the image kept the JDK point release that was current when that layer
was first built. Add src:openjdk-NN to the late security-upgrade layer so each
build takes trixie-security's latest openjdk.
@ulixius9
ulixius9 requested a review from a team as a code owner November 20, 2026 11:01
@ulixius9
ulixius9 requested review from Khairajani and a balanced review from Copilot November 20, 2026 11:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Adding openjdk packages to late apt upgrades refreshes the operator images’ JRE, which could alter Java runtime behavior across those images.

Adds src:openjdk-NN to the existing dpkg-source upgrade set in the late root layer of ingestion/operators/docker/Dockerfile and Dockerfile.ci, so operator ingestion images pick up the latest trixie-security JRE on every build instead of a cached older openjdk point release. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ulixius9
ulixius9 merged commit e19a162 into main Nov 20, 2026
52 of 54 checks passed
@ulixius9
ulixius9 deleted the ulixius9/ingestion-slim-jre-go-fix branch November 20, 2026 11:58
ulixius9 added a commit that referenced this pull request Nov 20, 2026
…estion images (#38294) (#38299)

default-jre-headless is installed in the early apt layer, whose cache key never
changes, so the image kept the JDK point release that was current when that layer
was first built. Add src:openjdk-NN to the late security-upgrade layer so each
build takes trixie-security's latest openjdk.

(cherry picked from commit e19a162)
ulixius9 added a commit that referenced this pull request Nov 20, 2026
…estion images (#38294) (#38300)

default-jre-headless is installed in the early apt layer, whose cache key never
changes, so the image kept the JDK point release that was current when that layer
was first built. Add src:openjdk-NN to the late security-upgrade layer so each
build takes trixie-security's latest openjdk.

(cherry picked from commit e19a162)
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.

Operator ingestion images ship a stale JRE from a cached apt layer

3 participants