Commit Graph

28 Commits

Author SHA1 Message Date
Azure SDK Bot
0d4b7db2ad
Adjust link checking for copilot instructions (#6824)
Disable link checking guidelines for copilot instruction files.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2025-11-12 12:17:03 -08:00
Azure SDK Bot
7d47e89859
Sync eng/common directory with azure-sdk-tools for PR 10895 (#6629)
* Update logging for verify-links script

* Update verify-links.yml

* Update eng/common/scripts/Verify-Links.ps1

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update eng/common/scripts/Verify-Links.ps1

---------

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-13 15:25:00 -07:00
Azure SDK Bot
bff63e1fbd
HtmlDecode hrefs (#6570)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2025-05-14 10:21:32 -07:00
Azure SDK Bot
292547aecb
Sync eng/common directory with azure-sdk-tools for PR 10611 (#6566) 2025-05-12 20:43:45 -07:00
Azure SDK Bot
140aead96d
Sync eng/common directory with azure-sdk-tools for PR 10593 (#6565)
* Improve link checking for github links

Use locally cloned repos to check github links to avoid rate-limiting.

* Add default clone path to the link checker template

---------

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2025-05-12 12:33:18 -07:00
Azure SDK Bot
97182996eb
Sync eng/common directory with azure-sdk-tools for PR 9889 (#6429)
* Fix support for crates.io links

* Use strict-mode $Matches property accessor

---------

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2025-02-21 13:36:23 -08:00
Azure SDK Bot
aeb335d14f
Add support for aka.ms, github wiki and crates.io checking (#5957)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2024-09-03 15:53:26 -07:00
Azure SDK Bot
02882f9141
Fix issue in Verify-Link.ps1 after PS 7.4 update (#5314)
https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-74?view=powershell-7.4
- Add AllowInsecureRedirect switch to Web cmdlets (#18546)

That new option cause a new exception type that exposed
a bug where we assumed if InnerException property existed
that it was not null. This fix verifies that the property
is not null.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2024-02-02 11:27:55 -08:00
Azure SDK Bot
5e6a21a0e4
Lets not treat https code 401 as broken link (#5216)
Http Status code 401 just be unauthorized and not necessarily that the link isn't valid. Removing this from the list of codes to error from.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2023-11-30 14:44:27 -08:00
Azure SDK Bot
129a36dbc9
Sync eng/common directory with azure-sdk-tools for PR 6903 (#4926)
* fixes

* ongoing

* ongoing

* add top-level throw/catches showing exception info

* fix handling of cases when there is 1 link and when there is no RetryAfter.Delta

* handle lack of Exception.Headers property

* handle gracefully obtaining status code from $_.Exception.InnerException.ErrorCode

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-09-07 14:12:30 -07:00
Azure SDK Bot
96984bd204
Fix 50x errors while loading page links (#4001)
We have hit a few 50x errors while pulling a page to get
links and that has caused the rest of the link checking to
terminate early. To fix that we switching to LogError which will
output an error in devops instead of Write-Error which terminates
immediately. We also add some retry count to the page retrieval
and cache file retrieval to help with these transitent 50x issues.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2022-10-06 14:24:20 -07:00
Azure SDK Bot
3060f0a777
Add timeout on Invoke-request call (#3361)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-02-17 22:48:12 -08:00
Azure SDK Bot
57e7a4e4f3
Sync eng/common directory with azure-sdk-tools for PR 2265 (#3104)
* Improve devops logging for link checker

* Update eng/common/scripts/Verify-Links.ps1

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-11-15 11:18:47 -08:00
Azure SDK Bot
187fc867f4
Update references from master to main (#2492)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-06-24 17:36:15 -07:00
Azure SDK Bot
248dc0b96a
Parse MD files coming over http as raw markdown files (#2168)
This will allow us to point our verify-link script at a raw
MD file in a github repo and have it parsed correctly for
links.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-04-28 13:41:26 -07:00
Azure SDK Bot
85e358a2ba
Add caching support to verify-links (#2150)
- Update link checking pipeline to enable caching
- Add loading cache file from a http endpoint
- Add retry logic when hitting 429

Fix verify link renaming scenarios

- Correctly error if link format is incorrect
- Handle case where the replace regex is not passed
- Improve the error logging so it is easier to
  identify the broken links
2021-04-22 14:14:23 -07:00
Azure SDK Bot
d7924ce12f
Address PR feedback (#1826)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2021-03-15 10:04:22 -07:00
Azure SDK Bot
1897f9ee85
Sync eng/common directory with azure-sdk-tools for PR 1302 (#1280)
* Make the user agent configurable.

* Address comments

* Default to current Chrome version

* Revert the yaml file changes

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2021-01-06 20:09:40 -08:00
Azure SDK Bot
3979bd2b56
Sync eng/common directory with azure-sdk-tools for PR 1170 (#916)
* Added the preprocess scripts.

* string array to string

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2020-11-11 17:53:27 -08:00
Azure SDK Bot
07c7293276
Sync eng/common directory with azure-sdk-tools for PR 1135 (#848)
* Add check of http link.

* Fixed the tool http link

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2020-10-23 17:49:01 -07:00
Azure SDK Bot
fbc6d2c6cb
Failed the anchor links with Uppercase. (#785)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2020-10-16 14:13:03 -07:00
Azure SDK Bot
928b0a2da2
Sync eng/common directory with azure-sdk-tools repository for Tools PR 895 (#619) 2020-09-16 12:00:28 -07:00
Azure SDK Bot
20039198a4
Sync eng/common directory with azure-sdk-tools repository for Tools PR https://github.com/Azure/azure-sdk-tools/pull/903 (#494) 2020-08-24 13:35:30 -07:00
Azure SDK Bot
995d58d305
Sync eng/common directory with azure-sdk-tools repository for Tools PR https://github.com/Azure/azure-sdk-tools/pull/870 (#489) 2020-08-19 18:39:57 -07:00
Azure SDK Bot
f649bf717a
Sync eng/common directory with azure-sdk-tools repository (#480) 2020-08-18 12:04:46 -07:00
Azure SDK Bot
9067d8ac5d
Sync eng/common directory with azure-sdk-tools repository (#377) 2020-08-17 15:09:40 -07:00
Azure SDK Bot
2d507e7e4a
Sync eng/common directory with azure-sdk-tools repository (#251)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2020-07-28 11:56:52 -07:00
Azure SDK Bot
cdb5d324ee
Sync eng/common directory with azure-sdk-tools repository (#216) 2020-06-29 12:24:00 -07:00