GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-110152: regrtest handles cross compilation and HOSTRUNNER by vstinner · Pull Request #110156 · python/cpython

Conversation

@vstinner

@vstinner vstinner commented Sep 30, 2023 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
  • _add_python_opts() now handles cross compilation and HOSTRUNNER.
  • display_header() now tells if Python is cross-compiled, display HOSTRUNNER, and get the host platform.
  • Remove Tools/scripts/run_tests.py script.
  • Remove "make hostrunnertest": use "make buildbottest" or "make test" instead.
  • Issue: regrtest: handle cross compilation and HOSTRUNNER in libregrtest, avoid Tools/scripts/run_tests.py #110152

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot added the awaiting review label Sep 30, 2023
@bedevere-app bedevere-app Bot mentioned this pull request Sep 30, 2023
regrtest: handle cross compilation and HOSTRUNNER in libregrtest, avoid Tools/scripts/run_tests.py #110152
Closed
@vstinner

vstinner commented Sep 30, 2023

Copy link
Copy Markdown
Member Author

!buildbot wasm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot

bedevere-bot commented Sep 30, 2023

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @vstinner for commit cd4bf78 🤖

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

The builders matched are:

  • wasm32-emscripten browser (dynamic linking, no tests) PR
  • wasm32-wasi PR
  • wasm32-emscripten node (pthreads) PR
  • wasm32-emscripten node (dynamic linking) PR
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Sep 30, 2023

Copy link
Copy Markdown
Member Author

wasm32-emscripten node (pthreads) PR:

make buildbottest 'TESTOPTS=-j2  --junit-xml test-results.xml -j2 ${BUILDBOT_TESTOPTS}' TESTPYTHONOPTS= TESTTIMEOUT=1200
(...)
_PYTHON_HOSTRUNNER='/opt/emsdk/node/current/bin/node --experimental-wasm-bigint --experimental-wasm-threads --experimental-wasm-bulk-memory' _PYTHON_PROJECT_BASE=/opt/buildbot/bcannon-wasm/pull_request.bcannon-wasm.emscripten-node-pthreads/build/build_oot/host _PYTHON_HOST_PLATFORM=emscripten-wasm32 PYTHONPATH=/opt/buildbot/bcannon-wasm/pull_request.bcannon-wasm.emscripten-node-pthreads/build/build_oot/host/build/lib.emscripten-wasm32-3.13:../../Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__emscripten_wasm32-emscripten ../build/python  -m test --slow-ci --timeout=1200 -j2  --junit-xml test-results.xml -j2 
+ ../build/python -u -W default -bb -m test --slow-ci --timeout=1200 -j2 --junit-xml test-results.xml -j2 --python '/opt/emsdk/node/current/bin/node --experimental-wasm-bigint --experimental-wasm-threads --experimental-wasm-bulk-memory python.js' --dont-add-python-opts
== CPython 3.13.0a0 (heads/refs/pull/110156/merge-dirty:752dc07d2d, Sep 30 2023, 20:25:56) [GCC 9.4.0]
== Linux-5.15.0-1019-azure-x86_64-with-glibc2.31 little-endian
== Python build: release
== cwd: /opt/buildbot/bcannon-wasm/pull_request.bcannon-wasm.emscripten-node-pthreads/build/build_oot/host/build/test_python_worker_1799820æ
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
== resources (10): audio, cpu, curses, decimal, gui, largefile, network, subprocess, urlfetch, walltime
== cross compiled: Yes
== host python: /opt/emsdk/node/current/bin/node --experimental-wasm-bigint --experimental-wasm-threads --experimental-wasm-bulk-memory python.js
== host platform: Emscripten-3.1.22-wasm32-32bit

wasm32-emscripten node (dynamic linking) PR:

make buildbottest 'TESTOPTS=-j2  --junit-xml test-results.xml -j2 ${BUILDBOT_TESTOPTS}' TESTPYTHONOPTS= TESTTIMEOUT=1200
(...)
_PYTHON_HOSTRUNNER='/opt/emsdk/node/current/bin/node --experimental-wasm-bigint' _PYTHON_PROJECT_BASE=/opt/buildbot/bcannon-wasm/pull_request.bcannon-wasm.emscripten-node-dl/build/build_oot/host _PYTHON_HOST_PLATFORM=emscripten-wasm32 PYTHONPATH=/opt/buildbot/bcannon-wasm/pull_request.bcannon-wasm.emscripten-node-dl/build/build_oot/host/build/lib.emscripten-wasm32-3.13:../../Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__emscripten_wasm32-emscripten ../build/python  -m test --slow-ci --timeout=1200 -j2  --junit-xml test-results.xml -j2 
+ ../build/python -u -W default -bb -m test --slow-ci --timeout=1200 -j2 --junit-xml test-results.xml -j2 --python '/opt/emsdk/node/current/bin/node --experimental-wasm-bigint python.js' --dont-add-python-opts
== CPython 3.13.0a0 (heads/refs/pull/110156/merge-dirty:752dc07d2d, Sep 30 2023, 20:22:43) [GCC 9.4.0]
== Linux-5.15.0-1019-azure-x86_64-with-glibc2.31 little-endian
== Python build: release
== cwd: /opt/buildbot/bcannon-wasm/pull_request.bcannon-wasm.emscripten-node-dl/build/build_oot/host/build/test_python_worker_1786909æ
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
== resources (10): audio, cpu, curses, decimal, gui, largefile, network, subprocess, urlfetch, walltime
== cross compiled: Yes
== host python: /opt/emsdk/node/current/bin/node --experimental-wasm-bigint python.js
== host platform: Emscripten-3.1.22-wasm32-32bit
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Sep 30, 2023

Copy link
Copy Markdown
Member Author

Oh, wasm32-wasi PR failed on test.pythoninfo:

Checked 106 modules (74 built-in, 0 shared, 19 n/a on wasi-wasm32, 1 disabled, 12 missing, 0 failed on import)
wasmtime run --env PYTHONPATH=/build_oot/host/build/lib.wasi-wasm32-3.13:/Lib --mapdir /::../.. -- ./python.wasm -m test.pythoninfo
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
Python runtime state: preinitialized
make: *** [Makefile:1990: pythoninfo] Error 1
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Sep 30, 2023

Copy link
Copy Markdown
Member Author

Oh, wasm32-wasi PR failed on test.pythoninfo

Fixed by PR gh-110161.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner
pythongh-110152: regrtest handles cross compilation and HOSTRUNNER
684e911
* _add_python_opts() now handles cross compilation and HOSTRUNNER.
* display_header() now tells if Python is cross-compiled, display
  HOSTRUNNER, and get the host platform.
* Remove Tools/scripts/run_tests.py script.
* Remove "make hostrunnertest": use "make buildbottest"
  or "make test" instead.
@vstinner
vstinner force-pushed the regrtest_hostrunner branch from cd4bf78 to 684e911 Compare September 30, 2023 22:08
@vstinner
vstinner enabled auto-merge (squash) September 30, 2023 22:14
@vstinner
vstinner merged commit 53eb9a6 into python:main Sep 30, 2023
@vstinner
vstinner deleted the regrtest_hostrunner branch September 30, 2023 22:37
@bedevere-app bedevere-app Bot removed the awaiting review label Sep 30, 2023
@zanieb zanieb mentioned this pull request Jun 6, 2024
Initial attempt at support for Python 3.13. astral-sh/python-build-standalone#264
Closed
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
@vstinner @Glyphack
pythongh-110152: regrtest handles cross compilation and HOSTRUNNER (p…
ea8972e
…ython#110156)

* _add_python_opts() now handles cross compilation and HOSTRUNNER.
* display_header() now tells if Python is cross-compiled, display
  HOSTRUNNER, and get the host platform.
* Remove Tools/scripts/run_tests.py script.
* Remove "make hostrunnertest": use "make buildbottest"
  or "make test" instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@vstinner @bedevere-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.