You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Berenguer Blasi (Jira)" <ji...@apache.org> on 2021/05/03 10:41:00 UTC

[jira] [Commented] (CASSANDRA-16648) Add 4_0_x to Python DTest's upgrade_manifest (after cassandra-4.0 branch was created)

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

Berenguer Blasi commented on CASSANDRA-16648:
---------------------------------------------

[~mck] I've only managed to get where you are and a bit furtehr. If you setup upgrade tests locally and try to run cqlsh tests you get:

{noformat}
nosetests -vs upgrade_tests/cql_tests.py
Failure: AttributeError ('NoneType' object has no attribute 'getoption') ... ERROR

======================================================================
ERROR: Failure: AttributeError ('NoneType' object has no attribute 'getoption')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bereng/work/repos/bdpWS/dtests/lib/python3.8/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/home/bereng/work/repos/bdpWS/dtests/lib/python3.8/site-packages/nose/loader.py", line 417, in loadTestsFromName
    module = self.importer.importFromPath(
  File "/home/bereng/work/repos/bdpWS/dtests/lib/python3.8/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/bereng/work/repos/bdpWS/dtests/lib/python3.8/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.8/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.8/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/bereng/work/repos/bdpWS/dtests/upgrade_tests/cql_tests.py", line 5525, in <module>
    for s, p in itertools.product(topology_specs, build_upgrade_pairs())]
  File "/home/bereng/work/repos/bdpWS/dtests/upgrade_tests/upgrade_manifest.py", line 205, in build_upgrade_pairs
    configured_strategy = CONFIG.getoption("--upgrade-version-selection").upper()
AttributeError: 'NoneType' object has no attribute 'getoption'
-------------------- >> begin captured logging << --------------------
dtest: DEBUG: Python driver version in use: 3.24.0
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)

{noformat}

This and the paging are the only 2 ones failing. I have followed the code a bit and I think it's somehow missing to shuffle/read versions correctly. As you mentioned me you intended to look into this today I'd thought I'd drop this in case it helps. Now it's a matter of unraveling this last bit and it should be good imo.

> Add 4_0_x to Python DTest's upgrade_manifest (after cassandra-4.0 branch was created)
> -------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16648
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16648
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: Test/dtest/python
>            Reporter: Michael Semb Wever
>            Assignee: Michael Semb Wever
>            Priority: Normal
>
> Python DTest upgrade manifest:
>  - https://github.com/apache/cassandra-dtest/compare/trunk...thelastpickle:mck/16642--introduce-cassandra-4.0
>  - https://ci-cassandra.apache.org/job/Cassandra-devbranch-dtest/645/
>  - https://ci-cassandra.apache.org/job/Cassandra-devbranch-dtest-upgrade/273/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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