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

Migrate to test-plan composite action #2039

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 7 additions & 24 deletions .github/workflows/interop-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,14 @@ on:
- "master"

jobs:
build-ping-container:
name: Build Ping interop container
runs-on: ubuntu-latest
run-multidim-interop:
name: Run multidimensional interoperability tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build image
working-directory: ./test-plans
run: make
- name: Upload ping versions info
uses: actions/upload-artifact@v3
run: docker build -t go-libp2p-head -f test-plans/PingDockerfile .
- uses: libp2p/test-plans/.github/actions/run-interop-ping-test@c9130e425d266e5b222636d61348c0f8d6b978e4
with:
name: ping-versions
path: ./test-plans/ping-versions.json
- name: Upload image tar
uses: actions/upload-artifact@v3
with:
name: ping-image
path: ./test-plans/ping-image.tar
run-multidim-interop:
needs: build-ping-container
uses: "libp2p/test-plans/.github/workflows/run-testplans.yml@master"
with:
dir: "multidim-interop"
extra-versions: ping-versions
image-tar: ping-image
test-filter: "go-libp2p-head"
test-filter: go-libp2p-head
extra-versions: ${{ github.workspace }}/test-plans/ping-version.json
10 changes: 0 additions & 10 deletions test-plans/Makefile

This file was deleted.

11 changes: 5 additions & 6 deletions test-plans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ of these nodes with the other version's interop test.

To run this test against all released libp2p versions you'll need to have the
(libp2p/test-plans)[https://github.com/libp2p/test-plans] checked out. Then do
the following:
the following (from the root directory of this repository):

1. Build the image: `make`.
1. Build the image: `docker build -t go-libp2p-head -f test-plans/PingDockerfile .`.
2. Build the images for all released versions in `libp2p/test-plans`: `(cd <path
to >/libp2p/test-plans/multidim-interop/ && make)`.
3. Make a folder for the specified extra versions: `mkdir extra-versions && mv ping-versions.json extra-versions`
4. Run the test:
3. Run the test:
```
GO_LIBP2P_TEST_PLANS="$PWD"; (cd <path to >/libp2p/test-plans/multidim-interop/ && npm run test -- --extra-versions-dir=$GO_LIBP2P_TEST_PLANS/extra-versions --name-filter="go-libp2p-head")
GO_LIBP2P="$PWD"; (cd <path to >/libp2p/test-plans/multidim-interop/ && npm run test -- --extra-version=$GO_LIBP2P/test-plans/ping-version.json --name-filter="go-libp2p-head")

```
```
19 changes: 19 additions & 0 deletions test-plans/ping-version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "go-libp2p-head",
"containerImageID": "go-libp2p-head",
"transports": [
"tcp",
"ws",
"quic",
"quic-v1",
"webtransport"
],
"secureChannels": [
"tls",
"noise"
],
"muxers": [
"mplex",
"yamux"
]
}
21 changes: 0 additions & 21 deletions test-plans/ping-versions.json

This file was deleted.