Fleet changelogs · dev.ecs0.net
rdmsm4x-changelog-20260905-1142-ramdisk-m4-it7-settling-probe-isolation

rdmsm4x-changelog-20260905-1142-ramdisk-m4-it7-settling-probe-isolation

Settling probe hardening, APFS synthesized container discovery, and multi-run test isolation implemented and verified across macOS-ramDisk-app on canonical rdmsm4x.

Scope

Changes Made

  1. Sources/RAMDiskCore/StoragePrimitive.swift:
    • Settling probe: verify FileManager.default.fileExists(atPath: cleanDev) before querying size. Add fallback probe with 200ms backoff if device node is present but settling. Add 2.0s settling pause before retrying eraseDisk if error contains "Could not find disk".
    • Post-mount collision rejection: dynamically extend verifyDeadline = max(verifyDeadline, Date().addingTimeInterval(5.0)), add 150ms pause after clearMountPathStub, and pass -mountPoint targetMountPath if directory exists (falling back to bare diskutil mount <volumeDev> if absent).
    • resolveAllDeviceEntities: query diskutil apfs list -plist to discover synthesized APFS containers and volumes mapped to the RAM disk physical store (PhysicalStores), ensuring child APFS containers are unmounted and ejected before parent disk ejection.
  2. Tests/E2ETests/e2e_framework.py:
    • Added post-drain verification and emergency fallback loop in ensure_unmounted().
  3. Tests/E2ETests/run_e2e_tests.sh:
    • Added pre-tier and post-tier verification barriers in run_tier().
    • Added post-suite cleanup_ramdisks.

Verification Evidence