-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto/tls: TestVerifyConnection/TLSv12 failures #71077
Comments
Found new dashboard test flakes for:
2024-12-30 20:23 gotip-netbsd-arm go@b702a26c crypto/tls.TestVerifyConnection/TLSv12 (log)
|
Most of the test certificates (e.g. |
Change https://go.dev/cl/639595 mentions this issue: |
As far as I can tell one of the failing certificates is CC @golang/security @rolandshoemaker @FiloSottile @cpu |
Change https://go.dev/cl/639655 mentions this issue: |
I tried to generate a certificate with an expiration date of 2026-01-01, which passed the verification of The maintainer is fixing the problem here in CL 639655, and I will abandon this CL. |
I also get the same problem when executing all.bash in Go1.22 and Go1.23 branches. I think CL 639655 also needs to be backported to Go1.23 and Go1.22 release branches. |
@gopherbot please open backport issues for CL 639655. Tests are broken across releases. |
Backport issue(s) opened: #71103 (for 1.22), #71104 (for 1.23). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
As seen in <https://ci.guix.gnu.org/build/7713190/log/raw>. Certificates which are used in tests are not valid after Jan 1 00:00:00 2025 GMT, Happy New Year!. See <golang/go#71077>. * gnu/packages/golang.scm (go-1.21) [arguments] <phases>: Add 'skip-crypto-tls-tests. Change-Id: Id9f8ad93201aedae4f4451ee8b7b9cf40cd33cdb
Change https://go.dev/cl/640237 mentions this issue: |
Change https://go.dev/cl/640315 mentions this issue: |
This test is broken in Go 1.22 as per golang/go#71077. Fixes #11338 PiperOrigin-RevId: 712237566
This test is broken in Go 1.22 as per golang/go#71077. Updates #11338 PiperOrigin-RevId: 712237566
This test is broken in Go 1.22 as per golang/go#71077. Updates #11338 PiperOrigin-RevId: 712237566
This test is broken in Go 1.22 as per golang/go#71077. Updates #11338 PiperOrigin-RevId: 712398784
Presently crypto/tls doesn't expect config.Time to increment. In case that changes you can do something like diff --git a/src/crypto/tls/handshake_test.go b/src/crypto/tls/handshake_test.go
index baf54c9f25..fff08e3045 100644
--- a/src/crypto/tls/handshake_test.go
+++ b/src/crypto/tls/handshake_test.go
@@ -20,6 +20,7 @@ import (
"strconv"
"strings"
"sync"
+ "sync/atomic"
"testing"
"time"
)
@@ -438,10 +439,17 @@ func fromHex(s string) []byte {
return b
}
-// testTime is 2016-10-20T17:32:09.000Z, which is within the validity period of
-// [testRSACertificate], [testRSACertificateIssuer], [testRSA2048Certificate],
-// [testRSA2048CertificateIssuer], and [testECDSACertificate].
-var testTime = func() time.Time { return time.Unix(1476984729, 0) }
+// Returns currentTestTime and then increments by a second.
+var testTime = func() time.Time { return time.Unix(currentTestTime.Add(1), 0) }
+
+// currentTestTime is initially 2016-10-20T17:32:09.000Z, which is well within
+// the validity period of [testRSACertificate], [testRSACertificateIssuer],
+// [testRSA2048Certificate], [testRSA2048CertificateIssuer], and [testECDSACertificate].
+var currentTestTime atomic.Int64
+
+func init() {
+ currentTestTime.Store(1476984729)
+}
var testRSACertificate = fromHex("3082024b308201b4a003020102020900e8f09d3fe25beaa6300d06092a864886f70d01010b0500301f310b3009060355040a1302476f3110300e06035504031307476f20526f6f74301e170d3136303130313030303030305a170d3235303130313030303030305a301a310b3009060355040a1302476f310b300906035504031302476f30819f300d06092a864886f70d010101050003818d0030818902818100db467d932e12270648bc062821ab7ec4b6a25dfe1e5245887a3647a5080d92425bc281c0be97799840fb4f6d14fd2b138bc2a52e67d8d4099ed62238b74a0b74732bc234f1d193e596d9747bf3589f6c613cc0b041d4d92b2b2423775b1c3bbd755dce2054cfa163871d1e24c4f31d1a508baab61443ed97a77562f414c852d70203010001a38193308190300e0603551d0f0101ff0404030205a0301d0603551d250416301406082b0601050507030106082b06010505070302300c0603551d130101ff0402300030190603551d0e041204109f91161f43433e49a6de6db680d79f60301b0603551d230414301280104813494d137e1631bba301d5acab6e7b30190603551d1104123010820e6578616d706c652e676f6c616e67300d06092a864886f70d01010b0500038181009d30cc402b5b50a061cbbae55358e1ed8328a9581aa938a495a1ac315a1a84663d43d32dd90bf297dfd320643892243a00bccf9c7db74020015faad3166109a276fd13c3cce10c5ceeb18782f16c04ed73bbb343778d0c1cf10fa1d8408361c94c722b9daedb4606064df4c1b33ec0d1bd42d4dbfe3d1360845c21d33be9fae7") |
golang tests fail because of golang/go#71077. This patch backports golang/go@d1d9312. go1.22 and go1.23 include this fix already [1]. /reported-by @Romain [1] https://go-review.googlesource.com/c/go/+/640315
As seen in <https://ci.guix.gnu.org/build/7713190/log/raw>. Certificates which are used in tests are not valid after Jan 1 00:00:00 2025 GMT, Happy New Year!. See <golang/go#71077>. * gnu/packages/golang.scm (go-1.21) [arguments] <phases>: Add 'skip-crypto-tls-tests. Change-Id: Id9f8ad93201aedae4f4451ee8b7b9cf40cd33cdb
golang tests fail because of golang/go#71077. This patch backports golang/go@d1d9312. go1.22 and go1.23 include this fix already [1]. /reported-by @Romain [1] https://go-review.googlesource.com/c/go/+/640315
…pired certificates Updates #71077 Fixes #71104 Change-Id: I6a6a465685f3bd50a5bb35a160f87b59b74fa6af Reviewed-on: https://go-review.googlesource.com/c/go/+/639655 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Joel Sing <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-on: https://go-review.googlesource.com/c/go/+/640315 Reviewed-by: Filippo Valsorda <[email protected]>
…pired certificates Updates #71077 Fixes #71103 Change-Id: I6a6a465685f3bd50a5bb35a160f87b59b74fa6af Reviewed-on: https://go-review.googlesource.com/c/go/+/639655 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Joel Sing <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-on: https://go-review.googlesource.com/c/go/+/640237
Found new dashboard test flakes for:
2024-12-03 18:00 go1.22-linux-amd64 release-branch.go1.22@8f3f22ee crypto/tls.TestVerifyConnection/TLSv12 (log)
2024-12-18 17:42 go1.23-linux-amd64 release-branch.go1.23@1576793c crypto/tls.TestVerifyConnection/TLSv12 (log)
|
golang tests fail because of golang/go#71077. This patch backports golang/go@d1d9312. go1.22 and go1.23 include this fix already [1]. [1] https://go-review.googlesource.com/c/go/+/640315 /reported-by @Romain /reviewed-by @jerome @kirr @tomo /reviewed-on https://lab.nexedi.com/nexedi/slapos/-/merge_requests/1713
As seen in <https://ci.guix.gnu.org/build/7713190/log/raw>. Certificates which are used in tests are not valid after Jan 1 00:00:00 2025 GMT, Happy New Year!. See <golang/go#71077>. * gnu/packages/golang.scm (go-1.21) [arguments] <phases>: Add 'skip-crypto-tls-tests. Change-Id: Id9f8ad93201aedae4f4451ee8b7b9cf40cd33cdb
As seen in <https://ci.guix.gnu.org/build/7713190/log/raw>. Certificates which are used in tests are not valid after Jan 1 00:00:00 2025 GMT, Happy New Year!. See <golang/go#71077>. * gnu/packages/golang.scm (go-1.21) [arguments] <phases>: Add 'skip-crypto-tls-tests. Change-Id: Id9f8ad93201aedae4f4451ee8b7b9cf40cd33cdb
As seen in <https://ci.guix.gnu.org/build/7713190/log/raw>. Certificates which are used in tests are not valid after Jan 1 00:00:00 2025 GMT, Happy New Year!. See <golang/go#71077>. * gnu/packages/golang.scm (go-1.21) [arguments] <phases>: Add 'skip-crypto-tls-tests. Change-Id: Id9f8ad93201aedae4f4451ee8b7b9cf40cd33cdb
Fixes golang#71077 Change-Id: I6a6a465685f3bd50a5bb35a160f87b59b74fa6af Reviewed-on: https://go-review.googlesource.com/c/go/+/639655 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Joel Sing <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
As seen in <https://ci.guix.gnu.org/build/7713190/log/raw>. Certificates which are used in tests are not valid after Jan 1 00:00:00 2025 GMT, Happy New Year!. See <golang/go#71077>. * gnu/packages/golang.scm (go-1.21) [arguments] <phases>: Add 'skip-crypto-tls-tests. Change-Id: Id9f8ad93201aedae4f4451ee8b7b9cf40cd33cdb
…pired certificates Updates golang#71077 Fixes golang#71104 Change-Id: I6a6a465685f3bd50a5bb35a160f87b59b74fa6af Reviewed-on: https://go-review.googlesource.com/c/go/+/639655 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Joel Sing <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-on: https://go-review.googlesource.com/c/go/+/640315 Reviewed-by: Filippo Valsorda <[email protected]>
Issue created automatically to collect these failures.
Example (log):
— watchflakes
The text was updated successfully, but these errors were encountered: