From 81867f0dd9c80e1a0ae1b85a3ad973a4aa4e8e2b Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 23 Nov 2025 11:14:45 -0800 Subject: [PATCH] debug: add detailed verification for Maven artifact upload The Maven artifacts are not appearing in the downloaded artifacts! Only 'docker' directory is present, '.m2' is missing. Added verification to show: 1. Does ~/.m2/repository/com/seaweedfs exist? 2. What files are being copied? 3. What SNAPSHOT artifacts are in the upload? 4. Full structure of artifacts/ before upload This will reveal if: - Maven install didn't work (artifacts not created) - Copy command failed (wrong path) - Upload excluded .m2 somehow (artifact filter issue) The next run will show exactly where the Maven artifacts are lost! --- .github/workflows/spark-integration-tests.yml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spark-integration-tests.yml b/.github/workflows/spark-integration-tests.yml index 265b8cca0..b9ac7e5b3 100644 --- a/.github/workflows/spark-integration-tests.yml +++ b/.github/workflows/spark-integration-tests.yml @@ -95,8 +95,29 @@ jobs: echo "Preparing artifacts for upload..." mkdir -p artifacts/docker mkdir -p artifacts/.m2/repository/com + + echo "Copying SeaweedFS binary..." cp docker/weed artifacts/docker/ - cp -r ~/.m2/repository/com/seaweedfs artifacts/.m2/repository/com/ + ls -lh artifacts/docker/weed + + echo "Copying Maven artifacts..." + echo "Source: ~/.m2/repository/com/seaweedfs" + ls -la ~/.m2/repository/com/seaweedfs/ || echo "ERROR: Maven artifacts not found!" + + if [ -d ~/.m2/repository/com/seaweedfs ]; then + cp -r ~/.m2/repository/com/seaweedfs artifacts/.m2/repository/com/ + echo "✓ Maven artifacts copied" + echo "Verifying copied artifacts:" + find artifacts/.m2/repository/com/seaweedfs -name "*3.80.1-SNAPSHOT*" | head -10 + else + echo "ERROR: Maven repository not found at ~/.m2/repository/com/seaweedfs" + echo "Contents of ~/.m2/repository/com:" + ls -la ~/.m2/repository/com/ || echo "Directory doesn't exist" + exit 1 + fi + + echo "Final artifact structure:" + find artifacts -type f | head -20 echo "✓ Artifacts prepared" - name: Upload build artifacts