Code Monkey home page Code Monkey logo

Comments (4)

iuioiua avatar iuioiua commented on June 27, 2024

The error message gives almost no detail as to what failed. All the tests passed. However, 24 fewer tests pass than a CI run that passes. By comparing the test outputs of both failed and passing runs, the tests that aren't run in the failing run, in alphabetical order, are:

  1. ./crypto/crypto_test.ts => digest() checks BLAKE2B vectors ...
  2. ./crypto/crypto_test.ts => digest() checks BLAKE2B-384 vectors ...
  3. ./crypto/crypto_test.ts => digest() checks BLAKE2S vectors ...
  4. ./crypto/crypto_test.ts => digest() checks BLAKE3 vectors ...
  5. ./crypto/crypto_test.ts => digest() checks KECCAK-224 vectors ...
  6. ./crypto/crypto_test.ts => digest() checks KECCAK-256 vectors ...
  7. ./crypto/crypto_test.ts => digest() checks KECCAK-384 vectors ...
  8. ./crypto/crypto_test.ts => digest() checks KECCAK-512 vectors ...
  9. ./crypto/crypto_test.ts => digest() checks MD4 vectors ...
  10. ./crypto/crypto_test.ts => digest() checks MD5 vectors ...
  11. ./crypto/crypto_test.ts => digest() checks RIPEMD-160 vectors ...
  12. ./crypto/crypto_test.ts => digest() checks SHA-1 vectors ...
  13. ./crypto/crypto_test.ts => digest() checks SHA-224 vectors ...
  14. ./crypto/crypto_test.ts => digest() checks SHA-256 vectors ...
  15. ./crypto/crypto_test.ts => digest() checks SHA-384 vectors ...
  16. ./crypto/crypto_test.ts => digest() checks SHA-512 vectors ...
  17. ./crypto/crypto_test.ts => digest() checks SHA3-224 vectors ...
  18. ./crypto/crypto_test.ts => digest() checks SHA3-256 vectors ...
  19. ./crypto/crypto_test.ts => digest() checks SHA3-384 vectors ...
  20. ./crypto/crypto_test.ts => digest() checks SHA3-512 vectors ...
  21. ./crypto/crypto_test.ts => digest() checks SHAKE128 vectors ...
  22. ./crypto/crypto_test.ts => digest() checks SHAKE256 vectors ...
  23. ./crypto/crypto_test.ts => digest() checks TIGER vectors ...
  24. ./crypto/crypto_test.ts => getRandomValues() passes through to native implementation ...

The tests for these algorithms are started asynchronously here, with the order given here.

So, considering the order in which the tests are run and the error given, I think what happens is that these algorithm tests start, and then the runtime momentarily chokes due to the high number of asynchronous operations, then recovers.

I'm not sure if this means anything, but ignoring the getRandomValues() test, the tests for the crypto algorithms that do pass are BLAKE2B-128, BLAKE2B-160, BLAKE2B-224 and BLAKE2B-256. I'm not sure it's worth suspecting the blake2 crate being the cause.

from deno_std.

iuioiua avatar iuioiua commented on June 27, 2024

CC @mmastrac

from deno_std.

mmastrac avatar mmastrac commented on June 27, 2024

The tests use SystemTime for elapsed time which is likely causing the problem:

        let elapsed = SystemTime::now().duration_since(earlier)?.as_millis();

from deno_std.

mmastrac avatar mmastrac commented on June 27, 2024

I think this will be fixed by denoland/deno#22853

from deno_std.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.