Skip to content

Conversation

anshuman-agarwala
Copy link
Contributor

What this PR does / why we need it:
Added linkcheck to makefile

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

/area provider/ibmcloud

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

Added linkcheck to makefile

@k8s-ci-robot k8s-ci-robot added the area/provider/ibmcloud Issues or PRs related to ibmcloud provider label Jun 26, 2025
Copy link

netlify bot commented Jun 26, 2025

Deploy Preview for kubernetes-sigs-cluster-api-ibmcloud ready!

Name Link
🔨 Latest commit 0a003bc
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-cluster-api-ibmcloud/deploys/68ad3ddb49b4a20008d52986
😎 Deploy Preview https://deploy-preview-2403.cluster-api-ibmcloud.sigs.k8s.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 26, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @anshuman-agarwala. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 26, 2025
@mkumatag
Copy link
Member

@anshuman-agarwala can you mention more information about why we choose this linter and see if there are any other linters exists for the k8s docs and reuse that here!

btw: this image is in docker hub and we may hit with image pull rate limit issue while running it in the k8s cicd infra

@Prajyot-Parab
Copy link
Contributor

can check (ref - https://github.com/kubernetes/website/blob/main/scripts/linkchecker.py), not sure if this would help us in having something similar

@anshuman-agarwala
Copy link
Contributor Author

@mkumatag I've changed the linter since the earlier one was only hosted on dockerhub.
The current linter I have used is being consumed in other sigs projects as well: https://github.com/search?q=org%3Akubernetes-sigs%20markdown-link-check&type=code

@Amulyam24
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 16, 2025
Copy link
Contributor

@Amulyam24 Amulyam24 left a comment

Choose a reason for hiding this comment

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

@anshuman-agarwala, what do you think about adding linkcheck and yamllint as a part of make verify checks ?

@anshuman-agarwala
Copy link
Contributor Author

@anshuman-agarwala, what do you think about adding linkcheck and yamllint as a part of make verify checks ?

That makes sense, I'll add it.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 16, 2025
@anshuman-agarwala anshuman-agarwala force-pushed the linkcheck-make branch 2 times, most recently from 7f22515 to b5c07a0 Compare July 18, 2025 04:19
@Prajyot-Parab
Copy link
Contributor

@anshuman-agarwala any updates on this one?

@anshuman-agarwala
Copy link
Contributor Author

Hi @Prajyot-Parab This PR is blocked till we approve the PR for enabling DIND in test-infra

@mkumatag
Copy link
Member

/retest-required

@Amulyam24
Copy link
Contributor

/retest

@mkumatag
Copy link
Member

I still see this error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? but we need to check if docker daemon is really getting started in this prow job or any additional step required to take care of that!

@mkumatag mkumatag closed this Aug 22, 2025
@Amulyam24
Copy link
Contributor

/close

@k8s-ci-robot
Copy link
Contributor

@Amulyam24: Closed this PR.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@Amulyam24
Copy link
Contributor

/open

@Prajyot-Parab Prajyot-Parab reopened this Aug 22, 2025
@Amulyam24
Copy link
Contributor

/retest

@Amulyam24
Copy link
Contributor

Amulyam24 commented Aug 22, 2025

@anshuman-agarwala, we need to run runner.sh in the job to enable docker. Thanks a lot @Rajalakshmi-Girish for helping with the issue. I shall create a PR for it and we can retrigger the verify job post its merge.

@Rajalakshmi-Girish
Copy link
Contributor

/test pull-cluster-api-provider-ibmcloud-verify

@Rajalakshmi-Girish
Copy link
Contributor

Makefile Outdated
CURR_DIR := $(shell pwd)
.PHONY: verify-yamllint
verify-yamllint:
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(CURR_DIR):/data cytopia/yamllint:latest /data --config-file /data/.yamllint --no-warnings
Copy link
Member

Choose a reason for hiding this comment

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

the input device is not a TTY

may be this error is because of this tty statement here in this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tty error was because I had added -it for local testing, removing it fixed the error.

@anshuman-agarwala
Copy link
Contributor Author

The job works as expected now, it's failing due to broken links in the docs.
Thanks a lot @Amulyam24 @Rajalakshmi-Girish

@Prajyot-Parab
Copy link
Contributor

@mkumatag now that the linkcheck is working and reporting broken links, I think we can add the relevant fixes as part of this PR itself to pass the required check (and close the other PR).

Makefile Outdated
MD_FILES := $(shell find . -iname "*.md")
.PHONY: verify-linkcheck
verify-linkcheck:
docker run --init -w /input -v $(CURR_DIR):/input ghcr.io/tcort/markdown-link-check:3.12 -q -p $(MD_FILES)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
docker run --init -w /input -v $(CURR_DIR):/input ghcr.io/tcort/markdown-link-check:3.12 -q -p $(MD_FILES)
@docker run --init -w /input -v $(CURR_DIR):/input ghcr.io/tcort/markdown-link-check:3.12 -q -p $(MD_FILES)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mkumatag
Copy link
Member

@mkumatag now that the linkcheck is working and reporting broken links, I think we can add the relevant fixes as part of this PR itself to pass the required check (and close the other PR).

let us fix all of these issues :)

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 23, 2025
@anshuman-agarwala
Copy link
Contributor Author

I've fixed the reported issues, all links should be reachable now.

@mkumatag
Copy link
Member

Looking at the above errors/fixes - we may need to limit the scope of this validation,!

Copy link
Member

@mkumatag mkumatag left a comment

Choose a reason for hiding this comment

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

I'm merging this PR for now, lets tackle the comments which are not addressed in a separate one

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 28, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anshuman-agarwala, mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 28, 2025
@k8s-ci-robot k8s-ci-robot merged commit 87be6f7 into kubernetes-sigs:main Aug 28, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/ibmcloud Issues or PRs related to ibmcloud provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants