Skip to content

Commit

Permalink
Migrate to test-plan composite action (#2039)
Browse files Browse the repository at this point in the history
* Initial migration to test-plan composite action

* Update docs
  • Loading branch information
thomaseizinger authored Feb 2, 2023
1 parent 20c975e commit a5d4b2b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 61 deletions.
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.

0 comments on commit a5d4b2b

Please sign in to comment.