Repository navigation
fix(ingestion): keep uv.lock out of the dev ingestion image - #38116
Conversation
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.
❌ PR checklist incompleteThis 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 |
Code Review ✅ Approved 🟡 Medium riskExcluding uv.lock changes dev-image contents, while the guard can fail builds that do not honor the Dockerfile-specific ignore file. Excludes VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
…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)
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, whichDockerfile.cicopied 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.dockerignoreexcludesingestion/uv.lockfor this Dockerfile only. The root.dockerignoreis unchanged, so the OSS Scanner image keeps the full checkout.Dockerfile.cifails the build ifuv.lockstill reaches the image, for example with the legacy builder.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.lockis absent and the rest ofingestion/is copied. Without it, the guard fails the build.Type of change:
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Keeps
ingestion/uv.lockout of the dev ingestion image without changing how pip installs packages.uv.lockout.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