From d7d4d9709802f1fd4f4e92893abfe6d2ba007cf0 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 23 Nov 2025 23:00:55 -0800 Subject: [PATCH] debug: verify JARs contain latest code before running tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CRITICAL ISSUE: Our constructor logs aren't appearing! Adding verification step to check if SeaweedOutputStream JAR contains the new 'BASE constructor called' log message. This will tell us: 1. If verification FAILS → Maven is building stale JARs (caching issue) 2. If verification PASSES but logs still don't appear → Docker isn't using the JARs 3. If verification PASSES and logs appear → Fix is working! Using 'strings' on the .class file to grep for the log message. --- .github/workflows/spark-integration-tests.yml | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spark-integration-tests.yml b/.github/workflows/spark-integration-tests.yml index 1dcc6e951..66ea0a528 100644 --- a/.github/workflows/spark-integration-tests.yml +++ b/.github/workflows/spark-integration-tests.yml @@ -114,7 +114,27 @@ jobs: echo "Copying Maven artifacts for Docker container..." mkdir -p .m2/repository/com cp -r ~/.m2/repository/com/seaweedfs .m2/repository/com/ - echo "OK Maven artifacts ready" + echo "OK Maven artifacts copied" + + echo "" + echo "=== VERIFYING NEW CODE IS IN JARS ===" + # Check if SeaweedOutputStream contains our new constructor log + JAR_PATH=".m2/repository/com/seaweedfs/seaweedfs-client/3.80.1-SNAPSHOT/seaweedfs-client-3.80.1-SNAPSHOT.jar" + if [ -f "$JAR_PATH" ]; then + if unzip -p "$JAR_PATH" seaweedfs/client/SeaweedOutputStream.class | strings | grep -q "SeaweedOutputStream BASE constructor called"; then + echo "OK SeaweedOutputStream contains new constructor log" + else + echo "ERROR SeaweedOutputStream JAR is STALE - does not contain constructor log!" + echo "Listing JAR contents:" + unzip -l "$JAR_PATH" | grep SeaweedOutputStream + exit 1 + fi + else + echo "ERROR JAR not found at $JAR_PATH" + ls -la .m2/repository/com/seaweedfs/seaweedfs-client/3.80.1-SNAPSHOT/ + exit 1 + fi + echo "OK Maven artifacts ready and verified" - name: Run Spark integration tests working-directory: test/java/spark