Skip to content

feat: bound upstream git memory to avoid OOM - #29

Merged
rolandjitsu merged 1 commit into
mainfrom
feat/bound-upstream-git-memory
Sep 1, 2026
Merged

feat: bound upstream git memory to avoid OOM#29
rolandjitsu merged 1 commit into
mainfrom
feat/bound-upstream-git-memory

Conversation

@rolandjitsu

Copy link
Copy Markdown
Owner

What kind of change does this PR introduce?

  • fix
  • feat
  • refactor
  • perf
  • docs
  • test
  • build / ci
  • chore

Summary

Set core.bigFileThreshold (configurable, default 8m) and core.deltaBaseCacheLimit to ensure clone/fetch stays bounded regardless of repo size.

Tests

  • Added / updated tests (unit, plus integration where it fits)
  • Not relevant, because: ...

Checklist

  • CI is green locally: cargo fmt --all --check, cargo clippy --all-targets --all-features --locked -- -D warnings, cargo test --all-features
  • Commits follow Conventional Commits; AI-assisted commits carry an Assisted-by: trailer (see CONTRIBUTING.md / AGENTS.md)
  • Preserves the read-only, pull-only invariant (no push or proactive replication to upstream)
  • Docs / README updated if behavior or flags changed

Breaking change?

No.

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.37%. Comparing base (c4b9d89) to head (ac2ff34).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   96.12%   96.37%   +0.25%     
==========================================
  Files           6        6              
  Lines        1650     1681      +31     
==========================================
+ Hits         1586     1620      +34     
+ Misses         64       61       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Pass memory-bounding config on each upstream clone/fetch:
core.bigFileThreshold (configurable, default 8m) streams large blobs
to disk instead of loading them, and core.deltaBaseCacheLimit caps
index-pack's delta-base cache. Both go via GIT_CONFIG_* alongside the
auth header, so per-clone RSS stays bounded regardless of repo size.

Assisted-by: Claude:claude-opus-4-8
@rolandjitsu
rolandjitsu force-pushed the feat/bound-upstream-git-memory branch from 840889e to ac2ff34 Compare August 31, 2026 00:05
@rolandjitsu
rolandjitsu merged commit 9cf584b into main Sep 1, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant