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!
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!