Skip to content

[python] Run native commit tests only in the Rust Plan CI job - #10139

Open
jackylee-ch wants to merge 1 commit into
apache:masterfrom
jackylee-ch:python-native-commit-rust-lane
Open

jackylee-ch wants to merge 1 commit into
apache:masterfrom
jackylee-ch:python-native-commit-rust-lane

Conversation

@jackylee-ch

Copy link
Copy Markdown
Contributor

Purpose

The native commit tests are gated only by @requires_native (whether
pypaimon_rust is importable), so the Tests job runs them against the PyPI
pypaimon-rust wheel. That wheel predates the v14 commit bridge, so native
commit preparation raises, is caught, and the commit falls back to Python —
tripping the "must not fall back" assertion on Python 3.10-3.13. (3.6/3.7 have
no wheel and skip; the Rust Plan job builds paimon-rust from source and passes.)

Mark these tests native_plan, as done for native reads (#10067), so they are
excluded from the wheel-based Tests job and run only in the Rust Plan job,
against the from-source runtime where the commit bridge matches.

Tests

pytest --collect-only -m 'not native_plan' now deselects the 37 native tests
(67 -> 30 collected); the mock/Python-path tests and the native=False cases
still run in the Tests job, and the Rust Plan job still exercises the native
ones.

The native commit tests were gated only by @requires_native (the pypaimon_rust
module being importable), so the standard test job ran them against the PyPI
pypaimon-rust wheel. That wheel predates the v14 commit bridge, so native commit
preparation raises, is caught, and the commit falls back to Python, tripping the
"must not fall back" assertion on Python 3.10-3.13 (3.6 and 3.7 have no wheel and
skip).

Mark these tests native_plan, as was done for native reads (apache#10067), so they are
excluded from the wheel-based test job and run only in the Rust Plan job against
the from-source paimon-rust runtime, where the commit bridge matches.
@jackylee-ch
jackylee-ch force-pushed the python-native-commit-rust-lane branch from b3b394f to 4d58954 Compare September 23, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant