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

Michael Semb Wever edited comment on CASSANDRA-18321 at 12/22/25 9:42 AM:
--------------------------------------------------------------------------

Patches:
- ccm: https://github.com/apache/cassandra-ccm/pull/799 (reviewed)
  - will include: https://github.com/apache/cassandra-ccm/pull/798 (reviewed)
- dtest: https://github.com/apache/cassandra-dtest/pull/283 (NEEDS reviewer)

CI results are in PRs.

These changes will cause a compatibility break:  the new dtest HEAD sha won't 
work with older versions of ccm, and all older shas of dtest won't work with 
the new ccm HEAD sha.  As neither are pinned anywhere (where they are used in 
combination) nothing will be done about this.


was (Author: michaelsembwever):
Patches:
- ccm: https://github.com/apache/cassandra-ccm/pull/799
  - will include: https://github.com/apache/cassandra-ccm/pull/798
- dtest: https://github.com/apache/cassandra-dtest/pull/283

CI results are in PRs.

These changes will cause a compatibility break:  the new dtest HEAD sha won't 
work with older versions of ccm, and all older shas of dtest won't work with 
the new ccm HEAD sha.  As neither are pinned anywhere (where they are used in 
combination) nothing will be done about this.

> distutils Version classes are deprecated. Use packaging.version instead.
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18321
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18321
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Test/dtest/python, Tool/CCM
>            Reporter: Ekaterina Dimitrova
>            Priority: Low
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Lately I see a lot in Python DTests the below warning:
> {code:java}
> DeprecationWarning: distutils Version classes are deprecated. Use 
> packaging.version instead.{code}
> Example from running  
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown with trunk:
>  
> {code:java}
> dtest.py:48
>   /cassandra-dtest/dtest.py:48: DeprecationWarning: distutils Version classes 
> are deprecated. Use packaging.version instead.
>     MAJOR_VERSION_4 = LooseVersion('4.0')
>  
> ../../dtest/lib/python3.8/site-packages/ccmlib/common.py:773
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
>   /dtest/lib/python3.8/site-packages/ccmlib/common.py:773: 
> DeprecationWarning: distutils Version classes are deprecated. Use 
> packaging.version instead.
>     return LooseVersion(match.group(1))
>  
> auditlog_test.py: 42 warnings
>   /dtest/lib/python3.8/site-packages/setuptools/_distutils/version.py:346: 
> DeprecationWarning: distutils Version classes are deprecated. Use 
> packaging.version instead.
>     other = LooseVersion(other)
>  
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
>   /cassandra-dtest/conftest.py:437: DeprecationWarning: distutils Version 
> classes are deprecated. Use packaging.version instead.
>     since = LooseVersion(since_str_or_list)
>  
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
>   /dtest/lib/python3.8/site-packages/ccmlib/common.py:481: 
> DeprecationWarning: distutils Version classes are deprecated. Use 
> packaging.version instead.
>     version = LooseVersion(str(version))
>  
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ===Flaky Test Report===
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to