Skip to content

ci: update / clean up wasm build#6166

Open
davidhewitt wants to merge 6 commits into
PyO3:mainfrom
davidhewitt:wasm-debug
Open

ci: update / clean up wasm build#6166
davidhewitt wants to merge 6 commits into
PyO3:mainfrom
davidhewitt:wasm-debug

Conversation

@davidhewitt

Copy link
Copy Markdown
Member

This is an attempt to make the wasm build error reproducible locally. I moved its logic into noxfile.py and Makefile to match the emscripten build.

It works fine for me when running in this fashion, let's test CI.

I updated the emscripten build a little at the same time (and shared the python download logic between them).

@codspeed-hq

codspeed-hq Bot commented Jun 27, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 26.2%

❌ 1 regressed benchmark
✅ 139 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
into_u128_u64_max 1.5 µs 2 µs -26.2%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing davidhewitt:wasm-debug (4aea567) with main (b3aa7da)

Open in CodSpeed

Comment thread .github/workflows/ci.yml Outdated
# wasi sdk sets CC variables which break Python's configure script
# (it also sets WASI_SDK_PATH even without `add-to-path`, which is sufficient)
add-to-path: false
- run: python -m pip install --upgrade pip && pip install nox[uv]

@chirizxc chirizxc Jun 28, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we use pip specifically? It seems that when I ran some mini benchmarks, even using actions with the uv installation plus uv pip install was faster

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes this is a copy-paste, I have been generally changing actions to just use uvx nox and dropping this step entirely.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated in eb6b6b7 (there are probably other jobs in ci.yml which still could move to uv)

@davidhewitt davidhewitt marked this pull request as ready for review June 28, 2026 22:18
@davidhewitt

Copy link
Copy Markdown
Member Author

Looks like this succeeded, so whether it was a bad cache or something fixed by this refactoring, I guess we move forwards?

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.

2 participants