-
Notifications
You must be signed in to change notification settings - Fork 305
Check links using lychee instead of a custom script #1355
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
also on failed check
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1355 +/- ##
========================================
+ Coverage 3.59% 5.06% +1.47%
========================================
Files 13 33 +20
Lines 947 3436 +2489
Branches 152 424 +272
========================================
+ Hits 34 174 +140
- Misses 843 3260 +2417
+ Partials 70 2 -68
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
.github/workflows/check_links.yml
Outdated
| --cache | ||
| --cache-exclude-status 429 | ||
| --max-cache-age 2d | ||
| './**/*.md' './**/*.html' './**/*.rst' './**/*.cpp' './**/*.h' './**/*.py' |
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.
Probably just me that is not fully into the lychee framework, but was is the purpose of this argument, it doesn't seem to be tied to any argument?
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.
That's the files that are going to be checked. I'll change it such that that's the last argument
(cherry picked from commit d38be8e) # Conflicts: # .github/workflows/check_links.yml # ur_robot_driver/README.md
) (#1361) Co-authored-by: Felix Exner <[email protected]>
Recently, our check_links workflow was failing very often, apparently GitHub has introduced new rate limits. I played around with lychee, a tool specifically made for link checking, which supports caching and even understands local links in Markdown and RST files.
It is significantly faster and allows caching built-in. And it helped me find three dead (local) links in the robot_driver's README.
Note: I expect things to fail with the initial run, as the cache has to be built up first.