SPB Git

Repository Public

TEST-REPORT.md 5.0 KB

# Test report — 2026-12-01

No test has been run on a physical iPhone or iPad. The build is on TestFlight but was not installed on a device when this was written. Everything marked "live" below was run with the real app in the iOS simulator (iPhone 17 Pro and iPad Pro 13", iOS 26.5) against the production coordinator through https://storage.spboucher.ai, with real random data. The simulator is a Mac process: it proves the app's logic and the protocol, not iOS's behaviour on hardware.

# Automated suites

Suite Result Command
Coordinator end to end (real process, real files, scripted MSP/1 devices) 54 checks passed node server/test/e2e.ts
iOS unit tests (storage engine, capacity rules, pairing parsing, request signature) 10 tests passed xcodebuild … test

# Matrix of the brief

Case Status Evidence
A device joins the cluster live (simulator) paired with a single-use code; node.paired in the journal
The cluster sees the allocated capacity live quota 2 GB / 5 GB reported; "registered 6.52 GiB" with two nodes
The cluster sends data, the device really keeps it live 3 objects (57, 286, 114 MiB); fragment files present in the app container; every possession proof passed
The cluster gets the data back; digests match live 3 fragments returned on request, SHA-256 checked by the coordinator
A lost stable copy is rebuilt from a device live one stable fragment deleted on m4mn → read answered 503 → fragment pulled from the device → object read back, digest equal
Fragments survive a relaunch live (app killed and relaunched) 8/8 fragments present, inventory clean. Device reboot: not tested
Corrupt fragment on the device live 16 bytes overwritten in a fragment file → detected at the next verification, discarded, clean copy received again
Corrupt / missing stable fragment automated scrub detects, repair from a mobile node (e2e)
Loss of a node live app terminated → node offline after 100 s, capacity counted as offline, objects read back intact
Coordinator restart live, 3 times, once in the middle of 36 transfers all fragments arrived; state intact
Interrupted transfer resumes automated at protocol level (Range download, offset upload). In the live run the transfers interrupted by the restart completed, but no byte-range resume was recorded: not observed on iOS
Graceful drain live 44 fragments handed back and deleted, node drained, device empty, then rejoined
Emergency release live 59 fragments erased at once, coordinator dropped the placements, objects intact
Revocation live node revoked from the cluster → requests refused, app erased its fragments and returned to pairing
Background live on the simulator only app sent to the background during transfers: the 15 fragments of a 114 MiB object all arrived, heartbeat mode background. Suspension by iOS on a device: not tested
Not enough space / quota automated quota never exceeded, quota lowered, node refusing writes (e2e); reserve rules (unit)
Allocation of 10, 50, 100 GB; large transfers not tested (largest run: 5 GB quota, 458 MiB stored)
Wi-Fi loss, Wi-Fi → cellular not tested (needs a device)
Screen lock, low battery, overheating not tested (needs a device); the policy code paths exist and are not exercised
Device reboot, app deletion not tested
Local network path (Bonjour + pinned certificate) not tested: the coordinator announces the service (seen with dns-sd -B on the node) but the test machine was not on the cluster's LAN
QR scan with the camera not tested (no camera in the simulator); typed code tested
Dashboard section deployed; verified by its own tests and against the real coordinator on a local stack; no authenticated call in production (needs the owner's passkey)
TestFlight build 1.0.0 (1) VALID, internal group "Test", account holder invited; installation on a device not done

# Observations

  • Throughput and timings: see BENCHMARKS.md.
  • During the first live run the integrity rate stayed at 100 % although a corruption had been found: a corruption reported by the device itself was not counted. Fixed the same day (it now counts as a failed check and is journaled).
  • Fragments were sent again after the corruption test and after the drain; one task.failed was journaled during the corruption test.

# First things to do with a real device

  1. Install from TestFlight, pair by QR code from clustr.spboucher.ai → Mobile Storage Nodes → Add a device.
  2. Put a large object (mlstore put), watch Activity; check the local network line in Settings → Connection diagnostic.
  3. Lock the screen, switch to cellular, reboot, run a night on power: note what continued, in this file.
  4. Run Settings → Storage benchmark and copy the result into BENCHMARKS.md.
Files main
Menu

Theme