-
Notifications
You must be signed in to change notification settings - Fork 2k
Add emscripten as a platform #13962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add emscripten as a platform #13962
Conversation
|
We require contributors to sign our Contributor License Agreement and we don't have one on file for @DerThorsten. In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature, merge the PR (conda/infrastructure#955), and ping the bot to refresh the PR. |
|
@conda-bot check |
CodSpeed Performance ReportMerging #13962 will not alter performanceComparing Summary
|
jezdez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things that need to be done:
- the
Archenum also needs awasm32addition - the
Platformenum also needs awasiplatform - we need to add a news file that mentions that this is a bugfix for #13095
Additionally, I worry that this wasn't caught earlier, could we add some tests?
Probably
Probably, but unrelated to this PR, but I can also add it
I can do that
I don't know enough about the testing in conda, but one could just install a package from the emscripten-forge channel |
Co-authored-by: Jannis Leidel <jannis@leidel.info>
|
I believe we want to avoid any integration tests especially those reaching to outside services. I'm guessing the appropriate type of test would be some form of unit test. I was looking around the test code today and couldn't really find any good places to stick these tests. We could for example create a new |
|
two questions:
the thing that really matters is: will the env creation commands listed here really work after merging this PR or are we still missing something? Only integration tests or a manual test can ensure this now (and for future changes). If we don't want tests that rely on outside services, then the PR is complete? or we write an complicated test that monkey patches the enums with artificial random arch/platform and mocks a channel+platform to prove that extending the arch + platform + subdir is enough for any additions (this would be imho unfair to request from the PR author as this goes beyond fixing PR #13095) |
|
a canary build of the PR would be nice to install conda locally and run some of the commands here https://emscripten-forge.readthedocs.io/en/latest/src/usage.html |
FYI the docs moved to https://emscripten-forge.org/ |
So from my side, I believe its complete. |
|
Thanks for your work on this @DerThorsten! Looking forward to this |
|
@jezdez whats the way to move forward here? |
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
|
@kenodegard Do you have an idea why we're not seeing the error output from |
|
@jezdez when an error or non-zero exit occurs the stdout & stderr are formatted and logged to |
|
Hm the test failure is complaining about emscripten not being a valid platform edit: struggling to replicate the failure locally |
68e023c to
964cd95
Compare
|
I think the pkgs cache (which is shared across CI runs) got polluted with the test files, and now the vanilla conda (outside this PR) cannot process its own PackageCacheRecord. Let's see if clearing it up helps. |
|
I manually cleared |
|
yay! 🎉 |
Description
While emscripten-wasm32 has been added as a subdirectory, it is missing as a platform.
As a consequence packages from emscripten-forge cannot be installed with conda (mamba-org/mamba#3291).
We are only facing this issue recently since we changed to rattler-build. Before that we use boa to build the packages for emscripten-forge. Boa wrongly used "linux" as platform for emscripten-wasm32 packages instead of "emscripten", therefore we did not see this issue before switching to rattler-build.
Thanks @trungleduc for helping in finding the solution to the problem.
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?