Skip to content

Make main ops async, support CryptoKeys, and use Web Crypto if available #63

Make main ops async, support CryptoKeys, and use Web Crypto if available

Make main ops async, support CryptoKeys, and use Web Crypto if available #63

Triggered via push August 11, 2024 23:15
Status Failure
Total duration 1m 14s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

24 errors
tests/index.test.ts > AgeDecrypter > should decrypt a file with the right identity: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/index.test.ts:15:11
tests/index.test.ts > key generation > should encrypt and decrypt a file: lib/index.ts#L19
ReferenceError: CryptoKey is not defined ❯ Module.identityToRecipient lib/index.ts:19:27 ❯ tests/index.test.ts:24:33
tests/index.test.ts > AgeEncrypter > should encrypt (and decrypt) a file with a recipient: lib/x25519.ts#L45
ReferenceError: CryptoKey is not defined ❯ Module.scalarMultBase lib/x25519.ts:45:31 ❯ Module.x25519Wrap lib/recipients.ts:16:19 ❯ Encrypter.encrypt lib/index.ts:71:20 ❯ tests/index.test.ts:54:22
tests/index.test.ts > AgeEncrypter > should encrypt (and decrypt) a file with multiple recipients: lib/x25519.ts#L45
ReferenceError: CryptoKey is not defined ❯ Module.scalarMultBase lib/x25519.ts:45:31 ❯ Module.x25519Wrap lib/recipients.ts:16:19 ❯ Encrypter.encrypt lib/index.ts:71:20 ❯ tests/index.test.ts:66:22
tests/index.test.ts > AgeEncrypter > should encrypt (and decrypt) a file without Web Crypto: lib/x25519.ts#L45
ReferenceError: CryptoKey is not defined ❯ Module.scalarMultBase lib/x25519.ts:45:31 ❯ Module.x25519Wrap lib/recipients.ts:16:19 ❯ Encrypter.encrypt lib/index.ts:71:20 ❯ tests/index.test.ts:100:22
tests/property.test.ts > Property Based Tests > Asymmetric Encryption and Decryption > decryption should invert encryption with identity/recipient (string plaintext) (with seed=-191573507): lib/index.ts#L19
Error: Property failed after 1 tests { seed: -191573507, path: "0:0", endOnFailure: true } Counterexample: [{"plaintext":""}] Shrunk 1 time(s) Got ReferenceError: CryptoKey is not defined at Module.identityToRecipient (/home/runner/work/typage/typage/lib/index.ts:19:27) at /home/runner/work/typage/typage/tests/property.test.ts:35:33 at processTicksAndRejections (node:internal/process/task_queues:95:5) at AsyncProperty.run (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28) at asyncRunIt (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21) at file:///home/runner/work/typage/typage/node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 at runTest (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:960:11) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) Hint: Enable verbose mode in order to have the list of all failing values encountered during the run ❯ Module.identityToRecipient lib/index.ts:19:27 ❯ tests/property.test.ts:35:33 ❯ AsyncProperty.run node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28 ❯ asyncRunIt node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21 ❯ node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 ❯ buildError node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:126:15 ❯ asyncThrowIfFailed node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:143:11
tests/property.test.ts > Property Based Tests > Asymmetric Encryption and Decryption > decryption should invert encryption with identity/recipient (uint8array plaintext) (with seed=1466880710): lib/index.ts#L19
Error: Property failed after 1 tests { seed: 1466880710, path: "0", endOnFailure: true } Counterexample: [{"plaintext":Uint8Array.from([])}] Shrunk 0 time(s) Got ReferenceError: CryptoKey is not defined at Module.identityToRecipient (/home/runner/work/typage/typage/lib/index.ts:19:27) at /home/runner/work/typage/typage/tests/property.test.ts:55:33 at processTicksAndRejections (node:internal/process/task_queues:95:5) at AsyncProperty.run (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28) at asyncRunIt (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21) at file:///home/runner/work/typage/typage/node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 at runTest (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:960:11) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) Hint: Enable verbose mode in order to have the list of all failing values encountered during the run ❯ Module.identityToRecipient lib/index.ts:19:27 ❯ tests/property.test.ts:55:33 ❯ AsyncProperty.run node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28 ❯ asyncRunIt node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21 ❯ node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 ❯ buildError node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:126:15 ❯ asyncThrowIfFailed node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:143:11
tests/testkit.test.ts > CCTV testkit > header_crlf should fail: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/testkit.test.ts:96:23
tests/testkit.test.ts > CCTV testkit > header_crlf should fail without Web Crypto: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/testkit.test.ts:103:23
tests/testkit.test.ts > CCTV testkit > hmac_bad should fail: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/testkit.test.ts:96:23
tests/index.test.ts > AgeDecrypter > should decrypt a file with the right identity: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/index.test.ts:15:11
tests/index.test.ts > key generation > should encrypt and decrypt a file: lib/index.ts#L19
ReferenceError: CryptoKey is not defined ❯ Module.identityToRecipient lib/index.ts:19:27 ❯ tests/index.test.ts:24:33
tests/index.test.ts > AgeEncrypter > should encrypt (and decrypt) a file with a recipient: lib/x25519.ts#L45
ReferenceError: CryptoKey is not defined ❯ Module.scalarMultBase lib/x25519.ts:45:31 ❯ Module.x25519Wrap lib/recipients.ts:16:19 ❯ Encrypter.encrypt lib/index.ts:71:20 ❯ tests/index.test.ts:54:22
tests/index.test.ts > AgeEncrypter > should encrypt (and decrypt) a file with multiple recipients: lib/x25519.ts#L45
ReferenceError: CryptoKey is not defined ❯ Module.scalarMultBase lib/x25519.ts:45:31 ❯ Module.x25519Wrap lib/recipients.ts:16:19 ❯ Encrypter.encrypt lib/index.ts:71:20 ❯ tests/index.test.ts:66:22
tests/index.test.ts > AgeEncrypter > should encrypt (and decrypt) a file without Web Crypto: lib/x25519.ts#L45
ReferenceError: CryptoKey is not defined ❯ Module.scalarMultBase lib/x25519.ts:45:31 ❯ Module.x25519Wrap lib/recipients.ts:16:19 ❯ Encrypter.encrypt lib/index.ts:71:20 ❯ tests/index.test.ts:100:22
tests/property.test.ts > Property Based Tests > Asymmetric Encryption and Decryption > decryption should invert encryption with identity/recipient (string plaintext) (with seed=-2020503881): lib/index.ts#L19
Error: Property failed after 1 tests { seed: -2020503881, path: "0:0", endOnFailure: true } Counterexample: [{"plaintext":""}] Shrunk 1 time(s) Got ReferenceError: CryptoKey is not defined at Module.identityToRecipient (/home/runner/work/typage/typage/lib/index.ts:19:27) at /home/runner/work/typage/typage/tests/property.test.ts:35:33 at processTicksAndRejections (node:internal/process/task_queues:95:5) at AsyncProperty.run (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28) at asyncRunIt (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21) at file:///home/runner/work/typage/typage/node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 at runTest (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:960:11) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) Hint: Enable verbose mode in order to have the list of all failing values encountered during the run ❯ Module.identityToRecipient lib/index.ts:19:27 ❯ tests/property.test.ts:35:33 ❯ AsyncProperty.run node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28 ❯ asyncRunIt node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21 ❯ node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 ❯ buildError node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:126:15 ❯ asyncThrowIfFailed node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:143:11
tests/property.test.ts > Property Based Tests > Asymmetric Encryption and Decryption > decryption should invert encryption with identity/recipient (uint8array plaintext) (with seed=159075802): lib/index.ts#L19
Error: Property failed after 1 tests { seed: 159075802, path: "0:0", endOnFailure: true } Counterexample: [{"plaintext":Uint8Array.from([])}] Shrunk 1 time(s) Got ReferenceError: CryptoKey is not defined at Module.identityToRecipient (/home/runner/work/typage/typage/lib/index.ts:19:27) at /home/runner/work/typage/typage/tests/property.test.ts:55:33 at processTicksAndRejections (node:internal/process/task_queues:95:5) at AsyncProperty.run (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28) at asyncRunIt (file:///home/runner/work/typage/typage/node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21) at file:///home/runner/work/typage/typage/node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 at runTest (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:960:11) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) at runSuite (file:///home/runner/work/typage/typage/node_modules/@vitest/runner/dist/index.js:1116:15) Hint: Enable verbose mode in order to have the list of all failing values encountered during the run ❯ Module.identityToRecipient lib/index.ts:19:27 ❯ tests/property.test.ts:55:33 ❯ AsyncProperty.run node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:28 ❯ asyncRunIt node_modules/fast-check/lib/esm/check/runner/Runner.js:33:21 ❯ node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:22:9 ❯ buildError node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:126:15 ❯ asyncThrowIfFailed node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:143:11
tests/testkit.test.ts > CCTV testkit > header_crlf should fail: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/testkit.test.ts:96:23
tests/testkit.test.ts > CCTV testkit > header_crlf should fail without Web Crypto: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/testkit.test.ts:103:23
tests/testkit.test.ts > CCTV testkit > hmac_bad should fail: lib/index.ts#L102
ReferenceError: CryptoKey is not defined ❯ Decrypter.addIdentity lib/index.ts:102:22 ❯ tests/testkit.test.ts:96:23
test (22.4.x)
The job was canceled because "_18_x" failed.
test (22.4.x)
The operation was canceled.
test (20.x)
The job was canceled because "_18_x" failed.
test (20.x)
The operation was canceled.