Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: update Mocha and Sinon to newer versions (using Node's native esm support) #1607

Open
Sanddrah opened this issue Mar 2, 2023 · 5 comments
Labels
Milestone

Comments

@Sanddrah
Copy link

Sanddrah commented Mar 2, 2023

Screenshot (16)

Hi
Some tests are failing in your package. Can you kindly fix them so we can integrate the changes in the Debian package.
Also, I will be very grateful if you can upgrade sinon dependency to at least version 14.0.2

@larabr
Copy link
Collaborator

larabr commented Mar 3, 2023

The tests are passing on CI for node 14 to 18, as you can see here: https://github.com/openpgpjs/openpgpjs/actions/runs/4235637879
What version of node are you using?

Regarding sinon, what's the motivation for updating it? It'd be a breaking change, so not as simple as upgrading the dependency, and it's also dev only, so generally not a priority

@Sanddrah
Copy link
Author

Sanddrah commented Mar 3, 2023

The tests are passing on CI for node 14 to 18, as you can see here: https://github.com/openpgpjs/openpgpjs/actions/runs/4235637879 What version of node are you using?

Regarding sinon, what's the motivation for updating it? It'd be a breaking change, so not as simple as upgrading the dependency, and it's also dev only, so generally not a priority

Thanks for your response!
For sinon, we only have version 14 in Debian, and unfortunately we don't maintain multiple versions of a package in Debian.
So I have to find a way to make openpgp package work with sinon 14.
It will be great relief if you can make this upgrade

@Sanddrah
Copy link
Author

Sanddrah commented Mar 3, 2023

Here are the changes I made: https://salsa.debian.org/sandra_uwah/node-openpgp/-/blob/master/debian/patches/use-node-esm-support.patch
I attempted patching openpgp package to use NodeJs's in-build ECMAScript module support rather than depending on the esm package.

@larabr
Copy link
Collaborator

larabr commented Mar 4, 2023

Here are the changes I made: https://salsa.debian.org/sandra_uwah/node-openpgp/-/blob/master/debian/patches/use-node-esm-support.patch
I attempted patching openpgp package to use NodeJs's in-build ECMAScript module support rather than depending on the esm package.

Could you post the error stack trace?
I think patching imports might have unintended consequences. @twiss what do you think? If it works, maybe we could try and integrate those changes in a minor release? It'd also be helpful to be able to update mocha (v9+ do not support esm) and to start using TS.

@Sanddrah
Copy link
Author

Sanddrah commented Mar 4, 2023

Here are the changes I made: https://salsa.debian.org/sandra_uwah/node-openpgp/-/blob/master/debian/patches/use-node-esm-support.patch
I attempted patching openpgp package to use NodeJs's in-build ECMAScript module support rather than depending on the esm package.

Could you post the error stack trace? I think patching imports might have unintended consequences. @twiss what do you think? If it works, maybe we could try and integrate those changes in a minor release? It'd also be helpful to be able to update mocha (v9+ do not support esm) and to start using TS.

Here are the logs: https://paste.debian.net/1272608/

@larabr larabr changed the title Failing test CI: update Mocha and Sinon to newer versions (using Node's native esm support) Mar 31, 2023
@larabr larabr added the Testing label Mar 31, 2023
@larabr larabr mentioned this issue May 31, 2023
10 tasks
@larabr larabr added this to the v6 milestone Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants