Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: update to libp2p 0.37.x #4092

Merged
merged 40 commits into from May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a745033
feat: update to libp2p 0.37.x
achingbrain May 6, 2022
5f6374d
Merge remote-tracking branch 'origin/master' into feat/update-to-esm-…
achingbrain May 6, 2022
e378a28
chore: update deps
achingbrain May 6, 2022
d0a7873
chore: remove link step in ci
achingbrain May 6, 2022
c7b5ae1
chore: fix more tests
achingbrain May 10, 2022
9f1591e
chore: update typedef imports
achingbrain May 10, 2022
d81ef2a
chore: fix more tests
achingbrain May 10, 2022
652adb7
chore: fix node tests
achingbrain May 11, 2022
62e9f9a
chore: dep version
achingbrain May 11, 2022
4bbb25f
chore: fix electron tests
achingbrain May 11, 2022
b2fbf8d
chore: fix build
achingbrain May 11, 2022
6a90363
chore: fix build
achingbrain May 11, 2022
0e14b4a
chore: skip bundle for http server
achingbrain May 12, 2022
b25f65e
chore: fix webworker tests
achingbrain May 12, 2022
c3aac68
chore: linting
achingbrain May 12, 2022
4519eb4
chore: remove unused deps
achingbrain May 12, 2022
dcbfffa
chore: fix client tests
achingbrain May 12, 2022
1317d20
chore: deps again
achingbrain May 12, 2022
a95459a
chore: adjust timeout
achingbrain May 12, 2022
dc3df3b
chore: fix tests
achingbrain May 12, 2022
035ff0c
chore: make pubsub tests more reliable
achingbrain May 12, 2022
8926d95
fix: swarm tests
achingbrain May 12, 2022
ef42d9c
chore: sometimes timeout error class names get rewritten
achingbrain May 12, 2022
1357608
chore: fix ping
achingbrain May 12, 2022
8a48146
chore: fix ping
achingbrain May 12, 2022
b131ada
chore: increase timeout for dag import tests
achingbrain May 12, 2022
bd193fe
chore: increase timeout again
achingbrain May 12, 2022
4e00392
chore: try waiting for mesh rebalance
achingbrain May 13, 2022
356c78b
chore: do not run stress tests in ci
achingbrain May 13, 2022
ea76780
chore: linting
achingbrain May 13, 2022
63a9a06
chore: just run dht tests
achingbrain May 13, 2022
ee34da3
chore: only run node tests temporarily
achingbrain May 13, 2022
49cf2a0
chore: turn off debug
achingbrain May 13, 2022
275f11c
chore: add bail to interop tests
achingbrain May 13, 2022
c744a16
chore: reenable build
achingbrain May 13, 2022
8113e82
chore: run all interop tests
achingbrain May 13, 2022
23a4664
chore: remove link step
achingbrain May 13, 2022
fe8d84c
chore: do not symlink dist folder any more
achingbrain May 13, 2022
08fa145
chore: disable examples, needs deps from release version to match
achingbrain May 13, 2022
1c4c9db
chore: use proper version of libp2p
achingbrain May 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
224 changes: 109 additions & 115 deletions .github/workflows/examples.yml
Expand Up @@ -18,119 +18,113 @@ jobs:
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
with:
build: |
npm run link

test-examples:
name: Test example ${{ matrix.example.name }}
needs: build
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
example:
- name: ipfs browser add readable stream
repo: https://github.com/ipfs-examples/js-ipfs-browser-add-readable-stream.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser angular
repo: https://github.com/ipfs-examples/js-ipfs-browser-angular.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist
- name: ipfs browser browserify
repo: https://github.com/ipfs-examples/js-ipfs-browser-browserify.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser react
repo: https://github.com/ipfs-examples/js-ipfs-browser-create-react-app.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser exchange files
repo: https://github.com/ipfs-examples/js-ipfs-browser-exchange-files.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs@$PWD/packages/ipfs/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
- name: ipfs browser ipns publish
repo: https://github.com/ipfs-examples/js-ipfs-browser-ipns-publish.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
- name: ipfs browser mfs
repo: https://github.com/ipfs-examples/js-ipfs-browser-mfs.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
# fails with No native build was found for platform=darwin arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.13.0 webpack=true
#- name: ipfs browser nextjs
# repo: https://github.com/ipfs-examples/js-ipfs-browser-nextjs.git
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser parceljs
repo: https://github.com/ipfs-examples/js-ipfs-browser-parceljs.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser readable stream
repo: https://github.com/ipfs-examples/js-ipfs-browser-readablestream.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser service worker
repo: https://github.com/ipfs-examples/js-ipfs-browser-service-worker.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-protocol@$PWD/packages/ipfs-message-port-protocol/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
- name: ipfs browser sharing across tabs
repo: https://github.com/ipfs-examples/js-ipfs-browser-sharing-node-across-tabs.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
- name: ipfs browser video streaming
repo: https://github.com/ipfs-examples/js-ipfs-browser-video-streaming.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser vue
repo: https://github.com/ipfs-examples/js-ipfs-browser-vue.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs browser webpack
repo: https://github.com/ipfs-examples/js-ipfs-browser-webpack.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs circuit relaying
repo: https://github.com/ipfs-examples/js-ipfs-circuit-relaying.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
- name: ipfs custom ipfs repo
repo: https://github.com/ipfs-examples/js-ipfs-custom-ipfs-repo.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs custom ipld formats
repo: https://github.com/ipfs-examples/js-ipfs-custom-ipld-formats.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-daemon@$PWD/packages/ipfs-daemon/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
- name: ipfs custom libp2p
repo: https://github.com/ipfs-examples/js-ipfs-custom-libp2p.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs-http-client browser pubsub
repo: https://github.com/ipfs-examples/js-ipfs-http-client-browser-pubsub.git
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
- name: ipfs-http-client bundle webpack
repo: https://github.com/ipfs-examples/js-ipfs-http-client-bundle-webpack.git
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
- name: ipfs-http-client name api
repo: https://github.com/ipfs-examples/js-ipfs-http-client-name-api.git
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist
- name: ipfs-http-client upload file
repo: https://github.com/ipfs-examples/js-ipfs-http-client-upload-file.git
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
- name: ipfs 101
repo: https://github.com/ipfs-examples/js-ipfs-101.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs-client add files
repo: https://github.com/ipfs-examples/js-ipfs-ipfs-client-add-files.git
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-client@$PWD/packages/ipfs-client/dist
- name: ipfs electron js
repo: https://github.com/ipfs-examples/js-ipfs-run-in-electron.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: ipfs running multiple nodes
repo: https://github.com/ipfs-examples/js-ipfs-running-multiple-nodes.git
deps: ipfs@$PWD/packages/ipfs/dist
- name: ipfs traverse ipld graphs
repo: https://github.com/ipfs-examples/js-ipfs-traverse-ipld-graphs.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: types with typescript
repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-ts.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
- name: types with typed js
repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-typed-js.git
deps: ipfs-core@$PWD/packages/ipfs-core/dist
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
with:
build: |
npm run link
- uses: GabrielBB/xvfb-action@v1
name: Run npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
with:
run: npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
# test-examples:
# name: Test example ${{ matrix.example.name }}
# needs: build
# runs-on: ubuntu-latest
# continue-on-error: true
# strategy:
# matrix:
# example:
# - name: ipfs browser add readable stream
# repo: https://github.com/ipfs-examples/js-ipfs-browser-add-readable-stream.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser angular
# repo: https://github.com/ipfs-examples/js-ipfs-browser-angular.git
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-core-types@$PWD/packages/ipfs-core-types
# - name: ipfs browser browserify
# repo: https://github.com/ipfs-examples/js-ipfs-browser-browserify.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser react
# repo: https://github.com/ipfs-examples/js-ipfs-browser-create-react-app.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser exchange files
# repo: https://github.com/ipfs-examples/js-ipfs-browser-exchange-files.git
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs@$PWD/packages/ipfs,ipfs-core-types@$PWD/packages/ipfs-core-types,ipfs-http-client@$PWD/packages/ipfs-http-client
# - name: ipfs browser ipns publish
# repo: https://github.com/ipfs-examples/js-ipfs-browser-ipns-publish.git
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-http-client@$PWD/packages/ipfs-http-client
# - name: ipfs browser mfs
# repo: https://github.com/ipfs-examples/js-ipfs-browser-mfs.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# # fails with No native build was found for platform=darwin arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.13.0 webpack=true
# #- name: ipfs browser nextjs
# # repo: https://github.com/ipfs-examples/js-ipfs-browser-nextjs.git
# # deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser parceljs
# repo: https://github.com/ipfs-examples/js-ipfs-browser-parceljs.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser readable stream
# repo: https://github.com/ipfs-examples/js-ipfs-browser-readablestream.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser service worker
# repo: https://github.com/ipfs-examples/js-ipfs-browser-service-worker.git
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client,ipfs-message-port-protocol@$PWD/packages/ipfs-message-port-protocol,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server
# - name: ipfs browser sharing across tabs
# repo: https://github.com/ipfs-examples/js-ipfs-browser-sharing-node-across-tabs.git
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server
# - name: ipfs browser video streaming
# repo: https://github.com/ipfs-examples/js-ipfs-browser-video-streaming.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser vue
# repo: https://github.com/ipfs-examples/js-ipfs-browser-vue.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs browser webpack
# repo: https://github.com/ipfs-examples/js-ipfs-browser-webpack.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs circuit relaying
# repo: https://github.com/ipfs-examples/js-ipfs-circuit-relaying.git
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-http-client@$PWD/packages/ipfs-http-client
# - name: ipfs custom ipfs repo
# repo: https://github.com/ipfs-examples/js-ipfs-custom-ipfs-repo.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs custom ipld formats
# repo: https://github.com/ipfs-examples/js-ipfs-custom-ipld-formats.git
# deps: ipfs-core@$PWD/packages/ipfs-core,ipfs-daemon@$PWD/packages/ipfs-daemon,ipfs-http-client@$PWD/packages/ipfs-http-client
# - name: ipfs custom libp2p
# repo: https://github.com/ipfs-examples/js-ipfs-custom-libp2p.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs-http-client browser pubsub
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-browser-pubsub.git
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client,ipfs@$PWD/packages/ipfs
# - name: ipfs-http-client bundle webpack
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-bundle-webpack.git
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client,ipfs@$PWD/packages/ipfs
# - name: ipfs-http-client name api
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-name-api.git
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client
# - name: ipfs-http-client upload file
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-upload-file.git
# deps: ipfs@$PWD/packages/ipfs,ipfs-http-client@$PWD/packages/ipfs-http-client
# - name: ipfs 101
# repo: https://github.com/ipfs-examples/js-ipfs-101.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs-client add files
# repo: https://github.com/ipfs-examples/js-ipfs-ipfs-client-add-files.git
# deps: ipfs@$PWD/packages/ipfs,ipfs-client@$PWD/packages/ipfs-client
# - name: ipfs electron js
# repo: https://github.com/ipfs-examples/js-ipfs-run-in-electron.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: ipfs running multiple nodes
# repo: https://github.com/ipfs-examples/js-ipfs-running-multiple-nodes.git
# deps: ipfs@$PWD/packages/ipfs
# - name: ipfs traverse ipld graphs
# repo: https://github.com/ipfs-examples/js-ipfs-traverse-ipld-graphs.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: types with typescript
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-ts.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# - name: types with typed js
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-typed-js.git
# deps: ipfs-core@$PWD/packages/ipfs-core
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: lts/*
# - uses: ipfs/aegir/actions/cache-node-modules@master
# - uses: GabrielBB/xvfb-action@v1
# name: Run npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
# with:
# run: npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
14 changes: 4 additions & 10 deletions .github/workflows/externals.yml
Expand Up @@ -18,9 +18,6 @@ jobs:
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
with:
build: |
npm run link

test-externals:
name: Test external ${{ matrix.external.name }}
Expand All @@ -31,25 +28,22 @@ jobs:
external:
- name: ipfs webui
repo: https://github.com/ipfs-shipyard/ipfs-webui.git
deps: ipfs@$PWD/packages/ipfs/dist
deps: ipfs@$PWD/packages/ipfs
- name: ipfs companion
repo: https://github.com/ipfs-shipyard/ipfs-companion.git
deps: ipfs@$PWD/packages/ipfs/dist
deps: ipfs@$PWD/packages/ipfs
- name: orbit-db-io
repo: https://github.com/orbitdb/orbit-db-io.git
deps: ipfs@$PWD/packages/ipfs/dist
deps: ipfs@$PWD/packages/ipfs
- name: ipfs-log
repo: https://github.com/orbitdb/ipfs-log.git
deps: ipfs@$PWD/packages/ipfs/dist,orbit-db-io@next
deps: ipfs@$PWD/packages/ipfs,orbit-db-io@next
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
with:
build: |
npm run link
- uses: GabrielBB/xvfb-action@v1
name: Run npm run test:external -- -- -- ${{ matrix.external.repo }} --deps ${{ matrix.external.deps }} --branch ${{ matrix.external.branch }}
continue-on-error: true
Expand Down