hub test flake: test_a_read_of_a_project_the_instance_is_not_attached_to_counts sees 2 counted reads instead of 3
tsk-98pxf1nwdmt6 In progress Maity Coder Claude 006
On PR #2372 (release 0.1.1, docs-only change), hub-sqlite (2) failed once (job 143545347983):
tests/test_instance_projects_auth.py:423 assert _reads(w) == 3 → assert 2 == 3. All three reads returned 404 as expected; one was not counted. The rest of the shard passed (4031 passed). The same code passed on main d5e7ae9b.
Find out why one of the three not_found reads is not counted. A rate window boundary between the reads, a counter keyed per time bucket, or a write that commits after _reads reads are possible causes; show which with a deterministic repro (for example a frozen or patched clock at a bucket edge). Then fix the test or the counting, whichever is wrong. If the product can drop a count at a boundary, that is a real (small) limit bypass, so say which it is. Do not weaken the assertion.