Skip to content

test_tokenize_range_index fails if cityhash is not installed#12286

Merged
crusaderky merged 1 commit intodask:mainfrom
crusaderky:citihash-test
Feb 13, 2026
Merged

test_tokenize_range_index fails if cityhash is not installed#12286
crusaderky merged 1 commit intodask:mainfrom
crusaderky:citihash-test

Conversation

@crusaderky
Copy link
Copy Markdown
Collaborator

@crusaderky crusaderky commented Feb 6, 2026

dask.hashing uses cityhash if available and if not it falls back to xxhash, then to mmh3, and finally to sha1 (which is always available).

The issue with this test is that

  • cityhash returns 16 bytes hashes,
  • xxhash returns 8 bytes,
  • mmh3 returns 16 bytes,
  • sha1 returns 20 bytes

So if cityhash is not installed and xxhash is, this test fails with assert 16 >= 32 (hex hashes = 2 characters per byte).
cityhash is currently not available on 3.14t.

@crusaderky crusaderky added the tests Unit tests and/or continuous integration label Feb 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 6, 2026

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     21 files  ±0       21 suites  ±0   5h 6m 2s ⏱️ -13s
 18 282 tests ±0   17 008 ✅  - 1   1 273 💤 ±0  1 ❌ +1 
294 744 runs  ±0  252 432 ✅ +2  42 311 💤  - 3  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 395eacd. ± Comparison against base commit e5a9087.

@crusaderky crusaderky merged commit 5a77978 into dask:main Feb 13, 2026
50 of 51 checks passed
@crusaderky crusaderky deleted the citihash-test branch February 13, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Unit tests and/or continuous integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant