Skip to content

Commit d7d7bd8

Browse files
committed
ci: extend successful link cache lifetime to three days
Signed-off-by: Ralf W. Grosse-Kunstleve <[email protected]>
1 parent 9a24782 commit d7d7bd8

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,16 @@ repos:
111111
name: lychee (authored documentation)
112112
entry: python ./ci/tools/run_lychee.py
113113
language: python
114+
# Update this shared pin manually until Dependabot releases support for
115+
# local-hook dependencies: https://github.com/dependabot/dependabot-core/issues/15489
116+
# Once supported, add lychee-bin to the allowlist in .github/dependabot.yml.
114117
additional_dependencies: &lychee_dependencies
115118
- lychee-bin==0.24.2
116119
types: [text]
117120
require_serial: true
118121
args:
119122
- --cache
120-
- --max-cache-age=1d
123+
- --max-cache-age=3d
121124
- --max-concurrency=4
122125
- --max-retries=3
123126
- --no-progress
@@ -135,7 +138,7 @@ repos:
135138
always_run: true
136139
args:
137140
- --cache
138-
- --max-cache-age=1d
141+
- --max-cache-age=3d
139142
- --max-concurrency=16
140143
- --host-concurrency=2
141144
- --host-request-interval=250ms

‎ci/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ fragments. Only the URL-result file is shared across operating systems;
9292
pre-commit's installed environments retain their OS/Python-specific caches.
9393

9494
Successful external checks retain their original timestamps and expire after
95-
one day. Failed URLs are not persisted, and filesystem targets are checked
96-
afresh. The rendered hook uses its own cache directory, selected by
95+
three days, allowing reuse when a nightly refresh is missed. Nightly refreshes
96+
still check links afresh. Failed URLs are not persisted, and filesystem targets
97+
are checked afresh. The rendered hook uses its own cache directory, selected by
9798
`LYCHEE_CACHE_DIR` (default `.lychee-rendered`), so its fragment-aware results
9899
cannot mix with authored results in the checkout's `.lycheecache`. Per-pass
99100
JSON reports and a Markdown summary are retained as CI artifacts.

0 commit comments

Comments
 (0)