Skip to content

feat(lfs): record handler outcomes and honest byte metrics - #62

Draft
tobi wants to merge 1 commit into
backlog/03-lfs-batchesfrom
backlog/04-lfs-metrics
Draft

feat(lfs): record handler outcomes and honest byte metrics#62
tobi wants to merge 1 commit into
backlog/03-lfs-batchesfrom
backlog/04-lfs-metrics

Conversation

@tobi

@tobi tobi commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Record LFS handler duration and HTTP outcomes for batch, GET, PUT and verify. Distinguish bytes offered in a GET response from validated upload bytes; neither counter claims transport delivery. HEAD, 304, errors and edge offload do not count as offered response bytes.

Reworks #51 around measurable semantics. A local recorder regression covers response outcomes and offered-byte exclusions. docs/LFS.md describes measurement boundaries, including upload validation preceding storage completion.

Stack layer 4/8; base: backlog/03-lfs-batches. Review the diff against this base. Combined tree at 4475bb4 passes local just ci (38 e2e tests, 19 serial simulations and standalone smoke) and the real two-instance S3 push/maintenance/clone/fsck rig. All six ignored stress/benchmark tests and all 184 full TLC checks pass locally (15 new checks across two models). The follow-up at 37bc4cc changes only two shell test assertions to Bash builtins; it passes with a minimal PATH. All eight stack heads are green in hosted CI (26 jobs). This layer’s successful run.

Review order: 01-conditional-storage02-s3-credentials03-lfs-batches04-lfs-metrics05-auth-boundaries06-dev-setup07-azure08-azure-events.

Adapt PR #51 with explicit offered-download and validated-upload counters. Exclude HEAD/304/error/offloaded responses; count HTTP errors even when returned as Ok(Response). A recorder regression covers range and dropped-response semantics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant