Skip to content

Pin hadolint Docker image to match the hook rev - #5605

Merged
obenland merged 1 commit into
mainfrom
pin-hadolint-image
Aug 25, 2026
Merged

obenland merged 1 commit into
mainfrom
pin-hadolint-image

Conversation

@obenland

Copy link
Copy Markdown
Member

Description

The required "Lint files" check has been failing on every PR (and on main) because the upstream hadolint-docker pre-commit hook leaves its Docker image tag floating at latest — every run pulls the newest hadolint regardless of the pinned rev: v2.12.0. A newer hadolint release introduced rule DL3066 ("Non-numeric user-id"), which fires on frontend, api, catalog, and ingestion_server Dockerfiles and fails the job.

Pinning the image entry to the same version as rev makes lint reproducible. Verified locally: hadolint v2.12.0 with the repository's existing .hadolint.yaml produces zero findings across all seven Dockerfiles (exit 0), so no rule changes or threshold adjustments are needed.

This is the lint half of #5602 (credit to @ekamran for identifying the fix), split out deliberately: #5602 also touches ingestion_server/Dockerfile, which triggers the API/catalog/Nuxt test suites that are currently failing for unrelated reasons and are required checks — so it can't merge until those are fixed. This PR touches only .pre-commit-config.yaml (the lint change group), so the heavy suites skip and the repo-wide lint blockage can be resolved immediately. Unlike #5602, it omits the failure-threshold: warning addition, which local verification shows is unnecessary at v2.12.0.

Testing Instructions

pre-commit run hadolint-docker --all-files

should pass, and the "Lint files" job on this PR should be green — the first green lint run on the repo in months.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings August 25, 2026 20:09
@obenland
obenland requested a review from a team as a code owner August 25, 2026 20:09
@obenland
obenland removed the request for review from a team August 25, 2026 20:09
@obenland obenland added 🟧 priority: high Stalls work on the project or its dependents 🛠 goal: fix Bug fix labels Aug 25, 2026
@obenland
obenland requested a review from krysal August 25, 2026 20:09
@obenland obenland added the 🤖 aspect: dx Concerns developers' experience with the codebase label Aug 25, 2026
@obenland
obenland requested a review from dhruvkb August 25, 2026 20:09

Copilot AI left a comment

Copy link
Copy Markdown

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 reached their quota limit.

@openverse-bot openverse-bot added the 🏷 status: label work required Needs proper labelling before it can be worked on label Aug 25, 2026
@openverse-bot openverse-bot moved this to 👀 Needs Review in Openverse PRs Aug 25, 2026
The upstream hadolint-docker hook leaves the image tag floating at
`latest`, so every lint run pulled the newest hadolint regardless of
the pinned `rev`. A new release introduced rule DL3066, which fails
the required "Lint files" job on every PR. hadolint v2.12.0 with the
repository's existing .hadolint.yaml produces no findings.

Split out from #5602 (thanks @ekamran) so the lint fix can land without
triggering the test suites that are failing for unrelated reasons.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@obenland
obenland force-pushed the pin-hadolint-image branch from 3c48940 to 4fa3c8d Compare August 25, 2026 20:13
@obenland obenland added the 🧱 stack: mgmt Related to repo management and automations label Aug 25, 2026
@obenland
obenland merged commit d52336d into main Aug 25, 2026
48 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 Needs Review to 🤝 Merged in Openverse PRs Aug 25, 2026
@obenland
obenland deleted the pin-hadolint-image branch August 25, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: mgmt Related to repo management and automations 🏷 status: label work required Needs proper labelling before it can be worked on

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants