Skip to content
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

Turn on Sphinx Link checker on CI? #5380

Open
jenshnielsen opened this issue Nov 2, 2015 · 7 comments
Open

Turn on Sphinx Link checker on CI? #5380

jenshnielsen opened this issue Nov 2, 2015 · 7 comments

Comments

@jenshnielsen
Copy link
Member

The linkchecker that we use at the moment does not seem to check external links hence #5379 and others

I tried turning on the sphinx linkchecker python make.py linkcheck which seems to work but generate a fair number of redirect warnings and errors. Perhaps it is worth turning this on pr default?

See https://gist.github.com/jenshnielsen/b3dceef10df743154942 for the present output.

The linkcheck command is broken on python 3.5 but that should be fixed in the next Sphinx point release

@jenshnielsen jenshnielsen changed the title Turn on Sphinx Link checker on Travis Turn on Sphinx Link checker on Travis? Nov 2, 2015
@mdboom
Copy link
Member

mdboom commented Nov 2, 2015

Thanks. I didn't realize we weren't checking external links, so this is great. Also solves the problem that linkchecker doesn't work on Python 3.x.

@tacaswell
Copy link
Member

Huh, nifty that sphinx has that functionality built in....

@tacaswell tacaswell added this to the next bug fix release (2.0.1) milestone Nov 2, 2015
@QuLogic QuLogic modified the milestones: 2.0.1 (next bug fix release), 2.0.2 (next bug fix release) May 3, 2017
@tacaswell tacaswell modified the milestones: 2.1.1 (next bug fix release), 2.2 (next feature release) Oct 9, 2017
@timhoffm
Copy link
Member

timhoffm commented Apr 13, 2020

How it works: Essentially, from docs run

make linkcheck

Open issues:

  • When I ran this, github temporarily blocked me because of suspected abuse due to many page requests. Possible workaround add linkcheck_ignore = [r'https://github.com/.*'] to conf.py.
    Is too much traffic a general concern if we run this with with every CI build?
  • There's a lot of output and the link checks must be filtered out. Either there has to be a way to silence sphinx mostly or one would have to grep the results.

@oscargus oscargus changed the title Turn on Sphinx Link checker on Travis? Turn on Sphinx Link checker on CI? Jun 1, 2022
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label Jun 2, 2023
@story645
Copy link
Member

story645 commented Jun 2, 2023

Um is this still relevant?

@rcomer
Copy link
Member

rcomer commented Jun 2, 2023

We have this in another project I'm on. The vast majority of the failures it generates are because some external documentation has moved, or because there is a temporary connection problem. So it creates CI failures in PRs that have nothing to do with the problem link. If a PR does introduce or modify a link, I would have thought the reviewers would check it manually (to verify the content is appropriate as much as whether the link works).

So I would suggest that if we want this we should have it on a schedule (similar to the nightly dependency tests) rather than within PRs.

@story645 story645 added Documentation: build building the docs and removed status: inactive Marked by the “Stale” Github Action labels Jun 2, 2023
@tacaswell
Copy link
Member

I think it also takes ~hours to check the links in our docs (a lot of that is I think throttling to avoid getting flagged as a DDOS attack) so it is not obvious to me that we can even run our link checker on CI without getting timed out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants