Skip to content

feat(git): refresh recently used mirrors in the background - #79

Open
profiling wants to merge 1 commit into
rolandjitsu:mainfrom
profiling:profiling/issue-78-periodic-refresh
Open

profiling wants to merge 1 commit into
rolandjitsu:mainfrom
profiling:profiling/issue-78-periodic-refresh

Conversation

@profiling

@profiling profiling commented Nov 15, 2026 •

Copy link
Copy Markdown

Adds bounded periodic fetches for recently used existing mirrors, most recent first. Disabled by default (--refresh-interval-seconds=0); enabled intervals must be at least 3600 seconds. Addresses #78.

Refresh uses server credentials or anonymous access, shares request locking and TTL, and applies auth blocking and bounded backoff without delaying request retries. It never clones missing mirrors. Successful cache preparation records client use; background growth is measured without LRU promotion. Rounds do not overlap, stop admission at their deadline, and use upstream cancellation/reaping on shutdown.

Validation: independent feature, integration, coverage, portability and documentation reviews; formatting, clippy with warnings denied, 207 all-features locked tests, and full local LLVM coverage pass. No uncovered changed lines remain in src/git.rs. Tests cover scheduling, credentials, cancellation, disabled gating, successful-use boundaries, growth/eviction races, deadline overflow and panic cleanup.

Dependency: none; #77 is merged and this branch is rebased onto the latest main (0.2.13) as a single feature commit.

@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   98.38%   98.71%   +0.33%     
==========================================
  Files           9        9              
  Lines        5079     6314    +1235     
==========================================
+ Hits         4997     6233    +1236     
+ Misses         82       81       -1     

☔ 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.

@profiling
profiling force-pushed the profiling/issue-78-periodic-refresh branch 2 times, most recently from 4d0ff10 to 12f3469 Compare November 15, 2026 16:11
@profiling
profiling marked this pull request as ready for review November 15, 2026 16:21
@profiling
profiling force-pushed the profiling/issue-78-periodic-refresh branch 2 times, most recently from ddebb35 to 5d66076 Compare November 15, 2026 16:58
@profiling
profiling force-pushed the profiling/issue-78-periodic-refresh branch 2 times, most recently from 0e9b543 to a463b51 Compare November 16, 2026 09:34
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