-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Investigate flaky parallel/test-crypto-keygen #22978
Comments
Comment from @tniessen in #22660 (comment):
|
While stress-testing locally with === release test-crypto-keygen ===
Path: parallel/test-crypto-keygen
assert.js:662
throw actual;
^
Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
at Sign.sign (internal/crypto/sig.js:83:27)
at testSignVerify (/Users/trott/io.js/test/parallel/test-crypto-keygen.js:43:42)
at assert.throws (/Users/trott/io.js/test/parallel/test-crypto-keygen.js:234:7)
at getActual (assert.js:574:5)
at Function.throws (assert.js:692:24)
at AsyncWrap.common.mustCall (/Users/trott/io.js/test/parallel/test-crypto-keygen.js:233:12)
at AsyncWrap.<anonymous> (/Users/trott/io.js/test/common/index.js:350:15)
at AsyncWrap.wrap.ondone (internal/crypto/keygen.js:42:14)
Command: out/Release/node /Users/trott/io.js/test/parallel/test-crypto-keygen.js
[02:08|% 100|+ 191|- 1]: Done |
Failed on a different platform in CI: https://ci.nodejs.org/job/node-test-commit-arm/18620/nodes=centos7-arm64-gcc6/console 10:06:22 not ok 2388 parallel/test-crypto-keygen
10:06:22 ---
10:06:22 duration_ms: 240.71
10:06:22 severity: fail
10:06:22 exitcode: -15
10:06:22 stack: |-
10:06:22 timeout
10:06:22 assert.js:662
10:06:22 throw actual;
10:06:22 ^
10:06:22
10:06:22 Error: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
10:06:22 at Sign.sign (internal/crypto/sig.js:83:27)
10:06:22 at testSignVerify (/home/iojs/build/workspace/node-test-commit-arm/nodes/centos7-arm64-gcc6/test/parallel/test-crypto-keygen.js:43:42)
10:06:22 at assert.throws (/home/iojs/build/workspace/node-test-commit-arm/nodes/centos7-arm64-gcc6/test/parallel/test-crypto-keygen.js:171:7)
10:06:22 at getActual (assert.js:574:5)
10:06:22 at Function.throws (assert.js:692:24)
10:06:22 at AsyncWrap.common.mustCall (/home/iojs/build/workspace/node-test-commit-arm/nodes/centos7-arm64-gcc6/test/parallel/test-crypto-keygen.js:170:12)
10:06:22 at AsyncWrap.<anonymous> (/home/iojs/build/workspace/node-test-commit-arm/nodes/centos7-arm64-gcc6/test/common/index.js:350:15)
10:06:22 at AsyncWrap.wrap.ondone (internal/crypto/keygen.js:42:14)
10:06:22 ... |
@Trott This is most likely a randomly occuring problem with low probability (which obviously increases massively by being tested multiple times). Changing |
There should be an |
There is a very small chance (about 0.4%) that OpenSSL will successfully decrypt a key without the correct passphrase and will then fail while parsing its ASN.1 structure. In those rare cases, the error message will be different. PR-URL: #22980 Fixes: #22978 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
https://ci.nodejs.org/job/node-test-commit-linuxone/5311/nodes=rhel72-s390x/console
The text was updated successfully, but these errors were encountered: