Skip to content

Localize tests that depended on public endpoints#2215

Merged
hyperxpro merged 1 commit into
mainfrom
localize-tests
Jun 28, 2026
Merged

Localize tests that depended on public endpoints#2215
hyperxpro merged 1 commit into
mainfrom
localize-tests

Conversation

@hyperxpro

Copy link
Copy Markdown
Member

Motivation:

CI jobs fail intermittently because a handful of tests execute real requests against public endpoints (google.com, apache.org, microsoft.com, gatling.io), so any outage, rate-limit, or runner without egress reds the whole 3-OS × 4-JDK matrix.

Modification:

Repoint those tests at the existing local Jetty test server (HTTP, HTTPS, redirect and WS-handshake-failure cases), switch unresolvable-host tests to RFC 6761 .invalid, and tag the irreducible real-DNS/proxy tests @Tag("external") — excluded from the default build and opt-in via -Dexternal.tests=true (run nightly).

Result:

The standard mvn test is now fully self-contained and deterministic with no behavioral coverage lost; real-network checks still run nightly behind the opt-in flag.

@hyperxpro hyperxpro merged commit d49dfd3 into main Jun 28, 2026
17 checks passed
@hyperxpro hyperxpro deleted the localize-tests branch June 28, 2026 13:11
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

Successfully merging this pull request may close these issues.

1 participant