Skip to content

Commit 98d7c48

Browse files
committed
Don't linkcheck external web links
This can block PR CI yet remain unactionable for the contributor, since this is subject to network conditions and availability of the servers hosting the external web links.
1 parent f3d63db commit 98d7c48

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

book.toml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,11 @@ level = 0
2727

2828
[output.linkcheck]
2929
command = "ci/linkcheck.sh"
30-
follow-web-links = true
31-
exclude = [
32-
"crates\\.io",
33-
"gcc\\.godbolt\\.org",
34-
"youtube\\.com",
35-
"youtu\\.be",
36-
"dl\\.acm\\.org",
37-
"cs\\.bgu\\.ac\\.il",
38-
"www\\.amazon\\.com",
39-
"www\\.rustaceans\\.org",
40-
"play\\.rust-lang\\.org",
41-
"tomlee\\.co",
42-
"marketplace\\.visualstudio\\.com",
43-
"objects\\.githubusercontent\\.com",
44-
# The bug listing URL works only if an user is logged in, otherwise one gets 404.
45-
"github\\.com/issues\\?q=.*",
46-
# Similarly 500 is sometimes returned here.
47-
"github\\.com/rust-lang/rust/pulls\\?q=.*",
48-
# 401 is returned here for unknown reason
49-
"github\\.com/wesleywiser/rustc-bootstrap-wpa-analysis",
50-
# Handle: connection closed before message completed
51-
"microsoft\\.com/en-us/research/publication/",
52-
# 500 is returned for HEAD request
53-
"code\\.visualstudio\\.com/docs/editor/tasks",
54-
]
30+
# Don't follow external web links, because that is subject to network conditions
31+
# and the server conditions of the external web links. These are beyond our
32+
# control and really should not block PR CI.
33+
follow-web-links = false
34+
5535
# The scheduled CI runs every day and so we need to reuse a part of the cache
5636
# in order to face "Server returned 429 Too Many Requests" errors for github.com.
5737
cache-timeout = 90000

0 commit comments

Comments
 (0)