This is an automated email from the ASF dual-hosted git repository. patrick pushed a commit to branch codex/operator-docs-remediation in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit 109489fe8737254fe4dcba6fcc716e8d35d5625c Author: Patrick McFadin <[email protected]> AuthorDate: Fri Mar 27 15:41:36 2026 -0700 enh: add build verification script and update gitignore --- .gitignore | 2 ++ build_verification_results.txt | 3 +++ verify_build.sh | 58 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/.gitignore b/.gitignore index 88e917bbb7..3312a69114 100644 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,5 @@ cassandra-builds/ cassandra-dtest/ conf/triggers/trigger-example.jar + +.brokk/ diff --git a/build_verification_results.txt b/build_verification_results.txt new file mode 100644 index 0000000000..39e29318bb --- /dev/null +++ b/build_verification_results.txt @@ -0,0 +1,3 @@ +Build verification results will be generated by running: + +./verify_build.sh diff --git a/verify_build.sh b/verify_build.sh new file mode 100644 index 0000000000..6d7f96a5de --- /dev/null +++ b/verify_build.sh @@ -0,0 +1,58 @@ +#!/bin/bash +set -x + +echo "=== Environment ===" +echo "PATH=$PATH" +echo "JAVA_HOME=$JAVA_HOME" +java -version 2>&1 || true +javac -version 2>&1 || true + +echo "=== Finding ANT ===" +# Try multiple locations +for ant_path in /usr/bin/ant /usr/local/bin/ant /opt/ant/bin/ant /usr/share/ant/bin/ant; do + if [ -x "$ant_path" ]; then + echo "Found ant at: $ant_path" + ANT_CMD="$ant_path" + break + fi +done + +# If not found by direct path, try which +if [ -z "$ANT_CMD" ]; then + ANT_CMD=$(which ant 2>/dev/null || true) +fi + +# If still not found, search the filesystem +if [ -z "$ANT_CMD" ]; then + ANT_CMD=$(find /usr /opt /home /root -name "ant" -type f -perm /111 2>/dev/null | head -1) +fi + +# Try ant wrapper in project +if [ -z "$ANT_CMD" ] && [ -f "./ant" ]; then + ANT_CMD="./ant" +fi + +echo "ANT_CMD=$ANT_CMD" + +if [ -z "$ANT_CMD" ]; then + echo "ERROR: ant not found anywhere" + exit 1 +fi + +$ANT_CMD -version + +echo "=== Step 1: Grammar Generation ===" +$ANT_CMD gen-cql3-grammar +echo "Grammar generation: SUCCESS" + +echo "=== Step 2: Check gen-java ===" +ls src/gen-java/org/apache/cassandra/cql3/ 2>/dev/null || true + +echo "=== Step 3: Full Build ===" +$ANT_CMD build +echo "Build: SUCCESS" + +echo "=== Step 4: Find concrete AccordCQL test classes ===" +find test/distributed -name "*.java" | xargs grep -l "extends AccordCQLTestBase" 2>/dev/null || true + +echo "=== Verification complete ===" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
