Skip to content

jose@v4.15.2 not working on Node v21.x #1011

Closed

Description

@alfonsograziano

Hi @panva I noticed you're listed as maintainer for jose so I'd like to bring to your attention that jose@v4.15.2 tests have been failing across different systems on v21.x. Feel free to loop in more contributors that you think may help.

Here a failed run for reference:
https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/3318/testReport/

As you can see on this run jose is failing on five different nodes. Can you please help us to debug the issue? I'm not sure if this is related to the new Node version or something inside the package.

Activity

  1. panva commented on Oct 11, 2023

    @panva
    Member

    Hi, i'll take a look. This is unexpected since there are no crypto changes in v21

  2. alfonsograziano commented on Oct 11, 2023

    @alfonsograziano
    ContributorAuthor

    Thanks :) Please let me know if I can support you!

  3. panva commented on Oct 11, 2023

    @panva
    Member

    What changed wrt zlib's inflateRaw/deflateRaw?

  4. alfonsograziano commented on Oct 11, 2023

    @alfonsograziano
    ContributorAuthor

    Not sure, maybe this can be related? https://github.com/nodejs/node/pull/50085/files
    I see that has been merged yesterday and also the jose issue started yesterday

  5. panva commented on Oct 11, 2023

    @panva
    Member

    Installing v21.0.0-nightly20231009387e2929fe on my local macOS system does not reproduce this issue. I suspect them to be platform related and they seem to be related to inflateRaw, and deflateRaw outputs from the node:zlib module.

    The issue is that the test vector is deterministic and therefore expects a specific output, which on these runs was not provided.

  6. panva commented on Oct 11, 2023

    @panva
    Member

    Yes, that's absolutely related.

  7. panva commented on Oct 11, 2023

    @panva
    Member

    I'm compiling from main now.

  8. alfonsograziano commented on Oct 11, 2023

    @alfonsograziano
    ContributorAuthor

    Do you have any idea to fix the issue? Unfortunately my knowledge for now is not enough to figure out a proper solution by myself

  9. panva commented on Oct 11, 2023

    @panva
    Member

    I'll compile from main to see if it's platform dependent or not, then we ask for the zlib update to be reverted.

  10. alfonsograziano commented on Oct 11, 2023

    @alfonsograziano
    ContributorAuthor

    Awesome, thanks!

  11. panva commented on Oct 11, 2023

    @panva
    Member
  12. panva commented on Oct 11, 2023

    @panva
    Member

    I will mark the test as non-deterministic and release a patch release to unblock citgm.

  13. panva commented on Oct 11, 2023

    @panva
    Member

    @alfonsograziano I've adjusted the test expectation and released v4.15.3, you can close this.

  14. alfonsograziano commented on Oct 12, 2023

    @alfonsograziano
    ContributorAuthor

    Awesome, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions