Skip to content

Commit c9ed1c7

Browse files
authoredJan 25, 2024
chore: re-enable interop tests (#2376)
libp2p/test-plans#343 is fixed so revert #2374
1 parent d2e8170 commit c9ed1c7

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed
 

‎.github/workflows/main.yml

+33-35
Original file line numberDiff line numberDiff line change
@@ -172,39 +172,37 @@ jobs:
172172
- uses: ipfs/aegir/actions/cache-node-modules@master
173173
- run: npm run test:interop -- --bail
174174

175-
# these are currently broken pending a rust upgrade
176-
# https://github.com/libp2p/test-plans/issues/343
177-
# transport-interop:
178-
# needs: build
179-
# runs-on: ${{ fromJSON(github.repository == 'libp2p/js-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
180-
# steps:
181-
# - uses: actions/checkout@v3
182-
# - uses: actions/setup-node@v3
183-
# with:
184-
# node-version: lts/*
185-
# - uses: ipfs/aegir/actions/cache-node-modules@master
186-
# with:
187-
# directories: |
188-
# ./interop/dist
189-
# ./interop/node_modules
190-
# - name: Build images
191-
# run: (cd interop && make -j 4)
192-
# - name: Save package-lock.json as artifact
193-
# uses: actions/upload-artifact@v2
194-
# with:
195-
# name: package locks
196-
# path: |
197-
# package-lock.json
198-
# interop/package-lock.json
199-
# - uses: libp2p/test-plans/.github/actions/run-interop-ping-test@master
200-
# with:
201-
# test-filter: js-libp2p-head
202-
# test-ignore: nim
203-
# extra-versions: ${{ github.workspace }}/interop/node-version.json ${{ github.workspace }}/interop/chromium-version.json ${{ github.workspace }}/interop/firefox-version.json
204-
# s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
205-
# s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
206-
# s3-secret-access-key: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
207-
# worker-count: 16
175+
transport-interop:
176+
needs: build
177+
runs-on: ${{ fromJSON(github.repository == 'libp2p/js-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
178+
steps:
179+
- uses: actions/checkout@v3
180+
- uses: actions/setup-node@v3
181+
with:
182+
node-version: lts/*
183+
- uses: ipfs/aegir/actions/cache-node-modules@master
184+
with:
185+
directories: |
186+
./interop/dist
187+
./interop/node_modules
188+
- name: Build images
189+
run: (cd interop && make -j 4)
190+
- name: Save package-lock.json as artifact
191+
uses: actions/upload-artifact@v2
192+
with:
193+
name: package locks
194+
path: |
195+
package-lock.json
196+
interop/package-lock.json
197+
- uses: libp2p/test-plans/.github/actions/run-interop-ping-test@master
198+
with:
199+
test-filter: js-libp2p-head
200+
test-ignore: nim
201+
extra-versions: ${{ github.workspace }}/interop/node-version.json ${{ github.workspace }}/interop/chromium-version.json ${{ github.workspace }}/interop/firefox-version.json
202+
s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
203+
s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
204+
s3-secret-access-key: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
205+
worker-count: 16
208206

209207
release:
210208
runs-on: ubuntu-latest
@@ -216,8 +214,8 @@ jobs:
216214
test-firefox-webworker,
217215
test-electron-main,
218216
test-electron-renderer,
219-
test-interop #,
220-
#transport-interop
217+
test-interop ,
218+
transport-interop
221219
]
222220
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
223221
permissions:

0 commit comments

Comments
 (0)
Please sign in to comment.