Skip to content

Commit ca5cd4b

Browse files
esolitosgitbutler-client
authored andcommitted
feat: migrate "link-checker-sample-apps" workflow from Screwdriver to Github
temporary test with separate branch
1 parent 1ff9e32 commit ca5cd4b

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed

.github/workflows/link-checker.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Link checker
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
schedule:
12+
- cron: "00 3 * * 1-5"
13+
14+
jobs:
15+
test:
16+
uses: vespa-engine/gh-actions/.github/workflows/jekyll-link-checker.yml@remove-redirect-files-before-link-check
17+
with:
18+
add-no-render-with-liquid: "true"
19+
build-plugins: |
20+
_plugins-linkcheck
21+
additional-args: "--directory-index-file README.html"
22+
ignore-files: |-
23+
/tensor-playground/src/main/resources/playground/
24+
/src/main/resources/site/index.html/
25+
/dense-passage-retrieval-with-ann/src/main/resources/frontend/index.html/
26+
ignore-urls: |-
27+
src/main/application/schemas/wiki.sd#L80
28+
/localhost:8080/
29+
src/main/application/search/query-profiles
30+
/hub.docker.com/r/vespaengine/vespa/tags/
31+
swap-urls: |-
32+
(https\://github.com.*/master/.*)#.*:\1
33+
(https\://github.com.*/main/.*)#.*:\1
34+
^(https\://.*)\.md:\1.html
35+
pre-check-script: |
36+
mv links-to-check.html _site
37+
echo "Broken links in links-to-check.html are extracted from services/hosts/deployment.xml in the sample apps,"
38+
echo "as well as links in javadoc."
39+
echo "Search for broken links in these files."

screwdriver.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,16 @@ jobs:
4848
echo "Search for broken links in these files."
4949
- check-links: |
5050
bundle exec htmlproofer \
51-
--assume-extension --check-html --no-check-external-hash --no-enforce-http \
52-
--typhoeus '{"connecttimeout": 10, "timeout": 30, "accept_encoding": "zstd,br,gzip,deflate"}' \
53-
--hydra '{"max_concurrency": 1}' \
51+
--assume-extension \
52+
--check-html \
5453
--directory-index-file README.html \
55-
--ignore-urls 'src/main/application/schemas/wiki.sd#L80,/localhost:8080/,src/main/application/search/query-profiles,/hub.docker.com/r/vespaengine/vespa/tags/' \
54+
--hydra '{"max_concurrency": 1}' \
5655
--ignore-files '/tensor-playground/src/main/resources/playground/,/src/main/resources/site/index.html/,/dense-passage-retrieval-with-ann/src/main/resources/frontend/index.html/' \
56+
--ignore-urls 'src/main/application/schemas/wiki.sd#L80,/localhost:8080/,src/main/application/search/query-profiles,/hub.docker.com/r/vespaengine/vespa/tags/' \
57+
--no-check-external-hash \
58+
--no-enforce-http \
5759
--swap-urls '(https\://github.com.*/master/.*)#.*:\1,(https\://github.com.*/main/.*)#.*:\1,^(?!https)(.*)\.md:\1.html' \
60+
--typhoeus '{"connecttimeout": 10, "timeout": 30, "accept_encoding": "zstd,br,gzip,deflate"}' \
5861
_site
5962
6063
verify-billion-scale-vector-search:

0 commit comments

Comments
 (0)