gh-127432: Add CI test for cross-builds#127447
Closed
gianfrancomauro wants to merge 3 commits intopython:mainfrom
Closed
gh-127432: Add CI test for cross-builds#127447gianfrancomauro wants to merge 3 commits intopython:mainfrom
gianfrancomauro wants to merge 3 commits intopython:mainfrom
Conversation
Fixes python#127432 Add CI test for cross-builds. * Add a new test function `test_cross_build` in `Lib/test/test_embed.py` to run `test_sysconfig`, `test_site`, and `test_embed` tests. * Use `subprocess` to run the tests in the build directory and after installation. * Add a new workflow file `.github/workflows/cross-build.yml` to define the CI test for cross-builds. * Include steps to build a host Python, install it, configure a new build, and run the tests. * Run the tests in the build directory and after installation. * Use a different architecture in the cross-build. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/python/cpython/issues/127432?shareId=XXXX-XXXX-XXXX-XXXX).
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
* **Cross-Build Job** - Add a new job named `Cross-Builds` to the JIT workflow - Checkout code using `actions/checkout@v2` - Set up Python using `actions/setup-python@v2` - Install build-essential dependencies - Build host Python and install it - Configure cross-build with the host Python - Run tests in the build directory - Install cross-build - Run tests with the installed Python
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Member
|
I've marked this as a draft while you address the CI failures. |
* **Lib/test/test_multiprocessing_forkserver.py** - Add tests for shared memory access, process return code, and signal handling in forkserver. * **Lib/test/test_dependencies.py** - Add tests to check for the existence of `pyvenv.cfg` and availability of `multiprocessing.shared_memory`, `ssl`, `pdb`, and `warnings` modules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #127432
Add CI test for cross-builds.
test_cross_buildinLib/test/test_embed.pyto runtest_sysconfig,test_site, andtest_embedtests.subprocessto run the tests in the build directory and after installation..github/workflows/cross-build.ymlto define the CI test for cross-builds.For more details, open the Copilot Workspace session.