mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #293] [MERGED] fix(p2p): send range header during URL probes #324
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/293
Author: @WindSongShaoGe
Created: 9/15/2026
Status: ✅ Merged
Merged: 9/17/2026
Merged by: @LSX-s-Software
Base:
main← Head:fix/skip-uuid-digest📝 Commits (2)
a82a758fix(p2p): send range header during URL probes51d211ctest(p2p): enforce range requests in UUID facade mock📊 Changes
2 files changed (+9 additions, -5 deletions)
View changed files
📝
storage/overlaybd/src/backend/registryfs_v2.rs(+5 -1)📝
storage/overlaybd/src/image/image_file.rs(+4 -4)📄 Description
What
Send
Range: bytes=0-0during HTTP URL resolution so direct UUID-facade layer opens can complete. Make the UUID facade mock reject GET requests without Range, matching the real facade.Why
open_ro_p2p_uuidpasses/p2p-uuid/<uuid>toopen_source_blob_with_size. For HTTP URLs,RegistryFsV2callsresolve_actual_url_oncebefore the normal range read. That initial GET previously had no Range header and the UUID facade returned HTTP 400.This is the direct UUID-facade path. The regular source-registry URL probe does not go through the P2P facade; this PR does not claim otherwise.
Related issue
Addresses the direct UUID-facade compatibility problem discussed in this PR. No issue-closing claim.
Scope and non-goals
Only two files change: the URL probe and its UUID facade test mock. The broader OSS snapshot publication, digest lookup, hashing, file-retention, TCP and CI changes have been removed from this PR and preserved separately. The P2P full-chain harness remains on its separate test branch.
Design and behavior changes
Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetCommands and results on
51d211c, based on mainf58d55e:Negative control: temporarily remove only the production Range fix while keeping the stricter mock. Both
test_missing_file_lower_with_uuid_opens_from_p2p_uuid_facadeandtest_remote_lower_with_uuid_prefers_p2p_uuid_facadefail; the first reports HTTP 400 while resolving/p2p-uuid/.... Restoring the fix makes all 28 image tests pass.Skipped checks and reasons: full VM/OSS/P2P-chain suites were not rerun for this narrow change. The prior full-chain results apply to the broader follow-up branch, not this two-file fix. No Go, schema, deployment or persisted-format changes.
Risks and reviewer notes
The Range header applies to HTTP URL probes generally; the registry suite covers existing redirect/authentication behavior. The fix is about URL resolution before range reads, not about missing Range headers in
send_range_request.Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.