test: DELIBERATE BREAK, expected red, reverted next (#8316)
release / go (push) Successful in 2m6s
release / web (push) Successful in 1m10s
release / android (push) Failing after 38s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 2m25s
release / Build signed APK (push) Successful in 3m11s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 2m6s
release / web (push) Successful in 1m10s
release / android (push) Failing after 38s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 2m25s
release / Build signed APK (push) Successful in 3m11s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
A certificate that fails to verify is no longer recognised, so the probe falls back to http past it. ServerProbeTest's certificate case must go red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,6 @@ import okhttp3.Request
|
||||
import okhttp3.Response
|
||||
import java.io.IOException
|
||||
import java.net.UnknownHostException
|
||||
import java.security.GeneralSecurityException
|
||||
import java.util.concurrent.TimeUnit
|
||||
import javax.inject.Inject
|
||||
import javax.net.ssl.SSLPeerUnverifiedException
|
||||
@@ -154,7 +153,7 @@ class ServerProbe internal constructor(client: OkHttpClient, callTimeoutMillis:
|
||||
private fun isCertificateFailure(e: IOException): Boolean =
|
||||
generateSequence<Throwable>(e) { it.cause }
|
||||
.take(MAX_CAUSE_DEPTH)
|
||||
.any { it is SSLPeerUnverifiedException || it is GeneralSecurityException }
|
||||
.any { it is SSLPeerUnverifiedException }
|
||||
|
||||
private suspend fun Call.await(): Response =
|
||||
suspendCancellableCoroutine { continuation ->
|
||||
|
||||
Reference in New Issue
Block a user