8000 Update markdown test tools by RDIL · Pull Request #14325 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@RDIL
Copy link
Contributor
@RDIL RDIL commented Dec 4, 2020

Signed-off-by: Reece Dunham me@rdil.rocks

PR Summary

  • Update the external markdown testing tools to the latest version

PR Context

Staying somewhat up-to-date

PR Checklist

@ghost ghost assigned anmenaga Dec 4, 2020
@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 5, 2020
2020-12-04T21:26:40.2433904Z       [-] https://github.com/powershell/powershell-rfc → Status: 429 should work 60.18s
2020-12-04T21:26:40.2467358Z         RuntimeException: Failed to complete request to "https://github.com/powershell/powershell-rfc → Status: 429". Response status code does not indicate success: 404 (Not Found).
2020-12-04T21:26:40.2469184Z         at <ScriptBlock>, /home/vsts/work/1/s/test/common/markdown/markdown-link.tests.ps1: line 119

HTTP 429 -> Too many requests

Related upstream issue: tcort/markdown-link-check#101

@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 5, 2020

Related upstream issue: tcort/markdown-link-check#101

The issue is fixed in tcort/markdown-link-check#106 but there is not yet a markdown-link-check release with these changes (see tcort/markdown-link-check#141) Fixed in v3.8.4.

@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 5, 2020

It seems markdown-link-check is making a HTTP GET request for every URL. This is not ideal behaviour for large binaries, to say the least:

PowerShell/README.md

Lines 65 to 112 in ea3036d

[lts-windows-86]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell-7.0.3-win-x86.msi
[lts-windows-64]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell-7.0.3-win-x64.msi
[lts-ubuntu18]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-lts_7.0.3-1.ubuntu.18.04_amd64.deb
[lts-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-lts_7.0.3-1.ubuntu.16.04_amd64.deb
[lts-debian9]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-lts_7.0.3-1.debian.9_amd64.deb
[lts-debian10]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-lts_7.0.3-1.debian.10_amd64.deb
[lts-centos]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-lts-7.0.3-1.rhel.7.x86_64.rpm
[lts-centos8]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-lts-7.0.3-1.centos.8.x86_64.rpm
[lts-macos]: https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-lts-7.0.3-osx-x64.pkg
[rl-windows-64]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x64.msi
[rl-windows-86]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x86.msi
[rl-ubuntu20]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell_7.1.0-1.ubuntu.20.04_amd64.deb
[rl-ubuntu18]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell_7.1.0-1.ubuntu.18.04_amd64.deb
[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell_7.1.0-1.ubuntu.16.04_amd64.deb
[rl-debian9]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell_7.1.0-1.debian.9_amd64.deb
[rl-debian10]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell_7.1.0-1.debian.10_amd64.deb
[rl-debian11]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell_7.1.0-1.debian.11_amd64.deb
[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-1.rhel.7.x86_64.rpm
[rl-centos8]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-1.centos.8.x86_64.rpm
[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-osx-x64.pkg
[rl-winarm64]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-arm64.zip
[rl-winx86-zip]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x86.zip
[rl-winx64-zip]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x64.zip
[rl-macos-tar]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-osx-x64.tar.gz
[rl-linux-tar]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-linux-x64.tar.gz
[rl-arm32]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-linux-arm32.tar.gz
[rl-arm64]: https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-linux-arm64.tar.gz
[rl-snap]: https://snapcraft.io/powershell
[pv-windows-64]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/PowerShell-7.2.0-preview.1-win-x64.msi
[pv-windows-86]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/PowerShell-7.2.0-preview.1-win-x86.msi
[pv-ubuntu20]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview_7.2.0-preview.1-1.ubuntu.20.04_amd64.deb
[pv-ubuntu18]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview_7.2.0-preview.1-1.ubuntu.18.04_amd64.deb
[pv-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview_7.2.0-preview.1-1.ubuntu.16.04_amd64.deb
[pv-debian9]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview_7.2.0-preview.1-1.debian.9_amd64.deb
[pv-debian10]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview_7.2.0-preview.1-1.debian.10_amd64.deb
[pv-debian11]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview_7.2.0-preview.1-1.debian.11_amd64.deb
[pv-centos]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview-7.2.0_preview.1-1.rhel.7.x86_64.rpm
[pv-centos8]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-preview-7.2.0_preview.1-1.centos.8.x86_64.rpm
[pv-macos]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-7.2.0-preview.1-osx-x64.pkg
[pv-winarm64]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/PowerShell-7.2.0-preview.1-win-arm64.zip
[pv-winx86-zip]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/PowerShell-7.2.0-preview.1-win-x86.zip
[pv-winx64-zip]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/PowerShell-7.2.0-preview.1-win-x64.zip
[pv-macos-tar]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-7.2.0-preview.1-osx-x64.tar.gz
[pv-linux-tar]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-7.2.0-preview.1-linux-x64.tar.gz
[pv-arm32]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-7.2.0-preview.1-linux-arm32.tar.gz
[pv-arm64]: https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.1/powershell-7.2.0-preview.1-linux-arm64.tar.gz

@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 5, 2020

@RDIL Please update markdown-link-check to v3.8.4.

@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 5, 2020

PowerShell-CI-static-analysis still has HTTP error 429 -> Too many requests

@iSazonov
Copy link
Collaborator
iSazonov commented Dec 9, 2020

PowerShell-CI-static-analysis still has HTTP error 429 -> Too many requests

We need update markdown-link-check config or commandline with

retryOn429 if this is true then retry request when response is an HTTP code 429 after the duration indicated by retry-after header.

8000

@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 9, 2020

Documentation should be updated as well:

#### Checking links in documentation
Documentation is link-checked. We make use of the
markdown-link-check command line tool,
which can be run to see if any links are dead.
To run the link-checker, follow these steps:
* install [Node.js](https://nodejs.org/en/) (v6.4.0 or up)
* install markdown-link-check by
`npm install -g markdown-link-check@3.7.2` (v3.7.2 **only**)
* run `find . \*.md -exec markdown-link-check {} \;`

@iSazonov iSazonov added the CL-Tools Indicates that a PR should be marked as a tools change in the Change Log label Dec 9, 2020
@RDIL
Copy link
Contributor Author
RDIL commented Dec 9, 2020

@PoshChan please rerun linux

@PoshChan
Copy link
Collaborator
PoshChan commented Dec 9, 2020

@RDIL, you are not authorized to request a rebuild

@RDIL
Copy link
Contributor Author
RDIL commented Dec 9, 2020

Fine, I'll do it myself.

@RDIL RDIL closed this Dec 9, 2020
@RDIL RDIL reopened this Dec 9, 2020
@RDIL RDIL closed this Dec 15, 2020
@RDIL RDIL reopened this Dec 15, 2020
@RDIL RDIL closed this Dec 15, 2020
@RDIL RDIL reopened this Dec 15, 2020
@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 15, 2020

PowerShell-CI-static-analysis (Markdown and Common Tests):

Verify Markdown Links.Verify links in /home/vsts/work/1/s/docs/learning-powershell/powershell-beginners-guide.md.https://www.computerperformance.co.uk/powershell/index.htm should work

Connection timed out

@xtqqczze
Copy link
Contributor
xtqqczze commented Dec 15, 2020

PowerShell-CI-static-analysis (Markdown and Common Tests):

Verify Markdown Links.Verify links in /home/vsts/work/1/s/docs/learning-powershell/powershell-beginners-guide.md.https://www.computerperformance.co.uk/powershell/index.htm should work

Connection timed out

Look like a transient failure, but I've submitted #14431 to update the 301 redirect.

Computer Performance
Windows PowerShell Tutorial. An introducton to Microsoft's latest Windows scripting language. Learn PowerShell and master WMI. Replace VBScript and CMD with the PS command line.

@RDIL
Copy link
Contributor Author
RDIL commented Dec 15, 2020

PowerShell-CI-static-analysis (Markdown and Common Tests):
Verify Markdown Links.Verify links in /home/vsts/work/1/s/docs/learning-powershell/powershell-beginners-guide.md.https://www.computerperformance.co.uk/powershell/index.htm should work
Connection timed out

Look like a transient failure, but I've submitted #14431 to update the 301 redirect.

Computer Performance**Windows PowerShell Tutorial - Introduction Microsoft's new scripting language**Windows PowerShell Tutorial. An introducton to Microsoft's latest Windows scripting language. Learn PowerShell and master WMI. Replace VBScript and CMD with the PS command line.

I'll rebase once that gets merged.

Computer Performance
Windows PowerShell Tutorial. An introducton to Microsoft's latest Windows scripting language. Learn PowerShell and master WMI. Replace VBScript and CMD with the PS command line.

@RDIL RDIL changed the title Update markdown test tools [On Hold] Update markdown test tools Dec 15, 2020
@xtqqczze
Copy link
Contributor

I'll rebase once that gets merged.

@RDIL No need wait for that PR, failures in PowerShell-CI-static-analysis have not persisted.

@ghost ghost added the Review - Needed The PR is being reviewed label Dec 23, 2020
@ghost
Copy link
ghost commented Dec 23, 2020

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@RDIL RDIL changed the title [On Hold] Update markdown test tools Update markdown test tools Dec 23, 2020
@RDIL
Copy link
Contributor Author
RDIL commented Dec 24, 2020

Whoops, that wasn't supposed to happen - sorry for anybody that got pinged due to my rebase, it usually doesn't do that!

@RDIL RDIL requested a review from iSazonov December 24, 2020 17:06
@iSazonov iSazonov merged commit 4a09585 into PowerShell:master Jan 12, 2021
@ghost ghost removed the Review - Needed The PR is being reviewed label Jan 12, 2021
@iSazonov iSazonov assigned iSazonov and unassigned anmenaga Jan 12, 2021
@iSazonov iSazonov added this to the 7.2.0-preview.3 milestone Jan 12, 2021
@ghost
Copy link
ghost commented Feb 12, 2021

🎉v7.2.0-preview.3 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Tools Indicates that a PR should be marked as a tools change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

0