-
Notifications
You must be signed in to change notification settings - Fork 46
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
WIP: Exclude some domains from link checker #320
Conversation
Relates to #318
Hopefully
Just to see if I've restored the state as expected. If this works, I can fail from the link checker once we have the link errors gone.
Success! At least a little bit. With the exclusions we get this now #323 |
Finally works! Now to get rid of those pesky weekly issues... |
Latest fails due to bad characters in one of the files.
It should! If so, happily revert and remove WIP tag
@sadielbartholomew @DocOtak would either of you have an idea of how to fix this? It's almost there. However:
So currently it gives us a false sense of having right links. I'm at the end of my wits here. Any ideas? The only thing that occurs to me is that we're using an old lychee version. However, if I update to latest, it fails due to some bad characters late in the execution of the Check links job. I'd be grateful if there's any help you could provide here... Or forwarding to others who are more knowledgeable than I ;) |
Hi Daniel, sorry for the late response (I am a bit snowed under with various tasks at the moment). I'll have a look-see sometime today, though I suspect I won't be able to deduce anything you haven't already about this! I will however try... |
I'm starting to push some commits to try to fix the issue, please bare with me (with apologies for directly committing to the branch PR, it's simply a lot easier to do that and you can always revert any changes I make to the workflow in question!). |
No need to apologise, in my view that is a good practice. Thank you! |
Clearly the external actions workflow version isn't the issue. Trying some other approaches... |
Not having much luck but I reckon I can get it to work, despite what my mess of a commit history here suggests 😄 I blame it being a Friday afternoon pre-pub time... I'll have another go later this evening. |
No worries, this one has me stumped too. Regarding the commit history - in the end we'll rebase it so we can understand what happened, so there's no problem there! That's one of the reasons I love git - as granular as you like, and as messy as you are, but it knows how to dress up when it has to. |
Thanks Daniel.
Yes, we'll definitely want to squash down the commits I've made.
Same, I also love git for these reasons, though I think its flexibility is a blessing as well as a curse, in that it can allow you to do pretty much anything and sometimes you really shouldn't be doing something! But in this case, it's a simple case of squashing things so hopefully we can't go wrong... I'm at a conference today and until Wednesday but will continue a bit on this. At this stage, I think I can get something to work with the newer and latest version
but I think that's just because Actions or otherwise doesn't like our output format. I will try updating that to use a different |
Oh, I see GitHub Actions is being marked as 'Degraded' for performance on the GitHub Status site right now, so I might wait until everything is working to avoid the complication of internal issues... |
652331d
to
7a5dace
Compare
Hi @erget, I believe I have now fixed the relevant workflow steps such that it finally works (hallelujah!), although I felt this too on the journey to getting there 😬 :
As for the fix, and RE your tip which was a good clue (thanks):
ultimately the lack of the job step failing was due to using the older version of See the job run for my final commit as a confirmation of the behaviour (failure for the right reason!). The output of that step is now as it was before (at least, the output nature, the results change a bit but with link timeout results that can be expected), but crucially the non-zero exit code fails the job step as you wanted: Run lycheeverse/lychee-action@master
Run curl -sLO 'https://github.com/lycheeverse/lychee/releases/download/v0.10.3/lychee-v0.10.3-x86_64-unknown-linux-gnu.tar.gz'
lychee
Run /home/runner/work/_actions/lycheeverse/lychee-action/master/entrypoint.sh
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/053657.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2012/055875.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/05[23](https://github.com/cf-convention/cf-convention.github.io/actions/runs/3970131343/jobs/6805495779#step:3:25)34.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052705.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/048064.html | Failed: Network error: Not Found
✗ [404] https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2009/047768.html | Failed: Network error: Not Found
## Summary
| Status | Count |
|---------------|-------|
| 🔍 Total | 350 |
| ✅ Successful | 337 |
| ⏳ Timeouts | 0 |
| 🔀 Redirected | 0 |
| 👻 Excluded | 7 |
| ❓ Unknown | 0 |
| 🚫 Errors | 6 |
## Errors per input
### Errors in faq.md
* [404] [https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2012/055875.html](https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2012/055875.html) | Failed: Network error: Not Found
* [404] [https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2009/047768.html](https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2009/047768.html) | Failed: Network error: Not Found
* [404] [https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052705.html](https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052705.html) | Failed: Network error: Not Found
* [404] [https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052334.html](https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2008/052334.html) | Failed: Network error: Not Found
* [404] [https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/048064.html](https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/048064.html) | Failed: Network error: Not Found
* [404] [https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/05[36](https://github.com/cf-convention/cf-convention.github.io/actions/runs/3970131343/jobs/6805495779#step:3:39)57.html](https://mailman.cgd.ucar.edu/pipermail/cf-metadata/2010/053657.html) | Failed: Network error: Not Found
Error: Process completed with exit code 2. (The final message is not the most informative but it's clear enough from the report that I've done a self-review but please can you take a quick look and confirm that it is behaving as expected now i.e. failing for the right reason rather than the wrong one! Notably, I don't see a quick way to test that it passes the job step with a successful run finding no bad links i.e. Otherwise, I've tidied up by squashing all of my fix commits into a small number of self-contained blocks. If you could do that with yours (I didn't want to edit your work by squashing them myself) that would be great. |
Also, the point (quoting myself in my previous comment):
raises the question of what files exactly we want to check with regards to links. Notably, do we want to check all markdown files (i.e. the glob FYI, if you want to see the results of the latter, you can check the Actions outputs for my commit e37d569, noting that it checks many more links and finds more errors, but whether they are relevant I am not sure:
|
cfeditor.ceda.ac.uk | ||
wps-web1.ceda.ac.uk | ||
http://kitt.llnl.gov/trac/wiki/SatelliteData |
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.
We could move these link exclusions to the workflow file (check_links.yml
) now via using --exclude <link>
in the args
, perhaps, just to keep everything together and since there are only a small number so that it won't bulk up the arg
command too much?
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.
I think that's a good idea, then everything's in one place 👍
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.
Thanks Daniel - shall I make that conversion now? Or would you like to review first?
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.
No, go ahead - it'll be transparent in the commit history. I'll cross-check, but with the intent of helping you have peace of mind, not because I feel the need to control.
@sadielbartholomew thanks for this - prima fascia I think this is great, I'd like to give it the review it deserves so will come back to this in more detail later this week. Hopefully this lets us work on the real issues from here out rather than false positives! |
@erget and @sadielbartholomew can you update the status of this PR? Currently, has some conflicts, I think minor, but they can grow with more commits. |
@cofinoa thanks for prompting, I was way behind here. I've resolved the conflicts. @sadielbartholomew I'm happy to merge this, are you? |
Looks like the domain exclusions aren't sufficient and there are still a few other problems to solve but it might be good to merge this now so that we're getting fewer errors and continue weeding by keeping this PR alive post-merge. And of course squash when merging. |
Relates to #318