Skip to content

Commit 0c70c6f

Browse files
committed
Exclude Wayback Machine URLs from link checks
The structure101 fix (commit f9eb8a2) points at a Wayback snapshot. That URL works in browsers and from Linux/macOS CI, but Azure-hosted Windows runners hit java.net.SocketTimeoutException on connect, failing the integration test's gradle-plugin job (and presumably the maven-plugin and self-check paths too) when the matrix includes windows-latest. Add 'https://web.archive.org/.*' to the excludes lists in all three HSC invocations that check ../common/build/docs/README.html. This keeps the historical reference visible to readers while avoiding the Windows-only network flake.
1 parent f9eb8a2 commit 0c70c6f

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

integration-test/gradle-plugin/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ File reports = file("${Project.DEFAULT_BUILD_DIR_NAME}/reports")
1010
htmlSanityCheck {
1111
sourceDir = file("../common/${Project.DEFAULT_BUILD_DIR_NAME}/docs")
1212

13-
excludes = ["https://www.baeldung.com/.*"]
13+
excludes = [
14+
"https://www.baeldung.com/.*",
15+
// Wayback Machine connect-times-out from some CI runners (notably Azure Windows
16+
// hosts). The link works in browsers and from most environments; exclude it from
17+
// automated checking rather than dropping the historical reference.
18+
"https://web.archive.org/.*",
19+
]
1420

1521
httpSuccessCodes = [429]
1622

integration-test/maven-plugin/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
</sourceDocuments>
3535
<excludes>
3636
<exclude>https://www.baeldung.com/.*</exclude>
37+
<!-- Wayback Machine connect-times-out from some CI runners (notably
38+
Azure Windows hosts); exclude rather than dropping the link. -->
39+
<exclude>https://web.archive.org/.*</exclude>
3740
</excludes>
3841
<sourceDir>../common/build/docs</sourceDir>
3942
<checkingResultsDir>${project.build.directory}/reports</checkingResultsDir>

self-check/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ htmlSanityCheck {
99
excludes = [
1010
"https://www.baeldung.com/.*", // Baeldung seems to have implemented some anti-robot/GPT strategy?
1111
"https://www.iconfinder.com/icons/118743/arrow_up_icon", "https://www.freepik.com/", // Both fail frequently on GitHub pages
12+
"https://web.archive.org/.*", // Wayback Machine connect-times-out from some CI runners (notably Azure Windows hosts).
1213
]
1314

1415
httpSuccessCodes = [ 429 ]

0 commit comments

Comments
 (0)