Skip to content

Keep tensorflow-cpu below 2.22 in the test dependencies - #804

Merged
evertlammerts merged 2 commits into
duckdb:mainfrom
ewoerd:fix-tensorflow-cpu-cap
Dec 1, 2026
Merged

evertlammerts merged 2 commits into
duckdb:mainfrom
ewoerd:fix-tensorflow-cpu-cap

Conversation

@evertlammerts

Copy link
Copy Markdown
Member

The job "Sanity: cp311-manylinux_x86_64" dies with a segmentation fault in tests/fast/test_tf.py on every pull request since tensorflow-cpu 2.22.0 reached PyPI on 2026-11-30. That release crashes when it converts a numpy array to a tensor with numpy 1.26.4, the version the test group pins for Python 3.11. It works with numpy 2, and 2.21.0 works with numpy 1.26.4.

tf.convert_to_tensor(np.array([1, 3], dtype=np.int32))  # exit 139 with tensorflow-cpu 2.22.0 and numpy 1.26.4

The Linux and the Windows line of the test group now ask for tensorflow-cpu>=2.14.0,<2.22, which resolves to 2.21.0, the version of the last green runs of the job. The Windows wheel of 2.22.0 is untested, since no job installs TensorFlow there; the line gets the same cap because it is the same rule.

The same job fails for the same reason on v2.0-cyanoptera, whose test group has the same two lines, so this needs the label backport-v2.0.

@evertlammerts
evertlammerts merged commit b3d3709 into duckdb:main Dec 1, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant