Skip to content

Conversation

@thorsten-klein
Copy link
Contributor

@thorsten-klein thorsten-klein commented Nov 30, 2025

This PR enhances the performance of the auto-cache feature.

Changes

  • Speed-up performance
    If a tag or commit is used in the manifest, and the revision is already available in the auto-cache, no remote fetch is performed (unless --fetch=always is specified). This allows west update to finish as fast as possible.

Benefits

  • Seamless offline usage
  • Faster west update

@thorsten-klein thorsten-klein marked this pull request as draft November 30, 2025 18:37
@thorsten-klein thorsten-klein force-pushed the robust-auto-cache branch 2 times, most recently from 9ad8501 to 4305df5 Compare November 30, 2025 22:16
@codecov
Copy link

codecov bot commented Nov 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.98%. Comparing base (76890ef) to head (ff759fb).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #890      +/-   ##
==========================================
+ Coverage   84.93%   84.98%   +0.05%     
==========================================
  Files          11       11              
  Lines        3444     3451       +7     
==========================================
+ Hits         2925     2933       +8     
+ Misses        519      518       -1     
Files with missing lines Coverage Δ
src/west/app/project.py 80.51% <100.00%> (+0.23%) ⬆️

@thorsten-klein thorsten-klein force-pushed the robust-auto-cache branch 3 times, most recently from cc783b5 to 11519d5 Compare December 1, 2025 10:36
@thorsten-klein thorsten-klein changed the title improve auto-cache performance and robustness auto-cache: skip remote update if revision is already contained Dec 1, 2025
@thorsten-klein thorsten-klein marked this pull request as ready for review December 1, 2025 10:40
@thorsten-klein thorsten-klein changed the title auto-cache: skip remote update if revision is already contained auto-cache: fetch remote updates only if necessary Dec 1, 2025
Enables fully offline work with auto-cache.: Skip remote fetches when a
commit or tag is used, and the revision is already available within the
auto-cache.
@pdgendt pdgendt requested review from carlescufi and marc-hb December 1, 2025 13:59
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.

2 participants