test(api): stale upload-session end-to-end acceptance — spec 070 T004 #1521
Loading…
Reference in a new issue
No description provided.
Delete branch "test/stale-upload-session-acceptance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Covers the spec 070 T004 acceptance scenario as a backend integration test instead of a live-instance script (supersedes the throwaway acceptance-t004.sh against the review instance).
One test in UploadActivityTest —
clientDeathMidUploadEndsStaleAndRemainsDiscardable— mirrors the 2026-11-15 review-instance incident (session cb142fcd, battery-drained phone) end to end against real PostgreSQL (Testcontainers, existing fixture):receiving, updated_at refreshed per file (the activity-tracking touch is exercised, not assumed).schedulerAtpattern).markStaleSessions()→ DB statusstale, updated_at refreshed to the job's transition instant.stale(persisted passthrough).cancelled.Verification:
:apps:api:test --tests 'dev.memories.api.upload.*'— 69 tests, 0 failures (UploadActivityTest 29/0 including the new one).Follow-up to #1519; marks spec 070 complete (bookkeeping commit follows with this PR number).