CI Run test suite inside Pyodide#27346
Conversation
|
I am marking this PR as ready for review. Here are a few comments:
|
ogrisel
left a comment
There was a problem hiding this comment.
LGTM besides the following suggestions:
| @@ -14,9 +14,3 @@ pip install pyodide-build==$PYODIDE_VERSION pyodide-cli | |||
| pyodide build | |||
There was a problem hiding this comment.
Would it be possible to speed-up the build by configuring ccache as we do for the other linux and macos builds?
There was a problem hiding this comment.
Maybe in a separate PR?
I tried setting ccache with emscripten locally and for some reason, I get a poor cache hit rate of ~30%. Locally building without the cache takes ~4 minutes and with the cache ~3 minutes. I am not too sure how this would translate in the CI.
Right now, building the wheel is ~10 minutes and running the tests ~25 minutes.
| pyodide venv pyodide-venv | ||
| source pyodide-venv/bin/activate | ||
|
|
||
| pip install dist/*.whl |
There was a problem hiding this comment.
Why isn't this step no longer required? Is it because we this is replaced by npm install pyodide@$PYODIDE_VERSION?
If so, why not call npm install as part of the install_pyodide.sh script?
There was a problem hiding this comment.
The Pyodide venv does not work with scipy.linalg for now (pyodide/pyodide#3865), so you need to go the js wrapper way. Previously we were only importing scikit-learn and avoiding the issue.
There was a problem hiding this comment.
Can we add a comment here or above npm install pyodide@$PYODIDE_VERSION to explain the situation?
| pyodide venv pyodide-venv | ||
| source pyodide-venv/bin/activate | ||
|
|
||
| pip install dist/*.whl |
There was a problem hiding this comment.
Can we add a comment here or above npm install pyodide@$PYODIDE_VERSION to explain the situation?
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…kit-learn into run-tests-in-pyodide
|
Nice to see this one merged! |
CI Run test suite inside Pyodide (scikit-learn#27346)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
With Pyodide 0.24, the scikit-learn test suite should pass (except a few tests that can be xfailed due to Pyodide limitations).