[
https://issues.apache.org/jira/browse/CASSANDRA-14298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Patrick Bannister updated CASSANDRA-14298:
------------------------------------------
Status: Patch Available (was: Open)
Please see attachment CASSSANDRA-14298.txt for a new patch to cassandra-dtest
that passes on trunk, cassandra-3.11, and cassandra-3.0 on CentOS 7.5 and
Ubuntu 16.04 LTS on AWS t2.large instances.
In this patch, the setUpClass() function for cqlsh_tests.py::TestCqlsh and
cqlsh_copy_tests.py::TestCqlshCopy checks the system preferred encoding with
locale.getpreferredencoding(), and if the result isn't UTF-8, it sets
LC_CTYPE=en_US.utf8. This locale is more widely available.
On systems where en_US.utf8 isn't available, the tests will fail unless some
other UTF-8 locale is set.
I've noticed that the bulk round trip tests in
cqlsh_tests/cqlsh_copy_tests::TestCqlshCopy are flaky. When they've failed,
they've consistently passed when rerun.
> cqlshlib tests broken on b.a.o
> ------------------------------
>
> Key: CASSANDRA-14298
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14298
> Project: Cassandra
> Issue Type: Bug
> Components: Build, Testing
> Reporter: Stefan Podkowinski
> Assignee: Patrick Bannister
> Priority: Major
> Labels: cqlsh, dtest
> Attachments: CASSANDRA-14298-old.txt, CASSANDRA-14298.txt,
> cqlsh_tests_notes.md
>
>
> It appears that cqlsh-tests on builds.apache.org on all branches stopped
> working since we removed nosetests from the system environment. See e.g.
> [here|https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-trunk-cqlsh-tests/458/cython=no,jdk=JDK%201.8%20(latest),label=cassandra/console].
> Looks like we either have to make nosetests available again or migrate to
> pytest as we did with dtests. Giving pytest a quick try resulted in many
> errors locally, but I haven't inspected them in detail yet.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]