Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

chore: update deps #116

Merged
merged 2 commits into from
Apr 13, 2021
Merged

chore: update deps #116

merged 2 commits into from
Apr 13, 2021

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Apr 13, 2021

Update deps

@@ -43,15 +40,14 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-webrtc-direct#readme",
"engines": {
"node": ">=12.0.0",
"npm": ">=6.0.0"
"node": ">=14.0.0"
},
"devDependencies": {
"aegir": "^30.3.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating to aegir 31+ causes a segmentation fault running the tests. I think this is related to wrtc, but I will create an issue and investigate this separately to avoid blocking the dependencies updates in the bundle

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried updating the test command when upgrading aegir?

npx nyc -s npm run test:node -- --bail

to

npx ageir test -t node --cov --bail

I saw something similar in ipld/js-ipld-ethereum#71 (comment) and this fixed it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this does also happens to me locally not running nyc. Anyway, just tried locally with a single test case:

➜  js-libp2p-webrtc-direct git:(chore/update-deps-12-04-2021) ✗ npx aegir test -t node
Test Node.js
listener started on: /ip4/127.0.0.1/tcp/12345/http/p2p-webrtc-direct


  dial
    ✓ dial on IPv4 (6109ms)


  1 passing (6s)

Command was killed with SIGSEGV (Segmentation fault): mocha test/node.{js,ts} test/**/*.spec.{js,ts} --ui bdd --timeout=5000

package.json Outdated Show resolved Hide resolved
@@ -63,10 +59,10 @@
"detect-node": "^2.0.4",
"err-code": "^3.0.0",
"libp2p-interfaces": "libp2p/js-interfaces#chore/skip-abort-while-reading-for-webrtc",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed before release

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an old thing that needs to be fixed. This comes from the async refactor: #30

I will create an issue so that we can triage it, but tldr there is a bug in this module when we abort while reading

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vasco-santos vasco-santos merged commit 7334ce5 into master Apr 13, 2021
@vasco-santos vasco-santos deleted the chore/update-deps-12-04-2021 branch April 13, 2021 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants