Skip to content
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

Emscripten: Get test suite passing #127146

Open
hoodmane opened this issue Nov 22, 2024 · 2 comments
Open

Emscripten: Get test suite passing #127146

hoodmane opened this issue Nov 22, 2024 · 2 comments
Labels
OS-emscripten tests Tests in the Lib/test dir

Comments

@hoodmane
Copy link
Contributor

hoodmane commented Nov 22, 2024

First I'd like to get the test suite to run all the way through, then to pass.

cc @freakboy3742

Linked PRs

Emscripten PRs:

hoodmane added a commit to hoodmane/cpython that referenced this issue Nov 22, 2024
After this, Emscripten makes it all the way through the test suite when I run it
locally.
hoodmane added a commit to hoodmane/cpython that referenced this issue Nov 22, 2024
After this, Emscripten makes it all the way through the test suite when I run it
locally.
hoodmane added a commit to hoodmane/cpython that referenced this issue Nov 22, 2024
After this, Emscripten makes it all the way through the test suite when I run it
locally.
hoodmane added a commit to hoodmane/cpython that referenced this issue Nov 23, 2024
After this, Emscripten makes it all the way through the test suite when I run it
locally.
@hoodmane
Copy link
Contributor Author

This upstream Emscripten PR fixes at least 13 test failures:
emscripten-core/emscripten#22998

@hoodmane
Copy link
Contributor Author

The tests involving readlink are fixed by this Emscripten PR: emscripten-core/emscripten#23000

hoodmane added a commit to hoodmane/cpython that referenced this issue Dec 3, 2024
hoodmane added a commit to hoodmane/cpython that referenced this issue Dec 3, 2024
* Emscripten has_strftime_extensions
* fma doesn't handle negative zero correctly in Emscripten
* Emscripten has similar limited stack depth to wasi and apple in test_marshall
freakboy3742 pushed a commit that referenced this issue Dec 4, 2024
Adjusts some Emscripten test exclusions regarding strftime, fma, and stack depth.
freakboy3742 pushed a commit that referenced this issue Dec 5, 2024
Added skips for tests known to cause problems when running on Emscripten. 
These mostly relate to the limited stack depth on Emscripten.
@picnixz picnixz added the tests Tests in the Lib/test dir label Dec 5, 2024
hoodmane added a commit to hoodmane/cpython that referenced this issue Dec 11, 2024
This xfails two tests in the test_time suite. It also adjusts test_os
to reflect the fact that in Emscripten file modification times in
nanoseconds since the linux epoch get round tripped through a 53 bit
integer so we only get 5 subsecond digits of precision.
freakboy3742 pushed a commit that referenced this issue Dec 12, 2024
Disables two tests in the test_time suite, and adjusts test_os to reflect 
precision limits in Emscripten.
hoodmane added a commit to hoodmane/cpython that referenced this issue Dec 16, 2024
A lot of these skips are no longer necessary.
hoodmane added a commit to hoodmane/cpython that referenced this issue Dec 16, 2024
…PLATFORM

`test_sysconfigdata_json` is failing. This doesn't entirely fix it but it moves
the failure later -- before it doesn't even find the sysconfigdata file because
of a descrepancy between what `uname()` returns and what `configure.ac` sets
`_PYTHON_HOST_PLATFORM` to. After, there are some small differences.
freakboy3742 pushed a commit that referenced this issue Dec 17, 2024
Removed test skips that are no longer required as a result of Emscripten updates.
freakboy3742 pushed a commit that referenced this issue Dec 17, 2024
…RM (#127992)

Modifies _PYTHON_HOST_PLATFORM to include the compiler version under
Emscripten. The Emscripten compiler version is the platform version
compatibility identifier.
hoodmane added a commit to hoodmane/cpython that referenced this issue Jan 6, 2025
The prefix is different when we build from when we run the test.
hoodmane added a commit to hoodmane/cpython that referenced this issue Jan 6, 2025
The prefix is different when we build from when we run the test.
hoodmane added a commit to hoodmane/cpython that referenced this issue Jan 6, 2025
hoodmane added a commit to hoodmane/cpython that referenced this issue Jan 6, 2025
We should set the value of prefix and exec_prefix in the host from
host_prefix and host_exec_prefix.
hoodmane added a commit to hoodmane/cpython that referenced this issue Jan 6, 2025
`emcc -dumpversion` will sometimes say e.g., `4.0.0-git` but in this case
uname does not include `-git` in the version string. Use cut to delete
everything after the dash.
freakboy3742 pushed a commit that referenced this issue Jan 6, 2025
Marks some additional tests as skipped on Emscripten. Many of these skips can be
reverted when the next Emscripten release is available.
freakboy3742 pushed a commit that referenced this issue Jan 6, 2025
`emcc -dumpversion` will sometimes say e.g., `4.0.0-git` but in this case
uname does not include `-git` in the version string. Use cut to delete
everything after the dash.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
…hon#127565)

Adjusts some Emscripten test exclusions regarding strftime, fma, and stack depth.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
)

Added skips for tests known to cause problems when running on Emscripten. 
These mostly relate to the limited stack depth on Emscripten.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
…hon#127843)

Disables two tests in the test_time suite, and adjusts test_os to reflect 
precision limits in Emscripten.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
Removed test skips that are no longer required as a result of Emscripten updates.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
…PLATFORM (python#127992)

Modifies _PYTHON_HOST_PLATFORM to include the compiler version under
Emscripten. The Emscripten compiler version is the platform version
compatibility identifier.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
)

Marks some additional tests as skipped on Emscripten. Many of these skips can be
reverted when the next Emscripten release is available.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
…128557)

`emcc -dumpversion` will sometimes say e.g., `4.0.0-git` but in this case
uname does not include `-git` in the version string. Use cut to delete
everything after the dash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-emscripten tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

2 participants