Skip to content

Change bundle caching to only re-check remote once per week#1363

Open
CraftSpider wants to merge 2 commits into
tectonic-typesetting:masterfrom
CraftSpider:better-bundle-cache
Open

Change bundle caching to only re-check remote once per week#1363
CraftSpider wants to merge 2 commits into
tectonic-typesetting:masterfrom
CraftSpider:better-bundle-cache

Conversation

@CraftSpider

Copy link
Copy Markdown
Contributor

Uses chrono to write another file in addition to the hash which carries a bundle's last-checked time. This prevents constant re-checks on every engine run. This is important because nearly half of tectonic's runtime is spent reading the entire bundle off the internet on every invocation.

@rm-dr, since you did the original bundle rework.

Uses chrono to write another file in addition to the hash which carries a bundle's last-checked time. This prevents constant re-checks on every engine run.
@CraftSpider CraftSpider requested a review from rm-dr May 9, 2026 21:00
@codecov

codecov Bot commented May 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.81%. Comparing base (ecd0074) to head (9d10096).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
crates/bundles/src/cache.rs 51.16% 17 Missing and 4 partials ⚠️
src/io/format_cache.rs 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1363      +/-   ##
==========================================
+ Coverage   29.54%   29.81%   +0.27%     
==========================================
  Files         273      273              
  Lines      180510   180538      +28     
  Branches   180510   180538      +28     
==========================================
+ Hits        53328    53825     +497     
+ Misses      55480    54489     -991     
- Partials    71702    72224     +522     
Components Coverage Δ
tectonic 51.28% <0.00%> (-0.05%) ⬇️
bridge_core 34.25% <ø> (+0.09%) ⬆️
bridge_flate 38.82% <ø> (+21.17%) ⬆️
bridge_fontconfig 96.17% <ø> (ø)
bridge_freetype2 92.70% <ø> (ø)
bridge_graphite2 42.47% <ø> (ø)
bridge_harfbuzz 82.83% <ø> (ø)
bridge_icu ∅ <ø> (∅)
bridge_png 100.00% <ø> (ø)
bundles 36.15% <51.16%> (+1.20%) ⬆️
cfg_support 94.84% <ø> (ø)
dep_support 0.00% <ø> (ø)
docmodel 84.61% <ø> (ø)
engine_bibtex 66.45% <ø> (ø)
engine_spx2html 0.00% <ø> (ø)
engine_xdvipdfmx 64.30% <ø> (ø)
engine_xetex 35.73% <ø> (+0.45%) ⬆️
errors 47.61% <ø> (ø)
geturl 28.20% <ø> (ø)
io_base 76.11% <ø> (ø)
pdf_io 14.16% <ø> (-0.04%) ⬇️
status_base 81.92% <ø> (+7.22%) ⬆️
xdv 55.28% <ø> (ø)
xetex_format 23.31% <ø> (ø)
xetex_layout 59.57% <ø> (+2.74%) ⬆️

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

@CraftSpider

CraftSpider commented May 10, 2026

Copy link
Copy Markdown
Contributor Author

So, without this, every build on Tectonic-on-arXiv is failing. With it, only most are. So that's good :P

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