Commit Graph

283 Commits

Author SHA1 Message Date
Stefan Miklosovic 50960a2e7e
Remove 4.0 upgrade paths and related 4.0 tests
patch by Stefan Miklosovic; reviewed by Michael Semb Wever for CASSANDRA-21324
2026-06-02 23:54:38 +02:00
Stefan Miklosovic c5d01299b0
Include cassandra-6.0 in build/run-tests.sh and .circleci/config.yml
This is the continuation of CASSANDRA-21319 to make branching of cassandra-6.0 done.
The change in .build/run-ci will start to route jobs to cassandra-6.0 pipeline in pre-ci.

patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-21319
2026-04-20 17:22:37 +02:00
Andy Tolbert f80a234d1e Migrate sstableloader code to its own tools directory and artifact
As part of a broader effort to decouple java driver code from the
server code, this moves sstableloader to its own tools directory.

As sstableloader is also used as a library (CASSANDRA-10637), added
a new artifact 'cassandra-sstableloader' that will get deployed to
maven along with 'cassandra-all'.

While I expect this is likely a niche use case, this will allow users
to continue using BulkExport as a library.

Moves sstableloader-specific targets to its own build.xml in
tools/sstableloader/build.xml.

Also updates IDE project files and circleci to utilize new
sstableloader-specific targets.

patch by Andy Tolbert; reviewed by Stefan Miklosovic and Mick Semb Wever for CASSANDRA-20328
2025-05-18 12:35:52 -05:00
Bereng 32b146dc63 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Minor bugs in generate.sh -d
2024-03-20 08:08:39 +01:00
Bereng c3a18e36d1 Minor bugs in generate.sh -d
patch by Berenguer Blasi; reviewed by Ekaterina Dimitrova for CASSANDRA-19458
2024-03-20 08:06:29 +01:00
Branimir Lambov 28efb63df5 Merge branch 'cassandra-5.0' into trunk 2024-03-07 13:19:16 +02:00
Branimir Lambov 06ed1afc34 Add an optimized default configuration to tests and make it available for new users
This patch adds a new configuration file, cassandra_latest.yaml, which changes
some of the settings to use new features we usually recommend to users,
including:
- Big Trie-Indexed SSTables
- Trie memtables
- Unified Compaction Strategy
- Storage Attached Index
- Off-heap objects memtables
- Direct-write commit log
- No storage compatibility

These changes are applied in new test targets for unit, in-jvm and python dtests that are
run pre-commit. When changes are made to the new config file, python dtest will use it
directly, but unit and in-jvm dtests require updates, respectively, to latest_diff.yaml
and InstanceConfig.java.

patch by Branimir Lambov; reviewed by Berenguer Blasi for CASSANDRA-18753
2024-03-07 11:08:44 +02:00
Bereng c26be50107 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Skinny dev circle workflow
2024-02-28 08:01:36 +01:00
Bereng ab25cae4c5 Skinny dev circle workflow
patch by Berenguer Blasi; reviewed by Ekaterina Dimitrova, Stefan Miklosovic for CASSANDRA-19414
2024-02-28 07:59:35 +01:00
Bereng 81e253b166 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Bug in generate.sh removal of jobs
2024-02-26 07:50:12 +01:00
Bereng 939fbfa63f Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Bug in generate.sh removal of jobs
2024-02-26 07:48:45 +01:00
Bereng 612c9638dc Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Bug in generate.sh removal of jobs
2024-02-26 07:45:58 +01:00
Bereng dee7947422 Bug in generate.sh removal of jobs 2024-02-26 07:43:40 +01:00
Brandon Williams 997302d8a9 Merge branch 'cassandra-5.0' into trunk 2024-02-02 07:26:03 -06:00
Brandon Williams 9fe32fa8b5 Merge branch 'cassandra-4.1' into cassandra-5.0 2024-02-02 07:25:29 -06:00
Brandon Williams cd7ff04e72 Merge branch 'cassandra-4.0' into cassandra-4.1 2024-02-02 07:24:51 -06:00
Brandon Williams 1e450dbb1a Merge branch 'cassandra-3.11' into cassandra-4.0 2024-02-02 07:24:13 -06:00
Brandon Williams 653337ed06 Merge branch 'cassandra-3.0' into cassandra-3.11 2024-02-02 07:23:02 -06:00
Brandon Williams 0bc95bbebd Set log-cli-level to DEBUG in circle config
Patch by brandonwilliams; reviewed by edimitrova for CASSANDRA-19350
2024-02-02 07:21:53 -06:00
Andrés de la Peña 03f0d37cb0 Merge branch 'cassandra-5.0' into trunk 2024-01-19 17:33:55 +00:00
Andrés de la Peña 8fd44ca8fc Upgrade Python driver to 3.29.0
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-19245
2024-01-19 17:14:57 +00:00
Jacek Lewandowski d91997cb04 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Fix repeated tests on CircleCI and long-testsome/burn-testsome targets
2023-12-01 19:40:47 +01:00
Jacek Lewandowski b48fdc7cf2 Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Fix repeated tests on CircleCI and long-testsome/burn-testsome targets
2023-12-01 19:40:46 +01:00
Marcus Eriksson d464c206e1 Revert bad dtest repo in circleci conf 2023-11-24 15:01:15 +01:00
Sam Tunnicliffe ae0842372f Implementation of Transactional Cluster Metadata as described in CEP-21
An overview of the core components can be found in the included
TransactionalClusterMetadata.md

patch by Alex Petrov, Marcus Eriksson and Sam Tunnicliffe; reviewed by
Alex Petrov, Marcus Eriksson and Sam Tunnicliffe for CASSANDRA-18330

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2023-11-24 10:26:08 +00:00
Andrés de la Peña a77951ec0c Merge branch 'cassandra-5.0' into trunk 2023-11-14 11:48:35 +00:00
Andrés de la Peña b91c0fcb6e Change cqlsh's min required Python version from 3.6+ to 3.7+
patch by Andrés de la Peña; reviewed by Brandon Williams for CASSANDRA-18960
2023-11-14 11:43:00 +00:00
Ekaterina Dimitrova e4c97f1925 CircleCI: Fix BASE_BRANCH in generate.sh
patch by Ekaterina Dimitrova; reviewed by Andres de la Pena and Michael Semb Wever for CASSANDRA-18797
2023-08-28 09:24:59 -04:00
Ekaterina Dimitrova c778a76adb Merge branch 'cassandra-4.0' into cassandra-4.1 2023-08-13 17:13:49 -04:00
Ekaterina Dimitrova a69733cd12 Merge branch 'cassandra-3.11' into cassandra-4.0 2023-08-13 17:09:26 -04:00
Ekaterina Dimitrova 430be9d9f6 CircleCI: make all java distributed tests run in Medium containers
patch by Ekaterina Dimitrova; reviewed by Andres de la Pena for CASSANDRA-18503
2023-08-13 16:58:20 -04:00
Mick Semb Wever d3a7387836
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Update trunk to version 5.1
2023-08-14 14:26:08 +02:00
Mick Semb Wever 89fe2223b4
Update trunk to version 5.1
- update jvm-dtest supported upgrade paths
 - update circeci and in-tree scripts to build 5.0 dtest jar
 - update in-tree scripts for better repetitive testing of jvm-dtest-upgrade tests
 - fix jvm-dtest-upgrade tests that broke with 5.0 -> 5.1 upgrades
 - update docs trunk -> 5.0

 patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-18705
2023-08-14 14:25:19 +02:00
Ekaterina Dimitrova 9f2005cd57 Merge branch 'cassandra-5.0' into trunk 2023-08-13 17:28:16 -04:00
Ekaterina Dimitrova 56b332b4cf Merge branch 'cassandra-4.1' into cassandra-5.0 2023-08-13 17:21:56 -04:00
Ekaterina Dimitrova a3e7558ebb Merge branch 'cassandra-4.0' into cassandra-4.1 2023-07-28 15:16:27 -04:00
Ekaterina Dimitrova 31f65c12de Merge branch 'cassandra-3.11' into cassandra-4.0 2023-07-28 14:38:08 -04:00
Ekaterina Dimitrova bee215cce6 Merge branch 'cassandra-3.0' into cassandra-3.11 2023-07-28 14:35:16 -04:00
Ekaterina Dimitrova 39db44adff Fix dtest-jar
patch by Ekaterina Dimitrova; reviewed by Brandon Williams for CASSANDRA-15255
2023-07-28 14:31:17 -04:00
Ekaterina Dimitrova 5722191a38 Fix generate.sh and remove dead J8 config files
patch by Ekaterina Dimitrova; reviewed by Brandon Williams for CASSANDRA-18255
2023-07-25 12:20:08 -04:00
Ekaterina Dimitrova 3755934e52 Drop JDK8 and add JDK17, remove eclipse-warnings in favor of Checker Framework and upgrade checkstyle
patch by Ekaterina Dimitrova; reviewed by Jeremiah Jordan, Berenguer Blasi, Michael Semb Wever and Jacek Lewandowski for CASSANDRA-18255
2023-07-24 15:16:53 -04:00
Jacek Lewandowski ad26ffcd57 Run checks in a separate task and fix build warnings
Patch by Jacek Lewandowski; reviewed by Mick Semb Wever and Stefan Miklosovic for CASSANDRA-18618
2023-07-21 05:57:37 +02:00
Mick Semb Wever f5df4b219e
Move build and test scripts in-tree, under .build/
See .build/README.md  .Build and test scripts cover all CI activities in an CI agnostic manner. Scripts are found in non-docker and dockerised variants.

The non-docker scripts are found first under .build/ .These interact directly with ant, providing additional checks and environment setup. It is intended that what can be pushed down into the base ant build layer should be. The
debian and redhat build scripts are hidden under .build/docker because they are generally not usuable outside of their corresponding linux dists, and we don't want to encourage anything to the contrary.  Bring the artifact/deb/rpm
build scripts (and associated docker images) from cassandra-builds repo to the .build directory.  These packaging script for debian and redhat are now separated from the artifacts scripts. An additional build script check-code.sh
has been added that is solely responsible for all linter and code checks (includes owasp dependency checker).  Only JDK11 and JDK17 are supported (as JDK8 is soon to be dropped).  Scripts do not clean (or realclean) so that
scripts can be better pipelined, but `ant jar` was required to be added to circleci and ci-cassandra.a.o cqlsh-tests.  Scripts can define a custom BUILD_DIR (build.dir) which can permit running parrallel builds off the same source
(though not all tests support this, or their support for it has atrophied).  All build and test artifacts, results, and logs are found under build/ (or the BUILD_DIR).  The build local venv and .ccm directories are now also
created under build (or BUILD_DIR).  The test venv, logs and results are wiped each run.  Use a separate mktemp directory each run, under /tmp (respect /tmp responsibility, and python fails when tmpdir is on a docker volume).
Don't set CASSANDRA_HOME when running python dtests (and fail-fast if `ant artifacts` was used to build instead of `ant jar`).

The docker scripts are found lower down under .build/docker/ .These scripts re-used the non-docker scripts inside containers. The docker images are versioned controlled in the same directory as dockerfiles, and tagged by their
md5sums.  When running the docker scripts these docker images will, if not in the local registry, will first be attempted to be pulled from dockerhub and only then fallback to be built locally.  This allows the dockerfiles to be
modified in existing patches and be run in existing CI as-is.  Docker scripts timeout after one hour.  virtualenv-clone is used, re-using the python versioned venvs in the image saves time over creating new ones each run.  The inner-spliting of docker containers has been removed.  It added a lot of complexity, for the most part duplicating the splitting concept, for little performance gain.

Ant target 'generate-unified-test-report' added, used for aggregating test reports and printing a summary.

 patch by Mick Semb Wever; reviewed by Brandon Williams, Josh McKenzie, Maxim Muzafarov, Stefan Miklosovic for CASSANDRA-18133
2023-07-12 12:59:37 +02:00
Andrés de la Peña 83a3316246 CircleCI: Add separate approval step for oa utests on separate workflows
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-18593
2023-06-16 13:06:35 +01:00
Ekaterina Dimitrova 1d961679a0 Switch Java and Python upgrade tests from running on JDK8 to JDK11 in CircleCI
patch by Ekaterina Dimitrova; reviewed by Berenguer Blasi for CASSANDRA-18285
2023-06-14 10:08:19 -04:00
Bereng dcb763ec2c Merge branch 'cassandra-4.1' into trunk
* cassandra-4.1:
  Generate.sh -s param to skip autodetection of tests
2023-06-12 10:03:18 +02:00
Bereng 2973a7bdcd Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Generate.sh -s param to skip autodetection of tests
2023-06-12 10:02:36 +02:00
Bereng c94eb0e37b Merge branch 'cassandra-3.11' into cassandra-4.0
* cassandra-3.11:
  Generate.sh -s param to skip autodetection of tests
2023-06-12 10:01:49 +02:00
Bereng 7de3e61d75 Merge branch 'cassandra-3.0' into cassandra-3.11
* cassandra-3.0:
  Generate.sh -s param to skip autodetection of tests
2023-06-12 10:01:00 +02:00
Bereng c91e2714b9 Generate.sh -s param to skip autodetection of tests
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-18553
2023-06-12 09:58:58 +02:00