Skip to content

gh-145177: Support multiple Emscripten versions for Emscripten buildbot#145180

Merged
freakboy3742 merged 7 commits intopython:mainfrom
hoodmane:multiple-emsdk-versions
Mar 6, 2026
Merged

gh-145177: Support multiple Emscripten versions for Emscripten buildbot#145180
freakboy3742 merged 7 commits intopython:mainfrom
hoodmane:multiple-emsdk-versions

Conversation

@hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Feb 24, 2026

This adds an --emsdk-cache argument to the Emscripten build script and an emscripten_version.txt file. If the --emsdk-cache argument is passed, the build script will look in emscripten_version.txt to get the expected emsdk version is installed in a folder called e.g., 4.0.12 in the directory indicated by the --emsdk-cache argument. Otherwise, it will exit with an error.

…buildbot

This adds an `--emsdk-cache` argument to the Emscripten build script and an
emscripten_version.txt file. If the `--emsdk-cache` argument is passed, the build script
will look in emscripten_version.txt to get the expected emsdk version is installed in a
folder called e.g., 4.0.12 in the directory indicated by the `--emsdk-cache` argument.
Otherwise, it will exit with an error.
@hoodmane
Copy link
Contributor Author

Would appreciate review on this one next @freakboy3742

@freakboy3742
Copy link
Contributor

Would appreciate review on this one next @freakboy3742

Ack - I've been tied up with some other things at work. Will take a look as soon as I get a moment - probably early next week.

Copy link
Contributor

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

The basic structure for this looks good; the only question is about whether it... actually works. The environment persistence stuff doesn't seem to work like this code suggests it will.

I know you've made the change to put the Emscripten version in code; however, Brett's comment about making it easy to backport is a fair one - maybe we want to revert to the older approach?

@bedevere-app
Copy link

bedevere-app bot commented Mar 3, 2026

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

hoodmane and others added 3 commits March 4, 2026 10:02
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Copy link
Contributor

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

This looks good, and worked in my testing; one clarifying question inline that doesn't seem to impact on how the script works, but I want to make sure I understand the reasoning for the choice.

@freakboy3742
Copy link
Contributor

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 90f65ea 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145180%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@freakboy3742
Copy link
Contributor

Looks like #145439 has broken CI for Emscripten; we'll need to fix that before landing this PR.

@freakboy3742
Copy link
Contributor

On the subject of which - add "adding Emscripten to GitHub CI" to the TODO list, as that will help avoid this sort of problem, and CI is otherwise stable.

@hoodmane
Copy link
Contributor Author

hoodmane commented Mar 5, 2026

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @hoodmane for commit 3b80a0b 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145180%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@freakboy3742
Copy link
Contributor

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit b66e2fa 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145180%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

Copy link
Contributor

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

👍 Looks great - thanks for those updates.

@freakboy3742 freakboy3742 merged commit c3fb0d9 into python:main Mar 6, 2026
84 of 89 checks passed
@freakboy3742
Copy link
Contributor

@hoodmane I guess the question is whether we backport this to 3.14. That would make updating the buildbot script easier...

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.

3 participants