Skip to content

fix(ingestion): keep uv.lock out of the dev ingestion image - #38116

Merged
Khairajani merged 1 commit into
mainfrom
fix/ingestion-dev-image-drop-uv-lock
Nov 18, 2026
Merged

Khairajani merged 1 commit into
mainfrom
fix/ingestion-dev-image-drop-uv-lock

Conversation

@Khairajani

@Khairajani Khairajani commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #

AWS Inspector keeps flagging dnspython 2.8.0, tornado 6.5.10 and filelock 3.32.7 on the dev ingestion images (OSS and Collate, which builds on top of the OSS one). Those versions are not installed. They are the Python 3.10-only entries in ingestion/uv.lock, which Dockerfile.ci copied into /ingestion. Inspector ignores the lockfile's resolution markers. The image runs Python 3.12 and installs with pip, which never reads the lockfile.

  • Dockerfile.ci.dockerignore excludes ingestion/uv.lock for this Dockerfile only. The root .dockerignore is unchanged, so the OSS Scanner image keeps the full checkout.
  • Dockerfile.ci fails the build if uv.lock still reaches the image, for example with the legacy builder.
  • Decision record: ADR:2026-11-18-ingestion-dev-image-does-not-ship-uv-lock.

Verified with BuildKit probe builds from the repo root (same COPY ingestion/ . and guard): with the ignore file, uv.lock is absent and the rest of ingestion/ is copied. Without it, the guard fails the build.

Type of change:

  • Bug fix

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Keeps ingestion/uv.lock out of the dev ingestion image without changing how pip installs packages.

  • The dev ingestion image leaves uv.lock out.

Khairajani explicitly identifies failure with the legacy builder as intentional: builds must honor the ignore file rather than ship the lockfile. No actionable issues found.

Reviews (1) · Last reviewed commit: "fix(ingestion): keep uv.lock out of the ..." · Reviewed by Greptile

Image scanners read the shipped lockfile and report its Python 3.10-only
entries (dnspython 2.8.0, tornado 6.5.10, filelock 3.32.7) as installed,
although the image runs Python 3.12 and installs with pip. A
Dockerfile.ci-specific .dockerignore excludes it, and the build fails if
it reaches the image.
@Khairajani
Khairajani requested a review from a team as a code owner November 18, 2026 12:13
@Khairajani
Khairajani requested a review from ulixius9 November 18, 2026 12:13
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 18, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Excluding uv.lock changes dev-image contents, while the guard can fail builds that do not honor the Dockerfile-specific ignore file.

Excludes ingestion/uv.lock from the dev ingestion image via a Dockerfile-specific .dockerignore and adds a build guard that fails if the lockfile reaches the image, so Inspector no longer flags Python 3.10-only pins that are not installed. 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

@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Nov 18, 2026
@Khairajani
Khairajani merged commit fb2f2b3 into main Nov 18, 2026
53 of 55 checks passed
@Khairajani
Khairajani deleted the fix/ingestion-dev-image-drop-uv-lock branch November 18, 2026 14:07
Khairajani added a commit that referenced this pull request Nov 18, 2026
…38127)

Image scanners read the shipped lockfile and report its Python 3.10-only
entries (dnspython 2.8.0, tornado 6.5.10, filelock 3.32.7) as installed,
although the image runs Python 3.12 and installs with pip. A
Dockerfile.ci-specific .dockerignore excludes it, and the build fails if
it reaches the image.

(cherry picked from commit fb2f2b3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants