From af924a91d09f4a804232a296603df5ac65eaf54e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 22 Oct 2026 07:35:45 -0700 Subject: [PATCH] ci: fail the posix workflow when the mount point is not a FUSE mount The file write/read check passes on the plain directory created before weed mount, so a dead mount let the whole suite grade the local disk. --- .github/workflows/posix-compliance.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/posix-compliance.yml b/.github/workflows/posix-compliance.yml index cf06835ce6..33873ff6b6 100644 --- a/.github/workflows/posix-compliance.yml +++ b/.github/workflows/posix-compliance.yml @@ -285,12 +285,15 @@ jobs: exit 1 fi - # Check if this is actually a FUSE mount + # Check if this is actually a FUSE mount — the plain directory created + # above passes the file test, so without this the suite can run + # against the local disk and report a pass it never earned if mount | grep -q "$SEAWEEDFS_MOUNT_POINT"; then echo "✅ FUSE mount detected:" mount | grep "$SEAWEEDFS_MOUNT_POINT" else - echo "⚠️ Warning: Mount point not found in mount table" + echo "❌ Mount point not found in mount table - refusing to test a local directory" + exit 1 fi - name: Run POSIX compliance tests