-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improvements in package caching #1274
base: main
Are you sure you want to change the base?
Conversation
505be82
to
84ffb51
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1274 +/- ##
==========================================
+ Coverage 80.75% 90.29% +9.53%
==========================================
Files 15 13 -2
Lines 977 1205 +228
==========================================
+ Hits 789 1088 +299
+ Misses 188 117 -71 ☔ View full report in Codecov by Sentry. |
1ab8034
to
2a44ded
Compare
2a44ded
to
3670a3d
Compare
3670a3d
to
dc53a56
Compare
I recon you're really limited on bandwidth? Or what is the motivation to avoid the extra checks? |
Yes, this is purely to save bandwidth and to give a crutch to somewhat dated processors. A build without selecting additional packages, just changing defaults With a recent processor: The same with a 10years old processor: Also the regex below should cause less fallback to https, if building with feeds from a mirror
Close it if not necessary, maybe it could be useful as a reference for someone else, but maybe not. |
This adds some squid directives to consider fresh longer kernel modules of already compiled releases, to prevent revalidation against the origin server which consumes time.
An automatic mechanism to refresh the below squid directive should be included (e.g., 24h after the first appearance on https://downloads.openwrt.org/.versions.json)
This adds also a fallback to no_proxy (https) in case STDERR contains “package index are corrupt” to rule out cache problems and to allow packages to be considered fresh longer and thus not revalidated against the origin server