Skip to content

all: Fix broken links and add GitHub Actions workflow for link checking#903

Merged
Mossaka merged 5 commits intocontainerd:mainfrom
Mossaka:linkCheck
Mar 24, 2025
Merged

all: Fix broken links and add GitHub Actions workflow for link checking#903
Mossaka merged 5 commits intocontainerd:mainfrom
Mossaka:linkCheck

Conversation

@Mossaka
Copy link
Copy Markdown
Member

@Mossaka Mossaka commented Mar 6, 2025

This PR does two things:

  1. Fixed all the broken links in the docs
  2. Add a linkChecker job to the CI/CD pipelines. It does so in a two-phase checking. The first phase is to run per PR and does not fail the PR if the links are broken. This is becasue links might not be live prior to deployment. The second phase runs after deployment of runwasi.dev and create or update issues if broken links are found.

@Mossaka Mossaka changed the title ci: Add GitHub Actions workflow for link checking all: Fix broken links andaAdd GitHub Actions workflow for link checking Mar 6, 2025
@jprendes jprendes changed the title all: Fix broken links andaAdd GitHub Actions workflow for link checking all: Fix broken links and add GitHub Actions workflow for link checking Mar 6, 2025
@jprendes
Copy link
Copy Markdown
Collaborator

jprendes commented Mar 6, 2025

I think we need to increase the 5min timeout on the build jobs, it's the second time I see is hitting it.

@Mossaka
Copy link
Copy Markdown
Member Author

Mossaka commented Mar 6, 2025

I think we need to increase the 5min timeout on the build jobs, it's the second time I see is hitting it.

Sure!

@Mossaka Mossaka requested a review from jsturtevant March 6, 2025 17:25
@Mossaka
Copy link
Copy Markdown
Member Author

Mossaka commented Mar 7, 2025

Just to clarify, do you want me to bump the timeout in this PR? @jprendes

@jprendes
Copy link
Copy Markdown
Collaborator

jprendes commented Mar 7, 2025

No, doesn't need to be here.

Copy link
Copy Markdown
Contributor

@devigned devigned left a comment

Choose a reason for hiding this comment

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

I added some feedback about different types of links. Please consider the link check timing.

Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md
Comment thread CONTRIBUTING.md
Comment thread CONTRIBUTING.md
### End to End tests

The e2e test run on [k3s](https://k3s.io/) and [kind](https://kind.sigs.k8s.io/). A test image is built using [oci-tar-builder](./crates/oci-tar-builder/) and is loaded onto the clusters. This test image is not pushed to an external registry so be sure to use the Makefile targets to build the image and load it on the cluster.
The e2e test run on [k3s](https://k3s.io/) and [kind](https://kind.sigs.k8s.io/). A test image is built using [oci-tar-builder](https://github.com/containerd/runwasi/tree/main/crates/oci-tar-builder) and is loaded onto the clusters. This test image is not pushed to an external registry so be sure to use the Makefile targets to build the image and load it on the cluster.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think floating links like this would be most desirable in the docs since a PR moving or removing the file should cause a failure of the link check.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

what are floating links? Do you mean links like ./crates/oci-tar-builder/? The issue with this is that in runwasi.dev it can't read links outside of the /docs folder so the linkChecker would fail.

Comment thread README.md
## Contributing

To begin contributing, please read our [Contributing Guide](https://runwasi.dev/developer/contributing.html).
To begin contributing, please read our [Contributing Guide](https://runwasi.dev/CONTRIBUTING.html).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think anything based on checking runwasi.dev will fail only after runwasi.dev is deployed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

How about a two phase linking strategy?

  1. Run link checkers for every PR, skip checking links to runwasi.dev or do not fail the PRs if there are errors related to links not found on runwasi.dev
  2. Run another link checker for every deployment of the runwasi.dev and make sure that the links are working in the livesite.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

To elaborate more on the second point, I've added a action to create a GitHub issue for broken links it finds at post-deployment of runwasi.dev.

Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Mossaka added 2 commits March 20, 2025 22:12
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Mossaka added 2 commits March 20, 2025 22:41
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
This workflow runs after the deployment of the runwasi.dev website to check for broken links.

Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Copy link
Copy Markdown
Contributor

@devigned devigned left a comment

Choose a reason for hiding this comment

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

lgtm!

@Mossaka Mossaka merged commit 2435149 into containerd:main Mar 24, 2025
79 checks passed
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.

3 participants