Repository navigation
Fixes 37240: Rebuild bundled ADBC FlightSQL Go driver with newer Go modules - #37241
Conversation
…estion images adbc-driver-flightsql 1.13.0 (newest on PyPI, pulled in by the iomete extra) bundles a Go c-shared library built with klauspost/compress v1.20.0 and golang.org/x/net v0.61.0. Upstream main still pins the same versions and pip cannot change modules compiled into the wheel. Add a bookworm golang build stage to all four ingestion Dockerfiles that compiles the driver from the go/adbc/v1.13.0 tag with upstream's flags and klauspost/compress v1.20.3 / golang.org/x/net v0.62.0, and swap it in after the final pip install. The build asserts the embedded module versions and fails once the pinned ADBC source already requires them; the swap applies only to wrapper 1.13.0 and fails the build unless the new library loads and runs.
❌ 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 |
|
Match the 2.0 backport, which already builds with golang:1.26.11-bookworm.
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsUpgrading embedded Go modules and replacing the FlightSQL library in four ingestion images could introduce incompatibilities that disrupt FlightSQL ingestion. Rebuilds the bundled ADBC FlightSQL Go driver with klauspost/compress v1.20.3 and golang.org/x/net v0.62.0 and swaps it into all four ingestion images, addressing the outdated vulnerable modules in the wheel. No open issues found. ✅ 1 closedClosed: Bug: Native builds fail: crossbuild-essential-<arch> isn't installable on same-arch host
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 #37240
The
iometeextra pulls inadbc-driver-flightsql, whose wheel bundles a Go c-shared library built withklauspost/compressv1.20.0 andgolang.org/x/netv0.61.0. pip can't change modules compiled into the wheel, and 1.13.0 is the newest release. This PR rebuilds that library from ADBC'sgo/adbc/v1.13.0source withklauspost/compressv1.20.3 andgolang.org/x/netv0.62.0, and swaps it into all four ingestion images (ingestion/Dockerfile,ingestion/Dockerfile.ci,ingestion/operators/docker/Dockerfile,ingestion/operators/docker/Dockerfile.ci).Type of change:
High-level design:
ingestion/scripts/rebuild_adbc_flightsql.sh buildruns in a newgolang:1.26.10-bookwormstage (--platform=$BUILDPLATFORM). It cross-compiles for$TARGETARCHwithcrossbuild-essential-*, taking about 45s per architecture with no QEMU.c/cmake_modules/GoUtils.cmake:-tags=driverlib,-buildmode=c-shared, thec/symbols.mapversion script and sonamelibadbc_driver_flightsql.so.113. The rebuilt library's Go build info differs from the wheel's only in the two upgraded modules.go getwould silently downgrade). It also fails if the built library doesn't embed exactly the target versions.... installruns after the finalpip installin each Dockerfile, through bind mounts (no extra layer).1.13.0. Any other version is left untouched with a warning, so a future ADBC release can't break release builds.iometefromslim— removes a connector;Tests:
Use cases covered
adbc_driver_flightsql.dbapi.adbc-driver-flightsqlis a no-op.Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
docker buildx build --platform linux/amd64,linux/arm64of a harness: the real build stage onpython:3.12-slim-bookworm, pluspip install adbc-driver-flightsql==1.13.0 pyarrow, plus the install step.embeds github.com/klauspost/compress v1.20.3,embeds golang.org/x/net v0.62.0,replaced …andrebuilt FlightSQL driver loads and runs.ingestion/operators/docker/Dockerfile.ciwithINGESTION_DEPENDENCY=slim(linux/arm64): passed..origbackup is left.metadata.ingestion.source.database.iomete.connectionimports..sofails the step (exit 1,dlopen() failed: file too short).klauspost/[email protected]: the build stage fails withADBC 1.13.0 already requires … delete this workaround.ingestion/Dockerfileandingestion/Dockerfile.ci(Airflow base) and an amd64 build of the full operator image. They use the identical stage and step.py-operator-build-testcovers the amd64 operator build on this PR.UI screen recording:
Not applicable — Docker build change with no UI impact.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.d214849: no 🔴. The one 🟡 was that the build didn't assert the module versions it changes. Fixed incda2937by checking the versions before and after the build.strip_*image scripts; the removal condition is enforced by the build itself.🤖 Generated with Claude Code


Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
Rebuilds the bundled FlightSQL library with newer Go modules and installs it in all four ingestion images.
Reviews (3) · Last reviewed commit: "Build the FlightSQL driver with Go 1.26...." · Reviewed by Greptile