Skip to content

fix(ingestion): pin asammdf to the 8.2-8.7 window so arm64 builds get a wheel - #31950

Merged
Khairajani merged 4 commits into
mainfrom
fix/asammdf-arm64-wheels
Aug 24, 2026
Merged

Khairajani merged 4 commits into
mainfrom
fix/asammdf-arm64-wheels

Conversation

@Khairajani

@Khairajani Khairajani commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What

asammdf~=8.1.0 -> asammdf>=8.2,<8.8, one line in ingestion/setup.py.

Why

asammdf 8.0.x and 8.1.x publish no linux-aarch64 wheel, so on arm64 pip falls back to the
8.1.2 sdist, which builds with scikit-build-core + CMake and does not vendor ext/libdeflate:

CMake Error at CMakeLists.txt:20 (add_subdirectory):
  add_subdirectory given source "ext/libdeflate" which is not an existing directory.
...
ERROR: Failed building wheel for asammdf

Any arm64 image build that installs ./ingestion[all] from source fails at that step.
7.4.5 compiled from source fine because its sdist was plain setuptools.build_meta, which is why
this only surfaced once the pin moved to ~=8.1.0.

Why this exact range

range aarch64 wheel numpy chardet
8.0.x–8.1.x none 8.0 <2 / 8.1 >=1.23 optional decode extra
8.2.0–8.7.2 yes >=2.0.0 optional decode extra
8.8.0–8.8.24 yes >=2.0.0 hard >=7.0.0
  • Lower bound 8.2.0 — first release shipping manylinux_2_17_aarch64 abi3 wheels.
  • Upper bound <8.8 — 8.8.0 promoted chardet from an optional extra to a hard chardet>=7.0.0,
    which conflicts with chardet==4.0.0 in base_requirements (used by
    profiler/orm/types/custom_hex_byte_string.py). Raising that pin is a much wider change than an
    upper bound here, so the bound is documented inline for whoever revisits it.
  • Not a revert to 7.4.5 — numpy is now >=2,<3 and 7.4.5 is numpy-1 only.

Validation

Built python:3.12-trixie on linux/arm64 and ran the real pip install "./ingestion[all]":

pin result
~=8.1.0 CMake / ext/libdeflate failure building the sdist
~=8.8 ResolutionImpossible — asammdf 8.8.x depends on chardet>=7.0.0
>=8.2,<8.8 resolves to the 8.7.2 aarch64 wheel, no build step
Successfully installed ... asammdf-8.7.2 ... numpy-2.5.2 pandas-2.3.3 ...
asammdf 8.7.2 | numpy 2.5.2 | pandas 2.3.3 | chardet 4.0.0
header._common_properties = {}
mf4 API surface OK

The call surface readers/dataframe/mf4.py uses — MDF(version="4.10"), mdf.save(),
MDF(path, load_measured_data=False), mdf.header._common_properties — was exercised against
8.7.2. The 8 test_mf4_reader tests already pass against 8.1.0 on x86_64, so the 7.x -> 8.x
API move is covered; this only narrows which 8.x is selected.

Greptile Summary

The PR updates the asammdf dependency window to select releases providing Linux arm64 wheels while avoiding the chardet requirement introduced in 8.8.

  • Changes the asammdf constraint from ~=8.1.0 to >=8.2,<8.8.
  • Removes the obsolete load_measured_data argument from MF4 constructors across local and cloud-storage reader paths.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
ingestion/setup.py Pins asammdf to the documented 8.2–8.7 compatibility window for arm64 wheel availability and the existing chardet constraint.
ingestion/src/metadata/readers/dataframe/mf4.py Removes the obsolete constructor argument consistently from local, S3, GCS, and Azure MF4 loading paths.

Reviews (4): Last reviewed commit: "fix(ingestion): drop the dead load_measu..." | Re-trigger Greptile

… a wheel

asammdf 8.0.x and 8.1.x publish no linux-aarch64 wheel, so on arm64 pip falls
back to the 8.1.2 sdist, which builds with scikit-build-core + CMake and does
not vendor ext/libdeflate:

    CMake Error at CMakeLists.txt:20 (add_subdirectory):
      add_subdirectory given source "ext/libdeflate" which is not an existing
      directory.

Every arm64 image build that installs ./ingestion[all] from source fails at
that step. 7.4.5 built from source fine because its sdist was plain
setuptools.build_meta, which is why this only surfaced after the pin moved to
~=8.1.0.

8.2.0 is the first release with manylinux_2_17_aarch64 abi3 wheels. The upper
bound stops at 8.8.0, which promoted chardet from an optional extra to a hard
chardet>=7.0.0 dependency and so conflicts with the chardet==4.0.0 pin in
base_requirements. Reverting to 7.4.5 is not an option: numpy>=2 is now
required and 7.4.5 is numpy-1 only.
@Khairajani
Khairajani requested a review from a team as a code owner August 24, 2026 11:04
@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.

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@Khairajani Khairajani added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Aug 24, 2026
IceS2
IceS2 previously approved these changes Aug 24, 2026
@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit dd48d72f3679d2a298150df41381abd34003fa08 in Playwright run 32725160334, attempt 1.

✅ 110 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 1h 1m 29s

⏱️ Max setup 5m 55s · max shard execution 11m 26s · max shard-job elapsed before upload 18m 55s · reporting 4s

🌐 216.85 requests/attempt · 1.79 app boots/UI scenario · 0.00% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 216.85 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 1.79 per UI scenario (216 boots / 121 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 46 0 0 0 0 0
✅ Shard ingestion-01 25 0 0 0 0 0
✅ Shard ingestion-02 39 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

Khairajani and others added 3 commits August 24, 2026 16:55
…eader

MDF takes **kwargs typed as Unpack[MdfKwargs], and load_measured_data is not one of
its keys, so basedpyright reports four reportCallIssue errors once the pin resolves
to 8.7.2:

    mf4.py:85:33 - error: No parameter named "load_measured_data" (reportCallIssue)

The kwarg has been inert for years -- it dates from the 2.x/3.x memory options and is
silently dropped by **kwargs, verified against 8.7.2 where MDF opens and returns the
same header._common_properties with and without it. Removing it is behaviour
preserving and clears the static-checks lane.
@Khairajani

Khairajani commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

The static-checks lane was failing on the pin bump, now fixed in dd48d72.

asammdf's MDF takes **kwargs: Unpack[MdfKwargs], and load_measured_data is not one of its keys, so basedpyright reported four reportCallIssue errors once the pin resolved to 8.7.2:

mf4.py:85:33 - error: No parameter named "load_measured_data" (reportCallIssue)

That kwarg has been inert for years — it dates from the 2.x/3.x memory options and is silently dropped by **kwargs. Verified against 8.7.2: MDF opens and returns the same header._common_properties with and without it, so removing it is behaviour preserving.

@gitar-bot

gitar-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Pins the asammdf dependency to the 8.2-8.7 range in setup.py to provide pre-built ARM64 wheels and avoid a chardet version conflict. No issues found.

Options

Display: compact → Showing less information.

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

@sonarqubecloud

Copy link
Copy Markdown

@Khairajani
Khairajani enabled auto-merge August 24, 2026 13:06
@Khairajani
Khairajani added this pull request to the merge queue Aug 24, 2026
Merged via the queue into main with commit 1132ccc Aug 24, 2026
102 checks passed
@Khairajani
Khairajani deleted the fix/asammdf-arm64-wheels branch August 24, 2026 15:15
pmbrull pushed a commit that referenced this pull request Aug 27, 2026
* fix(security): airflow 3.3.1 (CVE-2026-67587 / CVE-2026-54183) and expat 2.8.3 (CVE-2026-72522) (#31890)

* fix(security): pull expat 2.8.3-1~deb13u1 into the ingestion-base image

The image reports expat 2.8.2 for CVE-2026-72522 (DSA-6446-1: out-of-bounds
read and resultant infinite loop in libexpat's *_toUtf16 surrogate handling);
trixie-security has 2.8.3-1~deb13u1. expat is not in the python:3.12-slim-trixie
base at all -- it comes in transitively from the top-of-file apt install -- and
that layer is exactly why the image is stuck at 2.8.2: its cache key never
changes, so it keeps resolving against the Debian index that was current when it
was first built. Adding expat there would freeze the fix the same way. It goes
in the late root layer instead, below the COPY and pip layers, where the index
is re-read on every build -- the same reasoning that put util-linux there.

expat rides in the existing dpkg source-package query rather than a second RUN,
so one apt call covers both source packages and the next OS CVE is a one-line
edit. The package set stays computed from dpkg rather than hand-listed for the
reason already documented there: scanners report each binary of a source package
separately, so a hand-written list silently leaves one behind.

util-linux keeps its non-empty assert and expat deliberately does not get one.
util-linux is Essential, so an empty query there means dpkg-query misbehaved and
the build must stop; expat is transitive, so an empty query is a legitimate
image with nothing to patch and failing on it would break the build for no
reason. Asserting one of the two still covers the hazard the check exists for:
`apt-get install --only-upgrade` with no package arguments exits 0, so an
all-empty query would give a green build that shipped the vulnerable packages.

Verified in a real build layer on python:3.12-slim-trixie: libexpat1 2.7.1-2 ->
2.8.3-1~deb13u1 and all nine util-linux binaries -> 2.41.5-0+deb13u1, exit 0.
The expat-absent path was exercised on the bare base and also exits 0,
upgrading util-linux alone.

ingestion/Dockerfile gets no equivalent change because there is nothing to
upgrade to, not because it is clean: apache/airflow:3.3.0-python3.12 is
bookworm, Debian still marks bookworm and bookworm-security vulnerable, and the
image already carries 2.5.0-1+deb12u2 -- the newest build either suite offers.
It needs revisiting when Debian ships a bookworm fix.

* fix(security): bump apache-airflow 3.3.0 -> 3.3.1 for CVE-2026-67587 / CVE-2026-54183

CVE-2026-67587 (High) -- the Task SDK rebuilt a Serde `Callback` by re-running its
constructor, which imports the module named by the stored callback path. `SyncCallback`
is an Airflow class, so it passes the default `allowed_deserialization_classes`
allow-list and tightening that setting does not help. A Dag author controls a task
instance's `next_kwargs`, so they can get an arbitrary module imported inside the
scheduler process when the `awaiting_input` timeout sweep deserializes that value. No
non-default configuration is required.

CVE-2026-54183 (Medium) -- the secrets masker's recursion-depth limit did not descend
into values nested inside a list, tuple or set, so a Variable holding a deeply nested
sensitive value rendered unmasked in the Variables UI. Anyone who can see the Variable
in the UI can already read it through the Variables REST API, so this is a
shoulder-surfing defense rather than a disclosure boundary -- hence Medium.

Both are fixed in 3.3.1 and nothing in the 3.3.0 line is clean. The pin, both base
image tags, the vendored constraints file and the integration-test image move together,
as they did for 3.2.2 -> 3.3.0 in #31338.

The constraints file is a straight re-download this time. It carried two hand-patches
marked "keep on regeneration" -- impyla and thrift at 0.24.0 for CVE-2026-66053 /
CVE-2026-41608 / CVE-2026-48586, against upstream constraints-3.3.0 shipping
impyla==0.22.0 and thrift==0.16.0 -- and upstream constraints-3.3.1 now ships both at
0.24.0 natively. Diffing the vendored 3.3.0 file against upstream constraints-3.3.0
confirms those two blocks were the only divergence, and the new file is byte-identical
to upstream constraints-3.3.1 outside comments. The comments are kept, reworded to say
the pin is now upstream-native, so a future regeneration off a branch that regressed
either version still gets caught.

Two comments that name a constraint were checked rather than blind-renumbered:

- tests/integration/airflow/Dockerfile explains the constraints are deliberately not
  applied because they pin chardet against openmetadata-ingestion's chardet==4.0.0.
  Still true; the version moved 6.0.0.post1 -> 7.5.1, so the number is updated.
- Dockerfile.ci's universal-pathlib workaround cites Airflow's >=0.3.8 floor.
  apache-airflow-core 3.3.1 still declares `universal-pathlib>=0.3.8` and constraints
  still pin 0.3.10, so only the Airflow version in the prose changes.

Resolution verified with `uv pip compile --python-version 3.12 --extra airflow`:
apache-airflow==3.3.1 co-installs with every transitive floor pin in the airflow extra
(providers-http, -opensearch, -elasticsearch, tornado, Werkzeug, starlette,
python-multipart) with no conflict. sqlparse resolves to 0.5.4 there via
collate-sqllineage, unchanged by this PR -- the release images force 0.6.0 in
ingestion/operators/docker/Dockerfile, which does not consume this constraints file.

Folded in: drop the stale croniter<3 ceiling from the dagster extra

`uv pip install ingestion[all]` + `[test]` in the CI test environment fails to resolve
against apache-airflow 3.3.1:

    Because apache-airflow-core>=3.3.1 depends on croniter>=6.2.2 [...] and because
    openmetadata-ingestion[test]==2.0.0.0.dev0 depends on apache-airflow==3.3.1 and
    croniter<3, we can conclude that [...] requirements are unsatisfiable.

apache-airflow-core raised its croniter floor from >=2.0.2 to >=6.2.2 between 3.3.0 and
3.3.1, so the ceiling that used to co-exist with airflow now excludes it.

The ceiling is dead weight and predates this conflict -- it has been in the dagster
extra since #6416 and survived the #15679 dependency cleanup:

- dagster 1.13.18 (what `dagster_graphql>=1.8.0` resolves to) declares no croniter
  dependency at all; resolving dagster_graphql alone produces no croniter.
- Nothing under ingestion/ imports croniter. The only importer in the repo is
  openmetadata-airflow-apis, a separate distribution that does not declare it and picks
  it up transitively from airflow.
- That importer is already running croniter 6.2.x: constraints-3.3.0 pins croniter==6.2.2
  and the airflow images install under it, so 6.x compatibility for `croniter.is_valid` /
  `get_prev` is established by the shipped image, not assumed here. The call site is also
  behind an `is_airflow_3_or_higher()` guard and unreachable on Airflow 3.

Only the CI test environment resolved croniter 2.x, because it installs from the extras
without the constraints file. Removing the ceiling makes it match the images.

Verified with `uv pip compile --extra all --extra test` on both 3.10 and 3.12: resolves
to apache-airflow==3.3.1, croniter==6.2.4, dagster==1.13.18 with no conflict. This was
the only pin in the tree that collided with the airflow bump.

* fix(ingestion): migrate NumPy and Pydantic dependency stack

* fix(ingestion): separate Aadhaar recognizer change

* fix: filter invalid date recognizer results

---------

Co-authored-by: Pablo Takara <[email protected]>

* fix(pii): recognize separated Aadhaar numbers (#31900)

* fix(ingestion): pin asammdf to the 8.2-8.7 window so arm64 builds get a wheel (#31950)

* fix(ingestion): pin asammdf to the 8.2-8.7 window so arm64 builds get a wheel

asammdf 8.0.x and 8.1.x publish no linux-aarch64 wheel, so on arm64 pip falls
back to the 8.1.2 sdist, which builds with scikit-build-core + CMake and does
not vendor ext/libdeflate:

    CMake Error at CMakeLists.txt:20 (add_subdirectory):
      add_subdirectory given source "ext/libdeflate" which is not an existing
      directory.

Every arm64 image build that installs ./ingestion[all] from source fails at
that step. 7.4.5 built from source fine because its sdist was plain
setuptools.build_meta, which is why this only surfaced after the pin moved to
~=8.1.0.

8.2.0 is the first release with manylinux_2_17_aarch64 abi3 wheels. The upper
bound stops at 8.8.0, which promoted chardet from an optional extra to a hard
chardet>=7.0.0 dependency and so conflicts with the chardet==4.0.0 pin in
base_requirements. Reverting to 7.4.5 is not an option: numpy>=2 is now
required and 7.4.5 is numpy-1 only.

* chore: trigger CI

* fix(ingestion): drop the dead load_measured_data kwarg from the MF4 reader

MDF takes **kwargs typed as Unpack[MdfKwargs], and load_measured_data is not one of
its keys, so basedpyright reports four reportCallIssue errors once the pin resolves
to 8.7.2:

    mf4.py:85:33 - error: No parameter named "load_measured_data" (reportCallIssue)

The kwarg has been inert for years -- it dates from the 2.x/3.x memory options and is
silently dropped by **kwargs, verified against 8.7.2 where MDF opens and returns the
same header._common_properties with and without it. Removing it is behaviour
preserving and clears the static-checks lane.

---------

Co-authored-by: IceS2 <[email protected]>

* Fixes #31742: strip trailing slash from Looker hostPort before the SDK concatenates onto it (#31761)

* Fixes #31742: strip the trailing slash from Looker hostPort before the SDK concatenates onto it

hostPort is a pydantic AnyUrl, which renders a URL with no path as
"https://host/". looker_sdk builds the login URL by string concatenation
(auth_session: f"{base_url}/api/{version}/login"), so that slash reached Looker
as //api/4.0/login. Login is the gate for CheckAccess, so Test Connection failed
before any other step ran, and Looker's 404 was diagnosed as rejected
credentials - even though the same credentials worked via curl.

Only login/logout are affected; every other endpoint goes through urljoin, which
normalises itself. metadata.py already wraps clean_uri around all five of its
concatenation sites - connection.py was the one place that did not.

The existing test helper built a MagicMock whose hostPort was a plain str, so it
never saw the trailing slash pydantic adds. It now builds a real
LookerConnection, which is what made the bug visible.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* chore: empty commit to re-trigger CI

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* fix(pii): break weighted-score ties by confidence in the NER scanner (#31961)

* fix(pii): break weighted-score ties by confidence in the NER scanner

get_highest_score_label ranks candidates by "score * appearances * 0.8" and picks
the winner with max(). On an exact tie max() returns whichever key was recorded
first, so the classification depended on the order the sample rows happened to be
scanned in rather than on the evidence.

A column of dashed US SSNs hits that tie. The customised registry's
us_driving_license patterns include ^\d{3}-\d{2}-\d{4}$ at 0.3, which matches every
row, while US_SSN only matches a subset (a sequential-digit sample is rejected and
another reads as US_ITIN):

    US_DRIVER_LICENSE  0.3 * 5 * 0.8 = 1.200
    US_SSN             0.5 * 3 * 0.8 = 1.200

The first row produces only US_DRIVER_LICENSE, so it is recorded first and a weak
0.3 guess outranks a 0.5 match, tagging national IDs as driving licences.

Adding the raw confidence as the secondary key makes the stronger match win and
removes the dependency on insertion order. Where both the weighted total and the
confidence are equal the outcome is unchanged, so the existing expectations hold.

* fix(pii): demote the SSN-shaped driving-licence pattern

The tie-break only engages when the weighted totals land on the same number. The
SSN-shaped licence pattern matches every dashed 3-2-4 value unconditionally while
US_SSN matches only the subset passing Presidio's validator, so the licence
appearance count is always >= the SSN one. Solving 0.3n > 0.5k puts the crossover at
60%: any column where fewer than 60% of the sampled values validate was labelled a
driving licence, which is ordinary for masked, placeholder or synthetic SSNs.

    ["000-12-3456", "666-45-6789", "111-00-2222", "333-44-0000", "543-21-0987"]
    US_DRIVER_LICENSE  0.3 * 5 * 0.8 = 1.200   <- wins outright, no tie
    US_SSN             0.5 * 1 * 0.8 = 0.400

Deleting the pattern is not the answer: Mississippi prints its nine-digit licence
numbers in Social Security positions, so the shape is a real licence format and
dropping it loses that detection entirely (a column of such values then matches
nothing). Scoring it very weak instead keeps the licence reading available when
nothing else claims the column, while a validated SSN match outranks it.

Measured against build_analyzer_engine() with presidio 2.2.358, before -> after:

    dashed SSN, 3 of 5 validate      US_SSN            -> US_SSN
    masked SSN, 1 of 5 validate      US_DRIVER_LICENSE -> US_SSN
    licence shape, none validate     US_DRIVER_LICENSE -> US_DRIVER_LICENSE
    ordinary licences (A1234567)     US_DRIVER_LICENSE -> US_DRIVER_LICENSE

* test(pii): keep the tie-break comment accurate after the score demotion

The 0.3 x 5 illustration is now synthetic rather than something the SSN-shaped
licence pattern still produces, so describe the general shape of the tie instead of
attributing it to that pair.

* fix(ingestion): keep Airflow Elasticsearch transport compatible

---------

Co-authored-by: Himanshu Khairajani <[email protected]>
Co-authored-by: Mayur Singal <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

This branch was previously deployed

1 inactive deployment
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 skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants