Skip to content

ci: build and test with Python 2 and 3; the cheap way#538

Closed
szeder wants to merge 3 commits intogitgitgadget:pufrom
szeder:yz/p4-py3
Closed

ci: build and test with Python 2 and 3; the cheap way#538
szeder wants to merge 3 commits intogitgitgadget:pufrom
szeder:yz/p4-py3

Conversation

@szeder
Copy link

@szeder szeder commented Jan 23, 2020

Will it work?

yangskyboxlabs and others added 3 commits January 15, 2020 12:53
git-p4.py includes support for python3, but this was not previously
validated in CI. Lets actually do that.

As of writing, python-3.5 has reached end-of-life, but has been updated
recently enough that it's reasonable to attemp to support it. We do not
have a pressing need for features only available in 3.6 and later.

Usage of python3 is limited to the linux-gcc pipeline on Azure. It is
assumed that passing both python2 and python3 tests on one platform
translates to doing the same on others.

Travis-CI is unchanged, as no tests are run in those environments.

Signed-off-by: Yang Zhao <yang.zhao@skyboxlabs.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
@gitgitgadget
Copy link

gitgitgadget bot commented Jan 23, 2020

There is an issue in commit a08c429:
Commit not signed off

@gitgitgadget
Copy link

gitgitgadget bot commented Jan 23, 2020

There is an issue in commit 2a569f8:
Commit checks stopped - the message is too short

export CC=gcc-9
MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=$(which python3)"
else
MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=$(which python2)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only objection I have is that it is already pretty magic to anybody who was not involved in the development of our CI/PR pipeline where and how the different axes are tested. This exacerbates that problem... How are people to know that the -gcc axis is intended to test with Python 3.x whereas the -clang ones are intended to test with Python 2.x?

@dscho dscho force-pushed the pu branch 6 times, most recently from 272f02e to 9a5d6d0 Compare March 11, 2020 21:02
@dscho dscho force-pushed the pu branch 9 times, most recently from d5509a3 to df072e1 Compare March 18, 2020 23:27
@dscho dscho force-pushed the pu branch 10 times, most recently from b61a9a0 to 73bef04 Compare March 25, 2020 21:50
@dscho dscho force-pushed the pu branch 5 times, most recently from 98cfd38 to ef45ad0 Compare March 30, 2020 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants