Skip to content

gh-151929: Add pythoninfo commands to Platforms/WASI#152136

Merged
vstinner merged 5 commits into
python:mainfrom
vstinner:wasi_pythoninfo
Jun 25, 2026
Merged

gh-151929: Add pythoninfo commands to Platforms/WASI#152136
vstinner merged 5 commits into
python:mainfrom
vstinner:wasi_pythoninfo

Conversation

@vstinner

@vstinner vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member

The "build" command now runs also "pythoninfo-build" and "pythoninfo-host" commands.

GitHub Action "WASI":

  • Run "pythoninfo-build" command.
  • Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

If no subcommand is provided, display the help.

The "build" command now runs also "pythoninfo-build" and
"pythoninfo-host" commands.

GitHub Action "WASI":

* Run "pythoninfo-build" command.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

If no subcommand is provided, display the help.
@vstinner

Copy link
Copy Markdown
Member Author

The WASI CI job completed successfully and it now has two "pythoninfo" steps:

  • Display build info of the build Python
  • Display build info of the host/WASI Python

@brettcannon: Would you mind to review this change? Does it look like a reasonable addition?

@vstinner

Copy link
Copy Markdown
Member Author

"Display build info of the build Python" logs the boot ID, machine ID and uptime:

linux.boot_id: 151ef235-1c59-42b9-9361-6ce6e01cd15e
linux.machine_id: c1e1a6c26d1e4cc2ba4abab80d428183
linux.uptime: 0:08:36

@vstinner vstinner added the needs backport to 3.13 bugs and security fixes label Jun 25, 2026
@vstinner

Copy link
Copy Markdown
Member Author

My plan is to backport this change to 3.13, 3.14 and 3.15 branches, and then update the buildbot configuration to call these new commands.

vstinner added 2 commits June 25, 2026 16:51
Replace "host" with "host/WASI Python", as done in Platforms/WASI
command line.
@vstinner

Copy link
Copy Markdown
Member Author

I wrote a similar change for Emscripten: #152210.

@vstinner vstinner merged commit 7c81637 into python:main Jun 25, 2026
31 checks passed
@vstinner vstinner deleted the wasi_pythoninfo branch June 25, 2026 17:15
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 7c8163719cd23d41daeaed0b243be45de3e82e05 3.14

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 7c8163719cd23d41daeaed0b243be45de3e82e05 3.13

@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152222 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jun 25, 2026
vstinner added a commit that referenced this pull request Jun 25, 2026
… (#152222)

gh-151929: Add pythoninfo commands to Platforms/WASI (GH-152136)

The "build" command now also runs "pythoninfo-build" and
"pythoninfo-host" commands.

If no subcommand is provided, display the help.

GitHub Action "WASI":

* Add "pythoninfo-build" and "pythoninfo-host" commands.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.
(cherry picked from commit 7c81637)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152224 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 25, 2026
@vstinner vstinner removed the needs backport to 3.13 bugs and security fixes label Jun 25, 2026
@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152224 is a backport of this pull request to the 3.14 branch.

vstinner added a commit that referenced this pull request Jun 25, 2026
#152224)

* gh-151929: Add pythoninfo commands to Platforms/WASI (#152136)

The "build-python", "build-host" and "build" commands now also run
"pythoninfo-build" and "pythoninfo-host" commands.

If no subcommand is provided, display the help.

GitHub Action "WASI":

* Add "pythoninfo-build" and "pythoninfo-host" commands.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

(cherry picked from commit 7c81637)
vstinner added a commit that referenced this pull request Jun 25, 2026
) (#152224) (#152226)

The "build" command now also runs "pythoninfo-build" and
"pythoninfo-host" commands.

If no subcommand is provided, display the help.

GitHub Action "WASI":

* Add "pythoninfo-build" command.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.

(cherry picked from commit 7c81637)
(cherry picked from commit 6426887)
@vstinner

Copy link
Copy Markdown
Member Author

I deployed a new buildbot configuration using the two new WASI "pythoninfo" commands. It works as expected! Example:

system.boot_id: 37d4e586-62cc-46b6-919b-53703418793b
system.uptime: 2 days, 0:37:00

See: python/buildmaster-config#746 (comment)

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