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

Change Python kokoro configs to test only their specified version. #7927

Merged
merged 4 commits into from
Sep 30, 2020

Conversation

dlj-NaN
Copy link
Contributor

@dlj-NaN dlj-NaN commented Sep 29, 2020

Our versioned Python tests have been using the common "linux/64-bit" runner
with the same kokoro/linux/python_cpp/build.sh build script. Unfortunately,
using non-versioned build_file means every Python version is tested (under
Tox), multiplied across each Python version-specific build.

For example, this means that when the python38 config is used to run Tox, the
Tox runner actually uses the default Python from kokoro/linux/64-bit, which
then tests all of the Python versions individually, via Tox.

This change fixes the build_file paths to point to the version-specific build
scripts. Because all of the builds were running on the linux/64-bit image, this
change also updates the versioned build containers to install tox.

Some tox.ini changes are needed to avoid breakage (see also #7930).

Using non-versioned `build_file` values means every Python version is tested
(under Tox), and this is multiplied by each Python version running Tox.

For example, this means that when the `python38` config is used to run Tox, the
Tox layer runs on Python 3.8, and which then tests all of the Python versions
individually. As a result, tests are run under Python 3.8 for every runner
configuration.

This change fixes the `build_file` paths to point to the correct paths.
@dlj-NaN dlj-NaN marked this pull request as ready for review September 29, 2020 18:46
@dlj-NaN
Copy link
Contributor Author

dlj-NaN commented Sep 30, 2020

FYI, the latest Kokoro tests used the Docker images with the changes in this patch. Only the Python images were rebuilt (the macOS failures in particular are pre-existing).

@dlj-NaN dlj-NaN merged commit b774da0 into protocolbuffers:master Sep 30, 2020
@dlj-NaN dlj-NaN deleted the kokoro-py branch September 30, 2020 22:56
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.

4 participants