Skip to content

Recording scan by window (day folders + end-in-name), refs #11 - #13

Merged
mouldybread merged 66 commits into
mainfrom
fix/recording-scan-window
Nov 25, 2026
Merged

mouldybread merged 66 commits into
mainfrom
fix/recording-scan-window

Conversation

@mouldybread

@mouldybread mouldybread commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Status: work in progress (draft)

Closes #11. The owner decided to close #11 after reviewing the final closeout: final closeout comment on #11. Use issue #11's Plan v2 checkpoint numbering; broader integration slice names do not renumber it. PR #13 stays draft until the owner marks it ready. No merge or release decision is made here.

Recorded checkpoint acceptance

Each green run below is check-run verification on its named source head, not a claim of local execution or individual job-log review. A run only covers its exact head.

  • Checkpoints 1 and 2: recorded complete; checkpoint 2 on e4f77353f63d91c28a81e96b6aab79c837892300, run 45314682415.
  • Checkpoint 3 — Serving: complete on 5887e1129f0e16dafe9c4771bf8c4d184a3fba4f, run 45427373922, all eight required checks successful.
  • Checkpoint 4 — Scan: complete on bed8d53631b4f656b497596c6bd27e1d6e20e057, run 45511972624, all eight required checks successful. Recorded in issue #11.
  • Checkpoint 5 — Retention and deletion: complete on fa6f7854574c1378b029c37774fa31711b43c50a, run 45676664390, all eight required checks successful. Recorded in issue #11, with source reconciliation in docs/CHECKPOINT5_READINESS.md. The later waiter-counter follow-up 69da10c was first verified by checkpoint 6.
  • Checkpoint 6 — Disk usage: complete on d5f9665cc964d47daf4769dd4e774bad9d55f406, run 45686302269, all eight required checks successful. Recorded in issue #11.
  • Checkpoint 7 — Documentation: complete on 9efa57d1bb3675e3c6a43c192ebeba113268e4fb, recorded in issue #11. No CI was run by owner decision because those four commits changed documentation files only. The documentation was subsequently included in run 45696730551 at 2e1b33b.
  • Checkpoint 8 — Timeline camera filter, skip-and-report and warning: all eight checks successful on 2e1b33bd4f6f23ca54339a423c0109517089cf1b, run 45696730551.
  • Step 9 — Final head: all eight required checks successful on dde087f71eb4f23894d1092e313ec2807cdb4152, run 45708447732. Check results only; job logs for this run were not inspected.

Changes after the last checkpoint 8 green run

The current head is dde087f71eb4f23894d1092e313ec2807cdb4152. These commits after 2e1b33b are covered by the step 9 run above:

  • 3ab0c1dd279a301cd5cd1c30207785feab25ea61: removed the unused maxRecordingScanEntries and the test-only glob helpers cleanupOldRecordings*; tests now exercise production retention instead. No test function was deleted; one redundant direct-helper assertion was removed from a canceled-tick test.
  • 6540fb5c7f392ec857ba41b7f0f6b39f17fdf858: added the Node regression tests for the timeline camera-filter/warning wrapper and a Go discovery entry point.
  • e21119f7d9b5bd2ea2d021972a49beacdb5f5e52: expanded docs/audit/README.md to index all 18 identified superseded notes and updated disk usage/retention status.
  • a13a50ad2f0dcfc1ed3845dc392c4c75760de3b3: updated checkpoint 5/6/7 documentation status and docs/CHECKPOINT_CI.md.
  • 389145abd0ca29f93fefb45149d41f97e2fd1336: added docs/CHECKPOINT9_CLOSEOUT.md. That file was written before the final-head run and still describes checkpoint 9 as pending; the final-head CI record is in this description and in the closeout comment on Recording scan stops at 8,192 directory entries, breaking timeline and export with long retention #11.
  • dde087f71eb4f23894d1092e313ec2807cdb4152: test-only. The owner cancellation failure message in TestCorrAdmissionConcurrentContentionMatrix now includes the phase, returned error, context state, child counts and report. The assertion itself is unchanged.

Preserved design and behavior

  • Recordings use /recordings/<camera>/<YYYYMMDD>/<start>_E<end>_<label>.mp4, with the UTC start day as directory and published partial suffix before .mp4. Stamped spans are positive and at most 24 hours.
  • Timeline/export interval selection trusts stamped ends, uses strict overlap and does no duration-selection probe. Export validation probes remain separate.
  • Scan bounds remain 8,192 entries per opened folder, 400 day folders per camera and 20,000 relevant candidates per call.
  • The timeline skips an unusable in-window recording and reports it in X-Timeline-Unreadable-Count; the playback page shows a transient warning. Other inspection errors, cancellation, unreadable folders and scan bounds still fail the timeline request; downloads/exports stay strict. Skipped candidates still count toward 20,000.
  • The selected-camera filter adds one camera_id per selected playback camera; with none selected, no timeline request is made. The server already supports this; playback.js is unchanged.

Known limits

  • No 34-camera, 365-day physical run, live-camera qualification or wall-clock performance measurement is claimed. Disk-usage cold-start time is unmeasured.
  • Job logs were not inspected for the green runs. In particular, fixture durations and race-detector output are unknown.
  • Unexplained intermittent failure. Run 45704356923 on 389145a failed in safety / Core: TestCorrAdmissionConcurrentContentionMatrix/prefix=true/phase=5/cancel=true (event_correspondence_admission_concurrent_test.go) returned a nil error where context.Canceled was expected. From reading corrStreamRun, cancelling before release at phase 5 should always return context.Canceled, so the cause is not identified. The same test passed on dde087f (run 45708447732) with no code change to the code under test. One pass does not establish flakiness; if it recurs, the new failure message records the evidence needed.
  • The unreadable-recording warning is transient, not a persistent timeline marker, and covers unreadable recordings, not malformed names. A camera removed between selection and request can produce 404.
  • The 95 audit notes were read; 18 contain superseded statements and are indexed in docs/audit/README.md. Dated notes remain unchanged.
  • The accepted retention option-2 delay and orphan cleanup's trusted-ancestor/pathname-race limitation remain.

Plan v2 step 9 acceptance

The CI condition is met on the exact final head: all eight required checks passed on dde087f71eb4f23894d1092e313ec2807cdb4152 in run 45708447732:

  1. safety / Core — build, race, storage & lifecycle
  2. safety / Chrome acceptance — isolated run 1
  3. safety / Chrome acceptance — isolated run 2
  4. safety / Ordered content — bounded synthetic resource measurements
  5. safety / Required checks — all must pass
  6. prepared_go / Full Go build, race suite and vet
  7. prepared_browser / Prepared jobs and native playback — attempt 1
  8. prepared_browser / Prepared jobs and native playback — attempt 2

Job logs for this run were not inspected. Any later code or docs commit changes the target and needs a fresh run.

The final closeout is posted on #11. Remaining: the owner marks this PR ready for review and merges it, which closes #11 through "Closes #11" above. Merge, release and deployment are outside this update.

@mouldybread mouldybread added the run-checkpoint-ci Explicitly request full checkpoint verification label Nov 23, 2026
Only join the published-output close error when it is non-nil, so a
no-replace collision still returns a bare os.ErrExist. The collision
regression test now uses errors.Is instead of os.IsExist.
@mouldybread mouldybread added run-checkpoint-ci Explicitly request full checkpoint verification and removed run-checkpoint-ci Explicitly request full checkpoint verification labels Nov 24, 2026
Continuous recordings, including SIGTERM partials, are now published to
<camera>/<YYYYMMDD>/. The active-container acceptance script still globbed
the camera root and reported no retained partial output.
@mouldybread mouldybread added run-checkpoint-ci Explicitly request full checkpoint verification and removed run-checkpoint-ci Explicitly request full checkpoint verification labels Nov 24, 2026
@mouldybread mouldybread added the run-checkpoint-ci Explicitly request full checkpoint verification label Nov 24, 2026
@mouldybread mouldybread added the run-checkpoint-ci Explicitly request full checkpoint verification label Nov 25, 2026
@mouldybread mouldybread added run-checkpoint-ci Explicitly request full checkpoint verification and removed run-checkpoint-ci Explicitly request full checkpoint verification labels Nov 25, 2026
@mouldybread mouldybread removed the run-checkpoint-ci Explicitly request full checkpoint verification label Nov 25, 2026
@mouldybread mouldybread added run-checkpoint-ci Explicitly request full checkpoint verification and removed run-checkpoint-ci Explicitly request full checkpoint verification labels Nov 25, 2026
@mouldybread mouldybread added the run-checkpoint-ci Explicitly request full checkpoint verification label Nov 25, 2026
@mouldybread mouldybread changed the title WIP: Recording scan by window (day folders + end-in-name), refs #11 Recording scan by window (day folders + end-in-name), refs #11 Nov 25, 2026
@mouldybread
mouldybread marked this pull request as ready for review November 25, 2026 22:44
@mouldybread
mouldybread merged commit bda6c01 into main Nov 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-checkpoint-ci Explicitly request full checkpoint verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recording scan stops at 8,192 directory entries, breaking timeline and export with long retention

1 participant