Skip to content

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

Closed
evertlammerts wants to merge 1 commit into
duckdb:v2.0-cyanopterafrom
ewoerd:fix-tensorflow-cpu-cap-v2.0
Closed

evertlammerts wants to merge 1 commit into
duckdb:v2.0-cyanopterafrom
ewoerd:fix-tensorflow-cpu-cap-v2.0

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.

Main gets the same change in a pull request of its own.

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