Skip to content

Supporting partial cache-hit git pullthroughs #399

Description

@nsextonTT

I've been experimenting with Cachew a bit, and ran into an unexpected behavior.

Cachew keeps a bare mirror per upstream repo and serves git-upload-pack from it via the git http-backend. On any partial cache miss, cachew fell back to pulling the entire upload-pack request from upstream. I was testing this in a small CI deployment, and when running through the cache it was always doing a full pull when run on a fresh commit.

I was able to get a partial pack pull working by filtering missing objects from the upload-pack request and doing some dynamic serving. Validated it working with a watch on the deployment ingress. Putting together a PR this week if that's a feature the cachew team is open to adding. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions