This is an automated email from the ASF dual-hosted git repository. dcapwell pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push: new f2dd1adccd Accords gradle build fails due to ephemeral issues with rat and checkstyle f2dd1adccd is described below commit f2dd1adccd4ce34251b98f010929f431a9307616 Author: David Capwell <dcapw...@apache.org> AuthorDate: Fri May 2 11:27:50 2025 -0700 Accords gradle build fails due to ephemeral issues with rat and checkstyle patch by David Capwell; reviewed by Michael Semb Wever for CASSANDRA-20590 --- .build/build-accord.xml | 8 +++++++- .build/build-rat.xml | 1 + .build/rat-include-accord.sh | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/.build/build-accord.xml b/.build/build-accord.xml index 6fc716d2d0..0d16197c6b 100644 --- a/.build/build-accord.xml +++ b/.build/build-accord.xml @@ -27,10 +27,16 @@ <arg value="publishToMavenLocal" /> <arg value="-x" /> <arg value="test" /> - <!-- since so much development is done from this hook, by adding checkstyle and rat will avoid issues earlier --> + <!-- Disable rat/checkstyle as C*'s logic will include the accord source --> + <arg value="-x" /> <arg value="rat" /> + <arg value="-x" /> <arg value="checkstyleMain" /> + <arg value="-x" /> <arg value="checkstyleTest" /> + <arg value="-x" /> + <arg value="javadoc" /> + <arg value="--stacktrace" /> <arg value="-Paccord_group=org.apache.cassandra" /> <arg value="-Paccord_artifactId=cassandra-accord" /> <arg value="-Paccord_version=${version}" /> diff --git a/.build/build-rat.xml b/.build/build-rat.xml index 9333d2b8da..32bf3d7369 100644 --- a/.build/build-rat.xml +++ b/.build/build-rat.xml @@ -30,6 +30,7 @@ <exec executable="git" failifexecutionfails="false" failonerror="false" resultproperty="git.success" output="${build.dir}/.ratinclude"> <arg line="ls-tree -r HEAD --name-only"/> </exec> + <exec executable="${build.helpers.dir}/rat-include-accord.sh" failifexecutionfails="false" failonerror="false" resultproperty="git.success" output="${build.dir}/.ratinclude" append="true" /> <condition property="rat.skip" value="true"> <not> <equals arg1="${git.success}" arg2="0"/> diff --git a/.build/rat-include-accord.sh b/.build/rat-include-accord.sh new file mode 100755 index 0000000000..3c4945c5e4 --- /dev/null +++ b/.build/rat-include-accord.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#set -o xtrace +set -o errexit +set -o pipefail +set -o nounset + +home="$(cd "$(dirname "$0")"/.. > /dev/null; pwd)" + +git --git-dir="$home"/modules/accord/.git ls-tree -r HEAD --name-only | sed 's;^;modules/accord/;' --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org