-
Notifications
You must be signed in to change notification settings - Fork 92
Added linkcheck to makefile #2403
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
Added linkcheck to makefile #2403
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-ibmcloud ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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 Once the patch is verified, the new status will be reflected by the 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. |
@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 |
can check (ref - https://github.com/kubernetes/website/blob/main/scripts/linkchecker.py), not sure if this would help us in having something similar |
22848bc
to
a4f2f81
Compare
@mkumatag I've changed the linter since the earlier one was only hosted on dockerhub. |
/ok-to-test |
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.
@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. |
a4f2f81
to
834913f
Compare
7f22515
to
b5c07a0
Compare
@anshuman-agarwala any updates on this one? |
Hi @Prajyot-Parab This PR is blocked till we approve the PR for enabling DIND in test-infra |
/retest-required |
/retest |
I still see this error: |
/close |
@Amulyam24: Closed this PR. In response to this:
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. |
/open |
/retest |
@anshuman-agarwala, we need to run |
/test pull-cluster-api-provider-ibmcloud-verify |
@Amulyam24 seems like https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_cluster-api-provider-ibmcloud/2403/pull-cluster-api-provider-ibmcloud-verify/1958882459022004224 failed for a different reason. DinD error is solved now. |
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 |
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.
the input device is not a TTY
may be this error is because of this tty statement here in this line
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.
The tty error was because I had added -it
for local testing, removing it fixed the error.
b5c07a0
to
c64bce1
Compare
The job works as expected now, it's failing due to broken links in the docs. |
@mkumatag now that the |
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) |
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.
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) |
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.
Done
let us fix all of these issues :) |
c64bce1
to
9848bb8
Compare
I've fixed the reported issues, all links should be reachable now. |
Looking at the above errors/fixes - we may need to limit the scope of this validation,! |
9848bb8
to
0a003bc
Compare
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.
I'm merging this PR for now, lets tackle the comments which are not addressed in a separate one
/lgtm
[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 |
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
Release note: