Skip to content

Commit 4b082d7

Browse files
authored
ci: reduce lychee link checker flakiness (#1582)
1 parent 5c5e255 commit 4b082d7

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,5 @@ jobs:
2828
with:
2929
args: >
3030
--root-dir "${{ github.workspace }}"
31-
--cache --max-cache-age 1d
32-
--max-concurrency 6
33-
--max-retries 6
34-
--retry-wait-time 2
35-
--timeout 30
3631
--github-token ${{ secrets.GITHUB_TOKEN }}
37-
--exclude '^https://github\.com/kedacore/http-add-on/pkgs/container/http-add-on-interceptor$'
38-
--exclude '^https://github\.com/kedacore/http-add-on/pkgs/container/http-add-on-operator$'
39-
--exclude '^https://github\.com/kedacore/http-add-on/pkgs/container/http-add-on-scaler$'
40-
--exclude '^http://opentelemetry-collector\.open-telemetry-system:4318$'
41-
--exclude '^http://opentelemetry-collector\.open-telemetry-system:4318/$'
42-
--exclude '^http://opentelemetry-collector\.open-telemetry-system:4318/v1/traces$'
43-
--exclude '^https://www\.gnu\.org/software/make/$'
4432
"./**/*.md"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,5 @@ admin/Cargo.lock
360360
/certs/
361361

362362
*.test
363+
364+
.lycheecache

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ lint:
200200
lint-fix:
201201
golangci-lint run --fix
202202

203+
check-links:
204+
lychee "./**/*.md"
205+
203206
pre-commit: ## Run static-checks.
204207
pre-commit run --all-files
205208

lychee.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cache = true # default: false
2+
max_cache_age = "7d" # default: 1d
3+
max_concurrency = 6 # default: 128
4+
max_retries = 6 # default: 3
5+
retry_wait_time = 10 # default: 1s; survive transient network failures
6+
7+
exclude = [
8+
'^http://opentelemetry-collector\.open-telemetry-system:4318',
9+
]

0 commit comments

Comments
 (0)