[
https://issues.apache.org/jira/browse/CASSANDRA-18476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717065#comment-17717065
]
Jakub Zytka commented on CASSANDRA-18476:
-----------------------------------------
OK, so this report is invalid.
Multiple things happened though:
First, the ant task should probably be `test-jvm-dtest-some`. That's
counterintuitive because more generic name (i.e. testsome) should provide more
generic functionality, whereas `testsome` is supposedly for unit tests.
Then, a C* testing manual I used has a typo, and uses `test.method` property
rather than `test.methods`. This is, unfortunately, but somewhat expectedly,
not caught by ant. This wasn't caught in the manual for quite some time. As a
result the ant invocation runs the whole test instead of a single test case.
The stdout of ant run does not indicate which testcase is being run, so
together with the assumption that the logs start with the specified testcase
things get weird (especially when testcases have similar scenarios). In this
particular instance, I once got fooled that ConfigUpdater is not being run for
a given testcase.
Finally, there is no reasonable way to associate test logs (build/test/logs/...
or the ones in XML files) with specific testcases unless the testcases
themselves advertise their beginning and end. In particular, the cluster ids
cannot be matched to any testcase, and until very recently (Apr 25,
[8b0dc8ad6b5e657cf5946eaed17da0fdabaa53f4|https://github.com/apache/cassandra/commit/8b0dc8ad6b5e657cf5946eaed17da0fdabaa53f4])
the cluster id was never even logged anywhere.
To fix the above problem I reported CASSANDRA-18483
> NativeTransportEncryptionOptionsTest fails with ant testsome, passes in
> intellij
> --------------------------------------------------------------------------------
>
> Key: CASSANDRA-18476
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18476
> Project: Cassandra
> Issue Type: Bug
> Components: CI
> Reporter: Jakub Zytka
> Assignee: Jakub Zytka
> Priority: Normal
> Attachments: ant-logs.txt, intellij-logs.txt
>
>
> environment:
> linux, java 11:
>
> {{$ set|grep JAVA}}
> {{JAVA11_HOME=/home/jakub/.sdkman/candidates/java/11.0.11.hs-adpt}}
> {{JAVA_HOME=/home/jakub/.sdkman/candidates/java/current}}
> {{$ which java}}
> {{/home/jakub/.sdkman/candidates/java/current/bin/java}}
> {{$ java -version}}
> {{openjdk version "11.0.11" 2021-04-20}}
> {{OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)}}
> {{OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed
> mode)}}
> repro steps:
> # clone cassandra (trunk HEAD as of writing this report:
> 8df072e104f6ae5391de12d58e9f973f08cb2c57)
> # {{ant testsome
> -Dtest.name=org.apache.cassandra.distributed.test.NativeTransportEncryptionOptionsTest
> -Dtest.method=optionalTlsConnectionAllowedToRegularPortTest}} fails after
> ~2m30s (see attached ant-logs.txt)
> # {{ant generate-idea-files}}
> # open project in idea, navigate to
> {{{}NativeTransportEncryptionOptionsTest{}}}, right click on
> {{optionalTlsConnectionAllowedToRegularPortTest}} and {{{}Run test{}}}; the
> test passes after ~12s (see attached intellij-logs.txt)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]