Repository navigation
Fixes #38518: Fetch the Airflow base's MariaDB apt repo from dlm.mariadb.com in the ingestion images - #38519
Fixes #38518: Fetch the Airflow base's MariaDB apt repo from dlm.mariadb.com in the ingestion images#38519aydingeeringh wants to merge 3 commits into
Conversation
… ingestion images apache/airflow:3.3.2-python3.12 adds MariaDB's apt repo from https://archive.mariadb.org/mariadb-10.11/repo/debian. Since MariaDB 10.11.20 that URL redirects to the mirror.mariadb.org redirector, and some mirrors it picks redirect https to http, which apt refuses. The first apt-get update in ingestion/Dockerfile and ingestion/Dockerfile.ci then fails with "does not have a Release file", depending on where the build runs. Rewrite the source to https://dlm.mariadb.com/repo/mariadb-server/<series>/repo/debian, the URL MariaDB's mariadb_repo_setup writes. It serves the same InRelease, signed by the key the base already trusts, so the o=MariaDB pin and the installed packages are unchanged.
❌ 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 risk 1 closed / 1 findingsRedirecting ingestion image builds to MariaDB's direct HTTPS repository changes package retrieval; endpoint or layout problems could break dependency installation. Rewrites the MariaDB apt source to ✅ 1 closed✅ Quality: Choice to keep MariaDB's apt repo over Debian's is not recorded
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 |
Describe your changes:
Fixes #38518
The Airflow base image installs its MariaDB client from
https://archive.mariadb.org/mariadb-10.11/repo/debian. Since 2026-11-12 that URL redirects to themirror.mariadb.orgredirector. Some of the mirrors it picks redirect https to http, which apt refuses, so the firstapt-get updateiningestion/Dockerfile.ciandingestion/Dockerfilefails with "does not have a Release file". Whether it fails depends on where the build runs.Before the first
apt-get update, both Dockerfiles now rewrite that source tohttps://dlm.mariadb.com/repo/mariadb-server/<series>/repo/debian. That is the URL MariaDB'smariadb_repo_setupwrites, and it serves the same repository over https only. TheInReleaseis byte-identical and signed by the key the base already trusts, and the base'so=MariaDBpin still applies. So the image gets the same1:10.11.20+maria~deb12packages that CI installs today. Theapt-mark manual libpq5 libmariadb3 mariadb-common …step is unchanged.The rewrite matches any
mariadb-<version>path and any file insources.list.d(one-line.listor deb822.sources). That way it keeps working when the Airflow base moves to MariaDB 11.8, whosearchive.mariadb.orgpath has the same redirect. If nothing matches, it does nothing.Alternative considered: drop the MariaDB repo and use Debian's packages. That needs
dpkg --purge --force-dependsof the six MariaDB-repo packages the base ships, because the base pinso=MariaDBat 999 and Debian'slibmariadb-devneeds an olderlibmariadb3. It would also replace 10.11.20 with Debian's 10.11.19 and drop Airflow'smariadb-client. That is a bigger change than a build-reliability fix needs.Type of change:
High-level design:
N/A — small change (2 Dockerfiles, same 5-line step).
Tests:
Use cases covered
Unit tests
Not applicable — Dockerfile-only change.
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
apache/airflow:3.3.2-python3.12:apt-get updateagainst the original MariaDB source failed 6 of 20 times withRedirection from https to 'http://…/mariadb-10.11.20/repo/debian/dists/bookworm/Release' is forbidden.apt-get updateruns succeeded.apt-cache policy libmariadb3shows candidate1:10.11.20+maria~deb12at pin 999 from dlm.mariadb.com. A simulated install of the big dependency step resolves to the same MariaDB packages as today's greenairflow-apis-testsrun on main.docker build -f ingestion/Dockerfile.ci --build-arg INGESTION_DEPENDENCY=duckdb .(arm64) completes. In the final image,mariadb.listpoints at dlm.mariadb.com, andlibmariadb3,mariadb-commonandmysql-commonare1:10.11.20+maria~deb12and marked manual. The-devpackages are purged, andimport MySQLdb, psycopg2, metadatasucceeds.ingestion/Dockerfilebuilt through both of its apt steps: the source is rewritten, andlibmariadb3andlibmariadb-devare1:10.11.20+maria~deb12. The full release build installsopenmetadata-ingestionfrom PyPI byRI_VERSION, so it was not run frommain.UI screen recording:
Not applicable — build fix, no UI change.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #38518above.REVIEW.md.Backport:
2.1,2.1.0and2.0use the same base image and have the same firstapt-get update.

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Both ingestion Dockerfiles now rewrite MariaDB's archive URL to
dlm.mariadb.combefore the firstapt-get update.Reviews (1) · Last reviewed commit: "Fetch the Airflow base's MariaDB apt rep..." · Reviewed by Greptile