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

Paulo Motta commented on CASSANDRA-10541:
-----------------------------------------

I updated the branch addressing your review, rebased and resubmitted tests.

The windows tests are still a bit unstable due to environment problems which I 
believe will be fixed with [ccm PR 
#423|https://github.com/pcmanus/ccm/issues/423]. When they do not fail due to 
these problems they are working correctly on 
[3.0|http://cassci.datastax.com/view/All_Jobs/job/mambocab-scratch_cqlshlib_tests-windows-3.0-paulomotta/53/]
 and 
[trunk|http://cassci.datastax.com/view/All_Jobs/job/mambocab-scratch_cqlshlib_tests-windows-3.0-paulomotta/53/].
 However, on 
[2.2|http://cassci.datastax.com/view/All_Jobs/job/mambocab-scratch_cqlshlib_tests-windows-2.2-paulomotta/14/testReport/]
 the 
[test_describe_columnfamily_output|http://cassci.datastax.com/view/All_Jobs/job/mambocab-scratch_cqlshlib_tests-windows-2.2-paulomotta/14/testReport/cqlshlib.test.test_cqlsh_output/TestCqlshOutput/test_describe_columnfamily_output/]
 is failing only on CI with:

{noformat}
First differing element 19:
    AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
    AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
{noformat}

This problem was [fixed 
before|https://github.com/apache/cassandra/commit/f3cd3ed7bba7146c1410bc6b3e15b5cad3311f76]
 on 
[3.0|https://github.com/apache/cassandra/blob/cassandra-3.0/pylib/cqlshlib/test/test_cqlsh_output.py#L598]
 on CASSANDRA-10289. [~mambocab] do you remember why that happened in the first 
place and why it did not affect 
[2.2|https://github.com/apache/cassandra/blob/cassandra-2.2/pylib/cqlshlib/test/test_cqlsh_output.py#L598]
 ? The funny thing is that on 2.2 that test works on both Linux and Windows 
locally, and fails only on CI on Windows, so I suspect this is an environmental 
problem. Could you maybe compare the python versions and libraries installed on 
Windows and Linux boxes?

> cqlshlib tests cannot run on Windows
> ------------------------------------
>
>                 Key: CASSANDRA-10541
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10541
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Benjamin Lerer
>            Assignee: Paulo Motta
>            Priority: Minor
>              Labels: cqlsh, windows
>             Fix For: 2.2.x, 3.0.x, 3.x
>
>
> If I try to run the {{cqlshlib}} tests on Windows, I got the following error:
> {quote}
> ======================================================================
> ERROR: Failure: AttributeError ('module' object has no attribute 'symlink')
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Python27\lib\site-packages\nose\loader.py", line 414, in 
> loadTestsFromName
>     addr.filename, addr.module)
>   File "C:\Python27\lib\site-packages\nose\importer.py", line 47, in 
> importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "C:\Python27\lib\site-packages\nose\importer.py", line 94, in 
> importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "[...]\pylib\cqlshlib\test\__init__.py", line 17, in <module>
>     from .cassconnect import create_test_db, remove_test_db
>   File "[...]\pylib\cqlshlib\test\cassconnect.py", line 22, in <module>
>     from .basecase import cql, cqlsh, cqlshlog, TEST_HOST, TEST_PORT, rundir
>   File "[...]\pylib\cqlshlib\test\basecase.py", line 43, in <module>
>     os.symlink(path_to_cqlsh, modulepath)
> AttributeError: 'module' object has no attribute 'symlink'
> ----------------------------------------------------------------------
> Ran 1 test in 0.002s
> FAILED (errors=1)
> {quote}
> The problem comes from the fact tha Windows has no support for symlinks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to