cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Bannister (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-14491) Determine how to test cqlsh in a Python 2.7 environment, including dtests
Date Thu, 07 Jun 2018 23:44:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-14491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16505513#comment-16505513
] 

Patrick Bannister commented on CASSANDRA-14491:
-----------------------------------------------

It's not critical for the full set of dtests to run under Python 2.7, but we need the cqlsh
tests to run if we're going to maintain support for cqlsh to run on Python 2.7. The cqlsh
dtests provide a significant portion of the test coverage of cqlsh.

I think the dtests should stay on Python 3. The goal is for the cqlsh tests to be runnable
on Python 2.7, not to revert.

Ideally, I'll make minimal modifications that will be Python 2/3 cross compatible in a single
implementation. If the resulting product is good then we'll get to enjoy a more complete test
environment; if it's awful then we can stay on Python 3.

For what it's worth: I just spent about ninety minutes and changed a few dozen lines of code,
and I already have cqlsh_tests/cqlsh_tests.py mostly running under Python 2.7. Hopefully the
delta to run on Python 2.7 will be insignificant.

> Determine how to test cqlsh in a Python 2.7 environment, including dtests
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14491
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14491
>             Project: Cassandra
>          Issue Type: Sub-task
>         Environment:  
>  
> We need to test with at least two versions of Python:
>  * Python 2.7
>  * Python 3.x (need to determine what versions of Python 3 are available by default on
Ubuntu and RHEL/CentOS)
> Additionally, it is recommended to test on at least three platforms:
>  * Ubuntu or other Debian derivative
>  * RHEL, CentOS, or other Red Hat derivative
>  * Windows (unless a consensus has formed around not testing on Windows?)
>            Reporter: Patrick Bannister
>            Priority: Major
>              Labels: cqlsh, test
>             Fix For: 4.x
>
>
> It appears that a consensus is forming around maintaining Python 2.7 compatibility for
cqlsh. However, the dtests now run in a Python 3 environment. We need to identify an option
for testing infrastructure for testing cqlsh on Python 2.7, including the dtests.
> Based on experience updating the cqlsh dtests, it is strongly recommended to test in
more than one environment - for example, for Linux, we should test on a Debian derivative
as well as a Red Hat derivative.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message