cluster-api icon indicating copy to clipboard operation
cluster-api copied to clipboard

Deprecation Notice: Replace deprecated `gaurav-nelson/github-action-markdown-link-check`

Open Okabe-Junya opened this issue 7 months ago • 14 comments

/kind cleanup

Background

About two weeks ago, gaurav-nelson/github-action-markdown-link-check was marked as deprecated:

cf. https://github.com/gaurav-nelson/github-action-markdown-link-check

This repository is now ⛔️ deprecated and is no longer actively maintained.
For support and further development, please use the maintained fork available at Tcort GitHub Action Markdown Link Check.

Since this repository currently uses gaurav-nelson/github-action-markdown-link-check, we need to clean it up appropriately.

https://github.com/kubernetes-sigs/cluster-api/blob/c8d8f4ead1e958d32b6c47045cbde394a54f487a/.github/workflows/pr-md-link-check.yaml#L18

https://github.com/kubernetes-sigs/cluster-api/blob/c8d8f4ead1e958d32b6c47045cbde394a54f487a/.github/workflows/weekly-md-link-check.yaml#L23

While the forked at tcort/github-action-markdown-link-check is suggested, it may still be too early to rely on that action.

Question:

How should we handle this deprecation in our workflow?

Okabe-Junya avatar Apr 29 '25 18:04 Okabe-Junya

xref.

  • https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues/5598
  • https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/issues/3445

Okabe-Junya avatar Apr 29 '25 18:04 Okabe-Junya

/area ci

Okabe-Junya avatar Apr 29 '25 18:04 Okabe-Junya

It seems like to be just shell scripts. Just an idea, we can still be using it by just moving it to this repo, then pass the argument to the script, then, as a by-product, the workflow will become shell script, so we can easily debug on local machine.

What do you think? /cc @fabriziopandini @chrischdi

sivchari avatar May 02 '25 15:05 sivchari

I agree that this workflow is nothing more than a shell script. We could implement such a script ourselves as needed (right away).

Looking at the CodeSearch results, the same action is used in several repos.

  • FYI: https://cs.k8s.io/?q=gaurav-nelson%2Fgithub-action-markdown-link-check&i=nope&literal=nope&files=&excludeFiles=&repos=

One of the great things about GitHub Actions is reusable workflows — we can easily use a workflow in other repositories. Rather than duplicating this small, identical script across each repo, it would be nice to have some reusable mechanism.

Do you have any good ideas?

Okabe-Junya avatar May 02 '25 17:05 Okabe-Junya

Hey @Okabe-Junya I've made the workflow to check markdown link by using linkspector that is alternative tool of markdown-link-check. This workflow can work expectedly. PTAL 🙏 https://github.com/kubernetes-sigs/cluster-api/pull/12146

sivchari avatar May 03 '25 13:05 sivchari

Does kubernetes (e.g. website) have a link checker we could migrate to?

Maybe worth asking in sig-docs?

chrischdi avatar May 14 '25 14:05 chrischdi

/priority backlog

chrischdi avatar May 14 '25 14:05 chrischdi

/triage accepte

chrischdi avatar May 14 '25 14:05 chrischdi

@chrischdi: The label(s) triage/accepte cannot be applied, because the repository doesn't have them.

In response to this:

/triage accepte

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 avatar May 14 '25 14:05 k8s-ci-robot

/triage accepted

chrischdi avatar May 14 '25 14:05 chrischdi

/help

chrischdi avatar May 14 '25 14:05 chrischdi

@chrischdi: This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to this:

/help

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 avatar May 14 '25 14:05 k8s-ci-robot

Does kubernetes (e.g. website) have a link checker we could migrate to?

Maybe worth asking in sig-docs?

As far as I know, there isn't any.

Since I'm not familiar with popular OSS for link checkers, it would be beneficial for the community to have a reusable script (like reusable GitHub Actions). It could be worth investigating how CNCF org or other CNCF communities are handling this issue

Okabe-Junya avatar May 14 '25 15:05 Okabe-Junya

As far as I know, there isn't any.

Let's ask please if we're not 100% sure

sbueringer avatar May 14 '25 15:05 sbueringer