-
Notifications
You must be signed in to change notification settings - Fork 40
WIP : Add CI check for broken links #936
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
base: main
Are you sure you want to change the base?
Conversation
|
@ranjinimn @fsundermeyer - from local testing I don't think linkspector will work for this as it doesn't consider URLs which contain attributes - can you offer any guidance re alternative ways to catch broken links? |
Can you give me an example of the URLs that contain attributes? I generally build the document locally using DAPS and it validates all the broken links. |
@ranjinimn there are many places where we template the URL based on versions, for example: So I think this tool cannot work with attributes - can you expand on your local testing with daps, and how it differs from our current check workflow? What triggered my investigation here is we currently have some broken links which are not found by building via daps in our CI, for example see https://github.com/suse-edge/suse-edge.github.io/blob/release-3.3/asciidoc/edge-book/releasenotes.adoc which references https://github.com/rancher/rancher/releases/download/v2.11.6/rancher-images.txt - this link no longer works requiring some fixes ref #937 |
|
@hardys I checked all the three links in the 3.3 and 3.4 version of the Edge document and they are directing me to the respective content. Let's wait for inputs from @fsundermeyer |
My point wasn't that those links are broken - only that we can't use this tool to check for actually broken links, because it doesn't understand how to handle links with attributes in them. I'm looking for alternative approaches which we can use to catch actually broken links in future, suggestions welcome! :) |
|
TL;DR DAPS contains a link checker that you could use
@hardys What is this |
|
@fsundermeyer thanks a lot for the insights - the Not using attributes for links may be workable - if we keep all the links in one file we can use sed to replace all-the-versions when bumping, my main concern is people may forget (particularly when doing minor version updates for z-stream releases), perhaps it's possible to write a small script to check though. I am also aware that our check job is using an old daps image built by @agracey ref https://github.com/suse-edge/suse-edge.github.io/blob/main/.github/workflows/test-deploy.yml#L26 - I don't recall exactly why we needed that but perhaps it's a good time to review and decide if we can align better with how other projects are tested, any guidance on that? |
No description provided.