Add preheat function for OCI image blob preheating via Dragonfly proxy#1774
Merged
Add preheat function for OCI image blob preheating via Dragonfly proxy#1774
Conversation
Add `oci-client` and `oci-spec` dependencies to workspace and util crate. Create `request/preheat.rs` with `PreheatRequest` struct and `preheat` function that: - Parses OCI image reference and authenticates with registry - Pulls manifest (with multi-platform index support) - Downloads all blobs (config + layers) via Dragonfly proxy - Discards content (preheat only caches in P2P network) Agent-Logs-Url: https://github.com/dragonflyoss/client/sessions/f89011d2-1920-46d0-9bc5-48e1f8e086e8 Co-authored-by: gaius-qi <15955374+gaius-qi@users.noreply.github.com>
…d warn on missing reader Agent-Logs-Url: https://github.com/dragonflyoss/client/sessions/f89011d2-1920-46d0-9bc5-48e1f8e086e8 Co-authored-by: gaius-qi <15955374+gaius-qi@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
gaius-qi
April 9, 2026 06:26
View session
…d-preheat-function-again
Signed-off-by: Gaius <gaius.qi@gmail.com>
…lure When CI runs tests with --all-features, both ring and aws-lc-rs features are enabled for rustls, which prevents auto-detection of the CryptoProvider. Explicitly install ring as the default provider at the start of the test. Agent-Logs-Url: https://github.com/dragonflyoss/client/sessions/78ab4119-bb29-4144-99cd-b6a6b3bb7e4c Co-authored-by: gaius-qi <15955374+gaius-qi@users.noreply.github.com>
auto-merge was automatically disabled
April 9, 2026 10:21
Head branch was pushed to by a user without write access
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
Copilot stopped work on behalf of
gaius-qi due to an error
April 10, 2026 03:25
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1774 +/- ##
==========================================
- Coverage 44.54% 44.41% -0.14%
==========================================
Files 91 91
Lines 25834 26054 +220
==========================================
+ Hits 11508 11571 +63
- Misses 14326 14483 +157
🚀 New features to boost your workflow:
|
Agent-Logs-Url: https://github.com/dragonflyoss/client/sessions/920339da-3afc-4501-a403-f914dd1c69a5 Co-authored-by: gaius-qi <15955374+gaius-qi@users.noreply.github.com>
…ng plugin example pattern Agent-Logs-Url: https://github.com/dragonflyoss/client/sessions/efd37f6c-3bcc-4270-929b-ad5fd79cb709 Co-authored-by: gaius-qi <15955374+gaius-qi@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dragonflyoss/client/sessions/bd783370-64d6-4cdc-a4c8-73a0be8c77c9 Co-authored-by: gaius-qi <15955374+gaius-qi@users.noreply.github.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
hhhhsdxxxx
approved these changes
Apr 10, 2026
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.
dragonfly-client-util/examples/request/package with two binaries (getandpreheat)dragonfly-client-util/examples/request/Cargo.tomlwith[[bin]]entries for bothgetandpreheatget/src/main.rs→request/src/bin/get.rsandpreheat/src/main.rs→request/src/bin/preheat.rsREADME.mdfor therequestpackagedragonfly-client-util/examples/get/anddragonfly-client-util/examples/preheat/directoriesCargo.tomlto replace the two old members with the new one