Skip to content
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

Lots of new failures since release 1.0.14 #127

Open
rfay opened this issue Mar 15, 2022 · 27 comments
Open

Lots of new failures since release 1.0.14 #127

rfay opened this issue Mar 15, 2022 · 27 comments

Comments

@rfay
Copy link

rfay commented Mar 15, 2022

Suddenly (apparently with release of 1.0.14) I get piles and piles of link-check failures.

See https://github.com/drud/ddev/runs/5561841543?check_suite_focus=true for example, but it's quite consistent.

  • Several external links show as 503
  • Several relative links to markdown files show 400 (but there are plenty that don't)

All the checks are in open-source stuff, you can easily see what's going on,

@rfay
Copy link
Author

rfay commented Mar 15, 2022

Rolling back to 1.0.13 in ddev/ddev#3706 does in fact fix all the markdown link errors. There are still two weird external 503s, but those can simply be ignored I guess. The two 503s are to things on php.net; curls to those URLs come out clean, but apparently curls from inside this action result in 503s.

@gaurav-nelson
Copy link
Owner

@rfay Thank you for reporting this. I'll check this one again to see what is happening. Otherwise revert back v1 to the old build.

@gaurav-nelson
Copy link
Owner

@rfay as a temporary fix, I've moved v1 back to 1.0.13. I still have to check why new mlc version is causing so many broken links.

@mockersf
Copy link

with the 1.0.14, links to anchors in a markdown files are failing the check

@jakemac53
Copy link

jakemac53 commented Mar 24, 2022

We are also getting failures for links to anchors in the current file, https://github.com/dart-lang/build/runs/5681705762#step:4:336

@gaurav-nelson
Copy link
Owner

I've marked v1.0.14 as a per-release version. Latest version on markdown-link-check includes checks for anchor links and that is causing lots of failed links.

pabloest added a commit to semgrep/semgrep-docs that referenced this issue Apr 8, 2022
* Fix broken link

* Temp disable custom Markdown link checker config to troubleshoot false negatives

* Fix 2 broken links

* Specify MLC v@1.0.13 since the current v1 has many relative link failures

per: gaurav-nelson/github-action-markdown-link-check#127

* Wrap localhost link in ticks

* Allow 429s as alive status code

* Intentionally introduce broken link

* Add missing https to link

* Update mlc config

* Revert "Intentionally introduce broken link"

This reverts commit 6f9d583.

* Go back to checking only modified files instead of the whole project

* Add scheduled link checker to prevent link rot

* Add scheduled link checker to prevent link rot
@Adafede
Copy link

Adafede commented Apr 15, 2022

I am also experiencing lot of 503 on links that should not...

https://doi.org/10.1073/pnas.1509788112
https://doi.org/10.1111/2041-210X.12593

for example

@pacroy
Copy link

pacroy commented Apr 20, 2022

Same issue on relative link even on v1 (48954f3)

  ERROR: 1 dead links found!
  [✖] #inputs → Status: 404

jfaurskov added a commit to Azure/ALZ-Bicep that referenced this issue Apr 20, 2022
* Add check for vWan NW connection

* test commit

* bogus commit

* remove bogus

* add vwan nwc step

* add missing ne to condition

* update condition to ensure that vwan gets deployed

* correct bicep file

* trigger vwan nwc

* Update conditions to include gitVwanNwcOUTPUT

* fix commandline

* remove trigger

* pin to v1.0.13 due to upstream bug

gaurav-nelson/github-action-markdown-link-check#127

* remove v for version

Co-authored-by: Jack Tracey <41163455+jtracey93@users.noreply.github.com>
@gaurav-nelson
Copy link
Owner

I tried debugging it and testing it locally but couldn't yet put my head around it. I couldn't even get it to work locally with markdown-link-check version 3.8.7 which is what this action was using in 1.0.13. I see it is checking anchor links by default. You are welcome to debug this issue. I think something changed in one of the dependencies of markdown-link-check module which is causing the issues. I'm not sure yet.

@pacroy
Copy link

pacroy commented Apr 20, 2022

Same issue on relative link even on v1 (48954f3)

  ERROR: 1 dead links found!
  [✖] #inputs → Status: 404

Thanks. This issue seems to be fixed already. 😄

@AleksanderBrzozowski
Copy link

We experienced the same problem when running check using markdown-link-check@3.9.3.
Switching to version markdown-link-check@3.8.7 works OK.

@gaurav-nelson When do you plan to release new version of the action which would contain downgrade to 3.8.7? ;)

@gaurav-nelson
Copy link
Owner

@AleksanderBrzozowski v1 is using 3.8.7 which was my last commit 5c5dfc0

Comparison between v1 and v1.0.13 1.0.13...v1

I'm not sure why but when I test even with 1.0.13 I still get failed anchor links.

@AleksanderBrzozowski
Copy link

Hm, is it possible to find which version of the markdown-link-check was used within action?
I looked at logs and I couldn't find information about version :/

@gaurav-nelson
Copy link
Owner

gaurav-nelson commented Apr 21, 2022

@AleksanderBrzozowski yes its not in the logs. The version flag was implemented after mlc 3.8.7.

Can you try installing locally and check npm i -g markdown-link-check@3.8.7 and then run the command to check a markdown file. I get failed anchor links. Which shouldn't be happening, but I guess some other mlc dependency is causing the issue.

@AleksanderBrzozowski
Copy link

ok, I use the action to check links in docs from this project.

When I run:

find docs/docs -name '*.md' -exec npx markdown-link-check@3.8.7 -v -c .github/workflows/markdown-links-config.json {} \;

Everything works ok, no errors reported.

However, with version 3.9.1 it fails:

find docs/docs -name '*.md' -exec npx markdown-link-check@3.9.1 -v -c .github/workflows/markdown-links-config.json {} \;

# example errors from logs:
FILE: docs/docs/configuration/kafka-and-zookeeper.md
  [✖] #multiple-kafka-and-zookeeper-clusters → Status: 404
  [✖] #single-kafka-cluster → Status: 404

@AleksanderBrzozowski
Copy link

@gaurav-nelson Can you check above? Are you sure that new version of the action has been successfully uploaded?

@gaurav-nelson
Copy link
Owner

@AleksanderBrzozowski I still can't make 1.0.13 work. For me it is failing on anchors PS: https://github.com/gaurav-nelson/test-mlc-action/runs/6185868294?check_suite_focus=true

@AleksanderBrzozowski
Copy link

Hm, it looks like that our workflow has picked up recent version, and everything started to work again ;)
Is there any possibility to check which version of the action was used in a job?
Here are logs from recent job run, the job is scheduled to execute every week.

@gaurav-nelson
Copy link
Owner

gaurav-nelson commented Apr 29, 2022

¯\_(ツ)_/¯ I'm not sure what's going on. I'll update the script to list out all the node modules in use and their version.

@gaurav-nelson
Copy link
Owner

@AleksanderBrzozowski PS: #137 Let me know if that is enough and I'll add it to v1.0.13 and v1

@AleksanderBrzozowski
Copy link

PR approved. I saw the logs of one of the checks and it looks nice :)

@danyalaytekin
Copy link
Contributor

danyalaytekin commented Jul 12, 2022

UPDATE:
Probably a misunderstanding about the action's permissions. Nothing to see here...


As far as I can tell, from testing the last couple of days:

  • v1 fixes the Git issue, but not the 404 issue
  • 1.0.13 may well fix the 404 issue, but I can't get around the Git issue

Any advice?

@gaurav-nelson
Copy link
Owner

@danyalaytekin @rfay @AleksanderBrzozowski I've updated 1.0.14 which includes latest mlc version and fixes some other issues. Can you check and confirm if that solves your problem?

@rfay
Copy link
Author

rfay commented Aug 3, 2022

@gaurav-nelson if I understand you correctly you "updated" 1.0.14 rather than releasing a new version. Please don't ever do that. An existing release should never be changed. Rather, release a new version, like a v1.0.15.

I'll do a PR on DDEV to check v1.0.14

@rfay
Copy link
Author

rfay commented Aug 3, 2022

I got a successful run, but I note I had added

  "httpHeaders": [
    {
      "urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"],
      "headers": {
        "Accept-Encoding": "zstd, br, gzip, deflate"
      }
    }
  ],

to markdown-link-check.json... wasn't that part of this issue?

@AleksanderBrzozowski
Copy link

I got a successful run too :)
In my case, there wasn't any change in a configuration file.

@gaurav-nelson
Copy link
Owner

Thank you @rfay @AleksanderBrzozowski for testing it out.

@rfay That is a custom option people need to specify in the configuration file. I've added it to README at https://github.com/gaurav-nelson/github-action-markdown-link-check#github-links-failure-fix

Thank you for recommending about releasing a new version. I'll make sure I don't overwrite versions.

omokshyna added a commit to mzmine/mzmine_documentation that referenced this issue Aug 15, 2022
Removing (for the moment) active URLs from references due to multiple gaurav link check failures due to the known issue - gaurav-nelson/github-action-markdown-link-check#127
EliahKagan added a commit to EliahKagan/userstyles that referenced this issue Jan 15, 2023
This downgrades the markdown-link-check action from v1 to 1.0.13 (which points to an earlier commit) to see if the 503 errors I'm getting are related to:

gaurav-nelson/github-action-markdown-link-check#127
EliahKagan added a commit to EliahKagan/Flood that referenced this issue Jan 15, 2023
Moving from v1 to 1.0.14 fixed the wrong 503 errors, but gave many new errors for hash links (links to specific sections).

It's probably gaurav-nelson/github-action-markdown-link-check#127, in which case switching to 1.0.13 won't fix the hash link problem, but I want to try that before attempting to fix both problems at once by specifying branches or untagged commits.
EliahKagan added a commit to EliahKagan/Flood that referenced this issue Jan 15, 2023
* Enable markdown-link-check

https://github.com/marketplace/actions/markdown-link-check

* Use markdown-link-check 1.0.14

To fix HTTP 503 errors I shouldn't be getting.

This change fixed it in three other repos:

- EliahKagan/userstyles#1
- EliahKagan/muntineer#2
- EliahKagan/fps#1

* Fix typo in referenced version tag name

* Try markdown-link-check 1.0.13

Moving from v1 to 1.0.14 fixed the wrong 503 errors, but gave many new errors for hash links (links to specific sections).

It's probably gaurav-nelson/github-action-markdown-link-check#127, in which case switching to 1.0.13 won't fix the hash link problem, but I want to try that before attempting to fix both problems at once by specifying branches or untagged commits.

* Try tip of master

For markdown-link-check.

* Back to v1

* Work around fussy links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants