commit | 4be61d482c9a717fa4ebe2fc4b7d09a230dac68a | [log] [tgz] |
---|---|---|
author | Francisco Guerrero <frankgh@apache.org> | Tue Jul 18 08:29:10 2023 -0700 |
committer | Yifan Cai <ycai@apache.org> | Thu Jul 20 15:01:01 2023 -0700 |
tree | 253245dadb2a178c870471d8289a005681258efb | |
parent | cf796be039b9b08364de11fd7fec8a00cf699616 [diff] |
CASSANDRASC-66 Fix builds in Apache CI Currently, tests running under {{org.apache.cassandra.sidecar.HealthServiceSslTest}} [are failing](https://ci-cassandra.apache.org/job/cassandra~sidecar/42/) when running inside ASF's CI. Logs are showing that some resources (keystore and truststore) are not found. This is causing the tests to fail. In this commit, we read the resource from the stream, which is guaranteed to exist as long as the resource exists and the resource name is correct, then we write the resource to a temporary directory, and use the file name to set the keystore and truststore path as part of the configuration options. patch by Francisco Guerrero; reviewed by Dinesh Joshi, Yifan Cai for CASSANDRASC-66
This is a Sidecar for the highly scalable Apache Cassandra database. For more information, see the Apache Cassandra web site and CIP-1.
This is project is still WIP.
We depend on the Cassandra in-jvm dtest framework for testing. Because these jars are not published, you must manually build the dtest jars before you can build the project.
./scripts/build-dtest-jars.sh
The build script supports two parameters:
REPO
- the Cassandra git repository to use for the source files. This is helpful if you need to test with a fork of the Cassandra codebase.git@github.com:apache/cassandra.git
BRANCHES
- a space-delimited list of branches to build. -default: "cassandra-4.1 trunk"
Remove any versions you may not want to test with. We recommend at least the latest (released) 4.X series and trunk
. See Testing for more details on how to choose which Cassandra versions to use while testing.
After you clone the git repo, you can use the gradle wrapper to build and run the project. Make sure you have Apache Cassandra running on the host & port specified in conf/sidecar.yaml
.
$ ./gradlew run
While setting up cassandra instance, make sure the data directories of cassandra are in the path stored in sidecar.yaml file, else modify data directories path to point to the correct directories for stream APIs to work.
The test framework is set up to run 4.1 and 5.0 (Trunk) tests (see TestVersionSupplier.java
) by default.
You can change this via the Java property cassandra.sidecar.versions_to_test
by supplying a comma-delimited string. For example, -Dcassandra.sidecar.versions_to_test=4.0,4.1,5.0
.
You will need to use the “Add Projects” function of CircleCI to set up CircleCI on your fork. When promoted to create a branch, do not replace the CircleCI config, choose the option to do it manually. CircleCI will pick up the in project configuration.
We warmly welcome and appreciate contributions from the community. Please see CONTRIBUTING.md if you wish to submit pull requests.