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

Add html-proof for automated testing #161

Merged
merged 28 commits into from
Jun 25, 2020
Merged

Add html-proof for automated testing #161

merged 28 commits into from
Jun 25, 2020

Conversation

Chilipp
Copy link
Member

@Chilipp Chilipp commented Jun 23, 2020

This should have been done before, but I forgot about it.

As we are facing a lot of broken links, this PR adds a checker using html-proofer that particularly checks for broken links. Note that it unfortunately does not work for setting the baseurl or url in the _config.yml, so I needed to exclude it in the .circleci/_config.yml file.

closes #124, closes #152, closes #153 and solves several other broken links

@Chilipp Chilipp requested review from vsoch and eileen-kuehn June 23, 2020 23:13
@Chilipp Chilipp self-assigned this Jun 23, 2020
Copy link
Collaborator

@vsoch vsoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little bit biased, but I've used html-proofer in the past and it tends to have issues because it isn't able to retry, whistlist, or do functionality that we would need. Instead of html-proofer I want to suggest the urlstecher / urlchecker-action:

https://github.com/urlstechie/urlchecker-action

it has huge ability for customization, and includes all the features that html-proofer was lacking (at least when I used it). I'm one of the developers on the project, so I can be responsive to help requests, issues, etc. There is also a nice folder of example github workflow templates to start with.

@vsoch
Copy link
Collaborator

vsoch commented Jun 23, 2020

And some background is here USRSE/usrse.github.io#171 - we literally went through the same steps of having html-proofer to run on travis/circle, and then it was a pain because ephemeral timeouts, etc. would fail the PR.

@Chilipp
Copy link
Member Author

Chilipp commented Jun 24, 2020

Nice @vsoch! I did not know this. Having you as the developer of the testing library onboard is already reason enough for me to use your library due to the better support 😉 would you mind changing the files in this PR to set it up for url-checker? Or shall we do this in a new PR?

@vsoch
Copy link
Collaborator

vsoch commented Jun 24, 2020

If it's okay with you, I think a new PR should be done - this one has quite a bit going on (unless it wasn't rebased?)

@Chilipp
Copy link
Member Author

Chilipp commented Jun 24, 2020

alright, then let's close this, I make a cherry-picked one for the fixes (788ad47, 21bca57, 97b7387, 082bf52 and f31d7f1) and you make a new one for implementing the URL checker. Alright?

@vsoch
Copy link
Collaborator

vsoch commented Jun 24, 2020

If you are going to close, let's just leave it open so I can make sure they work the same. Also, I'm going to bed soon so I hope you don't expect this soon! Feel free to jump in and do the PR if you don't want to wait for me :)

@Chilipp
Copy link
Member Author

Chilipp commented Jun 24, 2020

Sure, it must be really late across the ocean, no worries :D I'd at least already implement the fixes, the url checker can wait until you're awake again, I guess (as the broken links where identified already). Thanks a lot @vsoch!

@Chilipp Chilipp marked this pull request as draft June 24, 2020 05:41
@Chilipp Chilipp mentioned this pull request Jun 24, 2020
@Chilipp Chilipp marked this pull request as ready for review June 24, 2020 21:33
@Chilipp
Copy link
Member Author

Chilipp commented Jun 24, 2020

alright. I merged the master branch and fixed the new problems. So this is ready to be reviewed

@vsoch
Copy link
Collaborator

vsoch commented Jun 24, 2020

My mistake! I did a grep and two showed up (one inside, one outside the _site folder). What about the 404 page url, that was the other url that was missing:

orry, but the page you were trying to view does not exist --- perhaps you can try searching for it below.
Sorry, but the page you were trying to view does not exist.

<script>
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = '{{ site.url }}'
</script>
<script src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
</script>

I'm not sure https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js is online anymore?

@vsoch
Copy link
Collaborator

vsoch commented Jun 24, 2020

Tests pass, so all must be good :)

@Chilipp
Copy link
Member Author

Chilipp commented Jun 24, 2020

true, I excluded 404.html in the check. I'll add your 404.html from e7682cf

@Chilipp
Copy link
Member Author

Chilipp commented Jun 24, 2020

done, thanks @vsoch!

@Chilipp
Copy link
Member Author

Chilipp commented Jun 24, 2020

feel free to approve and merge this PR then @vsoch

@Chilipp Chilipp removed the request for review from eileen-kuehn June 24, 2020 21:59
README.md Outdated Show resolved Hide resolved
mainly account for host with sorse.github.io and
the removed baseurl
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@Chilipp
Copy link
Member Author

Chilipp commented Jun 25, 2020

done @vsoch, these issues existed already in the original README 😅

README.md Outdated Show resolved Hide resolved
@vsoch
Copy link
Collaborator

vsoch commented Jun 25, 2020

And I should probably stop looking, now I just feel bad :) I think it’s good for squash and merge and any remaining details can be addressed later! Perfection is the enemy of the good, something something.

@Chilipp
Copy link
Member Author

Chilipp commented Jun 25, 2020

thanks @vsoch 😆

@Chilipp Chilipp merged commit a8f4ba7 into master Jun 25, 2020
@Chilipp Chilipp deleted the html-proofer branch June 25, 2020 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eMail addresses have no mailto address Programme link in footer broken 'For delegates' broken
2 participants