Closed MatrixAI-Bot closed 1 year ago
Pipeline Attempt on 963022829 for b8fa1ebb6c5355a559a657d7df75015a5e2f1c83
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/963022829
Pipeline Attempt on 970528879 for e7a1039eb632048f1a6bf7d067dd60e28b466e95
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/970528879
Pipeline Attempt on 970553102 for 84bd5caba363f9f9e09d8605cbca44563274c8ec
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/970553102
CI was failing due to the b8fa1ebb6c5355a559a657d7df75015a5e2f1c83 commit. The mac job passes when I revert this commit.
A quick search reveals the following issues which MAY be related.
Either we don't push up these optional dependencies in the package lockfile. Or I need to have a look at the version script.
The package-lock.json is supposed to be updated. Something is wrong on the mac job if that's the case.
Also this is package-lock.json
being derived from package.json
. The correct update needs to update both when pushing up.
Also what does vite
have to do with this?
Is it because it is failing to install an optional dependency on the mac build? That's weird cause only the windows binaries didn't work. Or was the mac release don't incorrectly?
Pipeline Attempt on 970569052 for e7a1039eb632048f1a6bf7d067dd60e28b466e95
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/970569052
Actually I hit this before. Completely delete node_modules
and package-lock.json
, then exit the shell and re-enter, then it should fix the problem with SWC package. I just hit this with the other packages.
But yes the version script or prepublish script doesn't seem to be properly updating the package-lock.json
but that's a separate issue, if you reset both node_modules
and package-lock.json
it will work.
Regenerating the package-lock.json
results in the @peculiar
having problems
offset is out of bounds
RangeError: offset is out of bounds
at Uint8Array.set (<anonymous>)
at Function.padStart (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/webcrypto-core/build/webcrypto-core.js:972:13)
at Function.encodeSignature (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/webcrypto-core/build/webcrypto-core.js:940:22)
at Function.sign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/@peculiar/webcrypto/build/webcrypto.js:1575:54)
at EcdsaProvider.onSign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/@peculiar/webcrypto/build/webcrypto.js:1737:25)
at EcdsaProvider.sign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/webcrypto-core/build/webcrypto-core.js:157:28)
at SubtleCrypto.sign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/webcrypto-core/build/webcrypto-core.js:1405:39)
at Function.create (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/@peculiar/x509/build/x509.cjs.js:2418:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.generateCertificate (/home/faulkes/matixWorkspace/gitRepos/js-quic/tests/utils.ts:476:11)
Error: error:0180006C:bignum routines::no inverse
at Sign.sign (node:internal/crypto/sig:131:29)
at Function.signRsa (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/@peculiar/webcrypto/build/webcrypto.js:967:34)
at Function.sign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/@peculiar/webcrypto/build/webcrypto.js:875:29)
at RsaSsaProvider.onSign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/@peculiar/webcrypto/build/webcrypto.js:1027:26)
at RsaSsaProvider.sign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/webcrypto-core/build/webcrypto-core.js:157:28)
at SubtleCrypto.sign (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/webcrypto-core/build/webcrypto-core.js:1405:39)
at Function.create (/home/faulkes/matixWorkspace/gitRepos/js-quic/node_modules/@peculiar/x509/build/x509.cjs.js:2418:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.generateCertificate (/home/faulkes/matixWorkspace/gitRepos/js-quic/tests/utils.ts:475:11)
at Object.<anonymous> (/home/faulkes/matixWorkspace/gitRepos/js-quic/tests/QUICServer.test.ts:46:15)
Updating to the latest versions does not fix the problem. Any insights @CMCDragonkai ?
Pin it against the package-lock.json
version that exists for the @peculiar
libraries.
Try reproducing the errors, and give the input to the generateCertificate
call so I can report it upstream.
Should remove any vestigial comments like:
// Async function createTLSConfigWithChain(
Error: error:0180006C:bignum routines::no inverse
error.ECDSA
keys always fails with the RangeError: offset is out of bounds
error.Ed25519
keys always works fine.here are the reproducible tests
Pipeline Attempt on 970724656 for 824c4cbea321ac0671da2ec536d3feea8850ac79
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/970724656
Reviewing the package lockfile changes, the only version that actually changed was @peculiar/x509
1.9.3
-> 1.9.4
. Pinning this to the original version does not fix the problem however.
I'm still looking into this.
Are you sure? The failure in the calls all involve webcrypto
or webcrypto-core
.
Didn't you say using the old package-lock.json
(by reverting the commit) made it work? If so, there might be other packages that need to be pinned too?
Pipeline Attempt on 971729469 for 2a14b5a7db9e802beb2fc77f5b776a528d9809fe
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/971729469
Pipeline Attempt on 971737491 for 2a14b5a7db9e802beb2fc77f5b776a528d9809fe
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/971737491
Pipeline Succeeded on 971737491 for 2a14b5a7db9e802beb2fc77f5b776a528d9809fe
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/971737491
This is an automatic PR generated by the pipeline CI/CD. This will be automatically fast-forward merged if successful.