Repository navigation
fix(disc): count a remote disc image's source bytes in telemetry - #719
Merged
superuser404notfound merged 3 commits intoOct 8, 2026
Conversation
yipengfei329
marked this pull request as ready for review
October 7, 2026 14:12
yipengfei329
force-pushed
the
fix/disc-source-bytes-telemetry
branch
from
October 7, 2026 17:07
0134fc2 to
3a97079
Compare
LiveTelemetry.demuxerBytesFetched read 0 for every custom-reader source, because CustomIOReaderBridge reported a constant 0. A disc image played over HTTP therefore showed no origin bytes and, on the software path, no networkThroughputMbps, although HTTPDiscIOReader pulled the whole title. HTTPDiscIOReader now counts the response bodies it receives, ConcatIOReader passes its base reader's count through, and the bridge reports it. A host's own IOReader is not asked and still reports 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
yipengfei329
force-pushed
the
fix/disc-source-bytes-telemetry
branch
from
October 7, 2026 17:14
3a97079 to
1da10e6
Compare
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
superuser404notfound
merged commit Oct 8, 2026
7383a40
into
superuser404notfound:main
4 checks passed
Owner
|
Merged in 7383a40, thank you. This is exactly the shape that works well here: one defect, a measurement before and after, no public API change, and tests that pin both the counting reader and the host reader that must keep reporting 0. Two notes on what happened on the way in:
It ships with the next release. |
superuser404notfound
pushed a commit
that referenced
this pull request
Oct 8, 2026
… remote disc source bytes in telemetry (#719) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
Owner
|
Released in 7.31.2 (5643f9d). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LiveTelemetry.demuxerBytesFetchedis documented as the bytes a session pulled from the source, but it read 0 for every source opened through a custom reader, becauseCustomIOReaderBridgereports a constant 0. A disc image played over HTTP therefore showed nooriginbytes and, on the software path, nonetworkThroughputMbps, althoughHTTPDiscIOReaderpulled the whole title. This is the first focused piece of the set in #703 (MovieClaw P19).What changed
HTTPDiscIOReadercounts the response bodiesfetchWithRetryreceives, per instance (a retried or rejected body counts too, since it crossed the link). The process-widelifetimeFetchedBytesused by the memory probe is unchanged.ConcatIOReaderpasses its base reader's count through: the extent map adds no transfer of its own.CustomIOReaderBridge.cumulativeBytesFetchedreports the reader's count through an internalSourceTransferCountingseam. A host's ownIOReaderis not asked and still reports 0, which keeps theAVIOProvidercontract ("custom readers that do not track network I/O report 0") for local files, SMB and memory readers.avioMBcolumn now also reflects disc reads on that path, alongside its separatediscFetchedMBcolumn.Test plan
aetherctl play --seconds 15/25 http://127.0.0.1:8931/disc.iso:main(7.28.3):origin=0.0MBon every tick.origin107.5 MB at t=1 rising to 367.5 MB at t=25, stepping with the reader's refills; playback, disc recognition and the verdict are unchanged.HTTPDiscIOReaderTests: the reader counts the transfer (one 64 KiB refill for a 6000-byte read, nothing for a re-read inside the buffer, the refill after a seek); a disc wrapped over HTTP reports the reader's count through the extent map and the bridge; a host reader still reports 0.swift test --jobs 8: 718 XCTest cases (1 skipped) and 4,087 Swift Testing cases in 567 suites, all passing.Scripts/check-doc-links.pypasses.Checklist
CHANGELOG.mdupdatedfeat(...),fix(...),chore(...))🤖 Generated with Claude Code