Skip to content

[hnswlib] Use darwin for stubtest - #16125

Merged
srittau merged 5 commits into
python:mainfrom
srittau:disable-hnswlib
Jul 31, 2026
Merged

[hnswlib] Use darwin for stubtest#16125
srittau merged 5 commits into
python:mainfrom
srittau:disable-hnswlib

Conversation

@srittau

@srittau srittau commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Cf. #16100

@srittau
srittau marked this pull request as draft July 31, 2026 13:57
@srittau srittau changed the title [hnswlib] Disable stubtest [hnswlib] Use darwin for stubtest Jul 31, 2026
@srittau
srittau marked this pull request as ready for review July 31, 2026 14:27

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@srittau
srittau merged commit ea06fac into python:main Jul 31, 2026
99 of 100 checks passed
@srittau
srittau deleted the disable-hnswlib branch July 31, 2026 16:01
srittau pushed a commit that referenced this pull request Aug 20, 2026
…16244)

hnswlib is source-only and compiles with -march=native by default. CI
restores pip's wheel cache across runners with different CPUs, so a
wheel built on one host can hit an illegal instruction on the next.
That is the SIGILL (exit -4) with empty output from #16100.

Add a general `install-environment` key to [tool.stubtest] that sets
environment variables for the pip install step, and use it to pass
hnswlib's own HNSWLIB_NO_NATIVE opt-out. This lets the darwin-only
workaround from #16125 be dropped so hnswlib is tested on Linux again.
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.

2 participants