Commit Graph

43 Commits

Author SHA1 Message Date
Mick Semb Wever 865954fd99
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Missing license info and headers
2023-08-31 22:43:33 +02:00
Mick Semb Wever aa2494b30b
Merge branch 'cassandra-3.11' into cassandra-4.0
* cassandra-3.11:
  Missing license info and headers
2023-08-31 22:39:56 +02:00
Mick Semb Wever ce49e775f7
Missing license info and headers
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-18807
2023-08-31 22:30:42 +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
Brandon Williams eb6a45fe6d Merge branch 'cassandra-3.11' into cassandra-4.0 2023-06-01 15:02:22 -05:00
Brandon Williams 527c0cb3a0 remove dh_python use from Debian packaging
Patch by brandonwilliams; reviewed by mck for CASSANDRA-18558
2023-06-01 15:00:03 -05:00
Brandon Williams cf0be97894 Revert "Update debian packaging to python3"
This reverts commit 8c43f510a3.
2021-03-09 17:23:43 -06:00
Mick Semb Wever e2b5c0f7ef
Merge branch 'cassandra-3.11' into trunk 2021-02-27 17:07:50 +01:00
Brandon Williams 8c43f510a3
Update debian packaging to python3
patch by Brandon Williams; reviewed by Mick Semb Wever for CASSANDRA-16396
2021-02-27 17:00:09 +01:00
Stefan Miklosovic ecf2c9ccd4
Add fqltool and auditlogviewer to rpm and deb packages
patch by Stefan Miklosovic; reviewed by Mick Semb Wever for CASSANDRA-14712
2020-06-03 18:31:26 +02:00
Michael Shuler f424e03a44 Switch Debian packaging to quilt patches
Future Debian package patching guide:
  https://wiki.debian.org/UsingQuilt#Making_a_new_patch
  https://wiki.debian.org/UsingQuilt#Editing_an_existing_patch

Patch by Michael Shuler; Reviewed by Jon Haddad for CASSANDRA-14707
2018-09-08 15:48:13 -05:00
Paulo Motta 6034c268c3 Merge branch 'cassandra-3.11' into trunk 2018-02-10 15:03:59 -02:00
Paulo Motta 1602e60634 Merge branch 'cassandra-2.1' into cassandra-2.2 2018-02-10 14:54:56 -02:00
Sylvain Lebresne 4881d9c308 Thrift removal
patch by Sylvain Lebresne; reviewed by Aleksey Yeschenko for CASSANDRA-11115
2016-12-13 10:27:12 +01:00
Stefania Alborghetti 38e973d08f Merge branch 'cassandra-2.1' into cassandra-2.2 2016-04-29 08:17:21 +08:00
Michael Shuler 86c5a00c23 deb package migration to dh_python2, added missing debian rules
Patch by Michael Shuler; reviewed by tjake for CASSANDRA-10853
2016-04-29 08:16:02 +08:00
Robert Stupp 0ee8895b27 Show CQL help in cqlsh in web browser
patch by Robert Stupp; reviewed by Paulo Motta for CASSANDRA-7225
2015-11-27 15:24:51 +01:00
T Jake Luciani ebc50d7835 Remove tools/lib from deb rules 2015-07-06 13:38:30 -04:00
Brandon Williams 4539237ab6 Merge branch 'cassandra-2.0' into cassandra-2.1
Conflicts:
	debian/rules
2014-10-03 12:37:28 -05:00
Brandon Williams 8952d6ca92 Set base C* version in debs and strip -N, ~textN, +textN
Patch by Michael Shuler, reviewed by brandonwilliams for CASSANDRA-8046
2014-10-03 12:36:44 -05:00
Jake Luciani 192468f7a2 Ninja fix debian rules to handle versions with -N package convention 2014-09-22 15:32:36 -04:00
Sylvain Lebresne a932b62eae Include stress yaml examples in release and deb
patch by tjake and mshuler; reviewed by mshuler and slebresne for CASSANDRA-7717
2014-08-08 12:49:25 +02:00
Tyler Hobbs 60be74230e Use $CASSANDRA_HOME for default paths instead of /var
Patch by Tyler Hobbs; reviewed by Brandon Williams and Joshua McKenzie
for CASSANDRA-7136
2014-06-05 15:38:41 -05:00
Jonathan Ellis 0fdf2ddbf0 Add tab-completion to debian nodetool packaging
patch by Cyril Scetbon; reviewed by mshuler for CASSANDRA-6421
2014-05-21 17:23:33 -05:00
Sylvain Lebresne e786101eba Merge branch 'cassandra-2.0' into cassandra-2.1 2014-05-01 18:00:03 +02:00
Sylvain Lebresne d5a9c9254f Update debian packaging following README extension change 2014-05-01 17:59:35 +02:00
Brandon Williams 7bd23316e9 Add new stress deps to packaging.
Patch by Michael Shuler, reviewed by brandonwilliams for CASSANDRA-6762
2014-02-25 15:51:25 -06:00
Brandon Williams bdd24ccc86 Add stress and deps to debian packaging.
Patch by Michael Shuler, reviewed by brandonwilliams for CASSANDRA-6762
2014-02-25 10:44:27 -06:00
Sylvain Lebresne 3558e45ab6 Rename stress to cassandra-stress and include in debian packaging
patch by Nick Bailey; reviewed by thepaul for CASSANDRA-4256
2012-05-21 19:28:19 +02:00
paul cannon 8a5436a2b6 add cqlsh to Debian package 2012-01-29 19:09:34 -06:00
Sylvain Lebresne 9f320143da Revert #3458 until #3507 is settled 2012-01-04 17:42:36 +01:00
Eric Evans d2eaaa06a1 add cqlsh to debian packaging
Patch by paul cannon (w/ minor changes); reviewed by eevans for CASSANDRA-3458

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-1.0@1221909 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 22:19:37 +00:00
Brandon Williams cbca39135c Increase vm.max_map_count in debian packages.
Patch by brandonwilliams and Paul Cannon, reviewed by Paul Cannon for CASSANDRA-3563

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-1.0@1211662 13f79535-47bb-0310-9956-ffa450edef68
2011-12-07 21:58:53 +00:00
Jonathan Ellis f491265fc5 merge from 0.8
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1137777 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 20:54:24 +00:00
Jonathan Ellis ae7dbe3d2a merge from 0.8
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1125113 13f79535-47bb-0310-9956-ffa450edef68
2011-05-19 21:19:30 +00:00
Brandon Williams 85ea33912e Fix for dh_installinit syntax for CASSANDRA-2481
Patch by Paul Cannon, reviewed by brandonwilliams

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1124338 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 17:10:14 +00:00
Brandon Williams 290c6f7d6f Start/stop cassandra after more important services such as mdadm in
debian packaging.
Patch by Paul Cannon, reviewed by brandonwilliams for CASSANDRA-2481

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1102456 13f79535-47bb-0310-9956-ffa450edef68
2011-05-12 20:46:14 +00:00
Jonathan Ellis 8897ad5ac7 merge from 0.8
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1098754 13f79535-47bb-0310-9956-ffa450edef68
2011-05-02 19:20:44 +00:00
Jonathan Ellis e8b310655d merge from 0.6
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@988374 13f79535-47bb-0310-9956-ffa450edef68
2010-08-24 02:10:54 +00:00
Eric Evans 3d11cbbf8f update debian packaging to trunk
Patch by Peter Schüller; reviewed by eevans

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@948100 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 16:55:43 +00:00
Jonathan Ellis 78cbce144c merge from 0.6
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@939110 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 22:00:46 +00:00
Eric Evans 7b75716d42 merge with 0.6 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@915433 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 17:01:53 +00:00
Eric Evans dabb5c94fd merging w/ 0.5 branch
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@903504 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 23:56:57 +00:00