Skip to content

Conversation

@urfeex
Copy link
Member

@urfeex urfeex commented May 9, 2025

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.

@urfeex urfeex requested a review from a team May 9, 2025 07:52
@codecov
Copy link

codecov bot commented May 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 5.06%. Comparing base (1b121b7) to head (b7aa5c9).
Report is 433 commits behind head on main.

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     
Flag Coverage Δ
unittests 5.06% <ø> (+1.47%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

--cache
--cache-exclude-status 429
--max-cache-age 2d
'./**/*.md' './**/*.html' './**/*.rst' './**/*.cpp' './**/*.h' './**/*.py'
Copy link
Contributor

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?

Copy link
Member Author

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

@urfeex urfeex merged commit d38be8e into UniversalRobots:main May 14, 2025
10 of 15 checks passed
@urfeex urfeex deleted the check_links_lychee branch May 14, 2025 09:39
mergify bot pushed a commit that referenced this pull request May 14, 2025
(cherry picked from commit d38be8e)

# Conflicts:
#	.github/workflows/check_links.yml
#	ur_robot_driver/README.md
urfeex added a commit that referenced this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants