[ https://issues.apache.org/jira/browse/CASSANDRA-15309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16959494#comment-16959494 ]
Vinay Chella commented on CASSANDRA-15309: ------------------------------------------ Fixed broken JAVA8_HOME in upgrade tests configurations. Branch with fixes is [here|https://github.com/vinaykumarchella/cassandra/tree/CASSANDRA_15309] Successful upgrade Tests: [CircleCI tests|https://circleci.com/workflow-run/bc17668a-becc-46c4-bc70-cad21e75e968] > Make the upgrade tests run on trunk > ----------------------------------- > > Key: CASSANDRA-15309 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15309 > Project: Cassandra > Issue Type: Bug > Components: Test/dtest > Reporter: Joey Lynch > Assignee: Vinay Chella > Priority: Normal > Fix For: 4.0-alpha > > > It appears that the upgrade tests (j8_upgradetests-no-vnodes circleci target) > don't really work on trunk right now, it appears to be a java home issue > potentially. Example run: https://circleci.com/gh/jolynch/cassandra/553 > {noformat} > Your job ran 4412 tests with 3923 failures > - test_IN_clause_on_last_key - > upgrade_tests.cql_tests.TestCQLNodes2RF1_Upgrade_current_2_1_x_To_indev_2_1_xupgrade_tests/cql_tests.pymajor_version_int > = 8 > def switch_jdks(major_version_int): > """ > Changes the jdk version globally, by setting JAVA_HOME = JAVA[N]_HOME. > This means the environment must have JAVA[N]_HOME set to switch to > jdk version N. > """ > new_java_home = 'JAVA{}_HOME'.format(major_version_int) > > try: > > os.environ[new_java_home] > upgrade_tests/upgrade_base.py:25: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > self = environ({'PYTHONUNBUFFERED': 'true', 'DEFAULT_DIR': > '/home/cassandra/cassandra-dtest', 'CIRCLE_NODE_INDEX': '47', > 'CIR...ade_tests/cql_tests.py::TestCQLNodes2RF1_Upgrade_current_2_1_x_To_indev_2_1_x::()::test_IN_clause_on_last_key > (call)'}) > key = 'JAVA8_HOME' > def __getitem__(self, key): > try: > value = self._data[self.encodekey(key)] > except KeyError: > # raise KeyError with the original key value > > raise KeyError(key) from None > E KeyError: 'JAVA8_HOME'{noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org