Browse Source

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!
pull/7526/head
chrislu 4 weeks ago
parent
commit
81867f0dd9
  1. 23
      .github/workflows/spark-integration-tests.yml

23
.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

Loading…
Cancel
Save