"Re-running failed tests in verbose mode" does not use host runner

Open
#94,052 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing-qa

Research direction

Start with the test runner API introduced by GH-84461 / PR GH-91930 and trace rerun_failed_tests() through the test control process. Verify that failed tests are re-executed with ns.python and the host runner rather than the build Python, including WebAssembly or other cross-compile targets.

Written by the indexing model from the issue text.

Description

3.11 3.12 tests type-bug

Bug report

Issue GH-84461 / PR GH-91930 introduces a new test runner API to execute tests with a different Python interpreter. It is used by WebAssembly and other cross-compile targets to run tests. The test controll process uses the native build Python interpreter while the tests workers use the cross compiled host Python interpreter with a HOSTRUNNER like wasmtime or NodeJS.

The rerun_failed_tests() method does not use ns.python. Failed tests are re-executed with the build Python instead of host Python.

@ethanhs

Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python/cpython

All issues in python/cpython

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.