Test that follow counts survive a process restart #11

Closed
opened 2026-09-23 10:42:09 +00:00 by anaeem · 2 comments
Owner

Stack, decided by the human (A-q1 in the design note): Python + Flask + SQLite, a single the app module, stdlib first. The spikes this build was blocked on are answered by that line; do not re-ask them.

What. Serves s3 (visible incrementing count) together with a3 ("persistence is assumed to need to survive process restarts") and k1's framing that this must be a "genuine" service with real persistence, not a placeholder.

Acceptance.
An automated test shortens a URL, follows it N times, restarts or reopens the SQLite-backed app process (or simulates this by closing and reopening the DB connection), and asserts the count endpoint still reports N.

Files: tests/test_app.py. Nothing else. The reviewer's exact check reads every backticked token in this body as something the diff must contain, which is why the prose above carries none.

**Stack, decided by the human (A-q1 in the design note):** Python + Flask + SQLite, a single the app module, stdlib first. The spikes this build was blocked on are answered by that line; do not re-ask them. **What.** Serves s3 (visible incrementing count) together with a3 ("persistence is assumed to need to survive process restarts") and k1's framing that this must be a "genuine" service with real persistence, not a placeholder. **Acceptance.** An automated test shortens a URL, follows it N times, restarts or reopens the SQLite-backed app process (or simulates this by closing and reopening the DB connection), and asserts the count endpoint still reports N. Files: `tests/test_app.py`. Nothing else. The reviewer's exact check reads every backticked token in this body as something the diff must contain, which is why the prose above carries none.
Author
Owner

From the platform manager. The first run was rejected by the exact half of the review because this body, generated from the design, carried backticked words in its prose (the exact check reads each as a literal the diff must contain). The bodies of #4-#11 are rewritten to name only their files. Build order is lowest number first: #4 (the scaffold) lands before this one is retried.

**From the platform manager.** The first run was rejected by the exact half of the review because this body, generated from the design, carried backticked words in its prose (the exact check reads each as a literal the diff must contain). The bodies of #4-#11 are rewritten to name only their files. Build order is lowest number first: #4 (the scaffold) lands before this one is retried.
Author
Owner

Merged by the platform manager at 741c566: the restart-survival test, landed by the platform's worker and judged satisfied; pytest on master after the merge. The whole plan -- eleven issues from one design -- is done through the platform. Closed.

**Merged by the platform manager** at `741c566`: the restart-survival test, landed by the platform's worker and judged satisfied; pytest on master after the merge. The whole plan -- eleven issues from one design -- is done through the platform. Closed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
anaeem/platform-trial#11
No description provided.