Revert the deliberate break (#8316)
release / go (push) Successful in 1m52s
release / integration (push) Successful in 2m23s
release / web (push) Successful in 1m7s
release / govulncheck (push) Successful in 19s
release / android (push) Successful in 1m53s
release / Build signed APK (push) Successful in 1m45s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 16s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 1m52s
release / integration (push) Successful in 2m23s
release / web (push) Successful in 1m7s
release / govulncheck (push) Successful in 19s
release / android (push) Successful in 1m53s
release / Build signed APK (push) Successful in 1m45s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 16s
release / Verify release artifacts (tag releases only) (push) Skipped
Run 11391 went red on exactly the certificate case (414 passed, 1 failed): with trust failures unrecognised, the probe fell back to http. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ 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
|
||||
@@ -153,7 +154,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 }
|
||||
.any { it is SSLPeerUnverifiedException || it is GeneralSecurityException }
|
||||
|
||||
private suspend fun Call.await(): Response =
|
||||
suspendCancellableCoroutine { continuation ->
|
||||
|
||||
Reference in New Issue
Block a user