-
Notifications
You must be signed in to change notification settings - Fork 550
Don't linkcheck external web links in PR CI #2296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
book.toml
Outdated
exclude = [ | ||
"crates\\.io", | ||
"gcc\\.godbolt\\.org", | ||
"youtube\\.com", | ||
"youtu\\.be", | ||
"dl\\.acm\\.org", | ||
"cs\\.bgu\\.ac\\.il", | ||
"www\\.amazon\\.com", | ||
"www\\.rustaceans\\.org", | ||
"play\\.rust-lang\\.org", | ||
"tomlee\\.co", | ||
"marketplace\\.visualstudio\\.com", | ||
"objects\\.githubusercontent\\.com", | ||
# The bug listing URL works only if an user is logged in, otherwise one gets 404. | ||
"github\\.com/issues\\?q=.*", | ||
# Similarly 500 is sometimes returned here. | ||
"github\\.com/rust-lang/rust/pulls\\?q=.*", | ||
# 401 is returned here for unknown reason | ||
"github\\.com/wesleywiser/rustc-bootstrap-wpa-analysis", | ||
# Handle: connection closed before message completed | ||
"microsoft\\.com/en-us/research/publication/", | ||
# 500 is returned for HEAD request | ||
"code\\.visualstudio\\.com/docs/editor/tasks", | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This long list of excludes to me suggests that it's not good in terms of signal-to-noise ratio, because we're already skipping the (arguably most import) github links (issues, PRs, commits, etc.).
We can set (But I'm also fine with disabling it altogether, tbh. Up to you). |
98d7c48
to
5d91437
Compare
Actually, I'll skip for PR CI only for now. |
5d91437
to
c9210de
Compare
c9210de
to
637ad77
Compare
Can you try to commit a change to some random MD that contains a non-existent third-party URL? It has to start with http/https. |
💀 |
Oh is it because this shell script is a wrapper around the linkchecker not mdbook... IDK |
8301c7e
to
aa73732
Compare
aa73732
to
531e5f9
Compare
(Looks like that works) |
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.
I don't see a way for PR CI to override the linkcheck config to skip external web links yet let the cron job CI to perform external web link checks, so this PR does the sledgehammer approach of disabling external web link checks for both.EDIT: apparentlyMDBOOK_OUTPUT__LINKCHECK__FOLLOW_WEB_LINKS
is a thing.