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

Add WebRTC transport interop ping test #67

Closed
2 changes: 1 addition & 1 deletion .github/workflows/interop-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
for i in 1 2 3; do
echo "=== Attempt $i ==="
make /tmp/builds-artifacts.toml && exit 0
make build-all && exit 0
sleep 1
done
exit 1
Expand Down
37 changes: 22 additions & 15 deletions composer/Makefile
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
all: ./demo/results.csv ./demo/results.md
all: ./demo/results.csv ./demo/results.html

# combine versions into a list of combinations + the list of build targets
./demo/combinations.toml: ./index.ts ./demo/rust.toml ./demo/go.toml
./demo/combinations.toml: ./index.ts ./demo/rust.toml ./demo/go.toml ./node_modules/.bin/ts-node
./node_modules/.bin/ts-node index.ts combine ./demo/combinations.toml ./demo/rust.toml ./demo/go.toml

#We don't want to assume no one else is doing something similar elsewhere on the same machine, nor do we want to assume your TMPDIR is /tmp. Using != for portability between makes.
mktempd != mktemp -d
OURTMP ?= $(mktempd)

# generate the list of every build-artifacts we need to run the tests
/tmp/builds-artifacts.toml: ./demo/combinations.toml ./demo/composition-interop.toml
make build-all
$(OURTMP)/builds-artifacts.toml: ./demo/combinations.toml demo/composition-interop.toml
make 'OURTMP=$(OURTMP)' build-all

# extract the artifacts into a resource files
./demo/artifacts.toml: ./index.ts /tmp/builds-artifacts.toml
./node_modules/.bin/ts-node index.ts extract-artifacts ./demo/artifacts.toml /tmp/builds-artifacts.toml
./demo/artifacts.toml: ./index.ts $(OURTMP)/builds-artifacts.toml ./node_modules/.bin/ts-node
./node_modules/.bin/ts-node index.ts extract-artifacts ./demo/artifacts.toml $(OURTMP)/builds-artifacts.toml

# call all the runs
./demo/results.csv: ./index.ts ./demo/composition-interop-runner.toml ./demo/artifacts.toml ./demo/combinations.toml
make run-all
make 'OURTMP=$(OURTMP)' run-all

./demo/results.html: ./index.ts ./demo/results.csv ./node_modules/.bin/ts-node
./node_modules/.bin/ts-node index.ts export-results ./demo/results.csv ./demo/results.html

./demo/results.md: ./index.ts ./demo/results.csv
./node_modules/.bin/ts-node index.ts export-results ./demo/results.csv ./demo/results.md
./node_modules/.bin/ts-node :
npm install

build-all:
rm -rf /tmp/demo/
cp -R ./demo/ /tmp/demo/
rm -rf $(OURTMP)/demo/
cp -R ./demo/ $(OURTMP)/demo/
RustLibp2pMasterSha=eb10af7 \
GoLibp2pMasterSha="63b8803" \
CustomRustGitTarget="" \
CustomRustGitReference="" \
CustomGoGitTarget="" \
CustomGoGitReference="" \
RunId=42 \
testground build composition -f /tmp/demo/composition-interop.toml --wait -w
cp /tmp/demo/composition-interop.toml /tmp/builds-artifacts.toml
echo "cat /tmp/builds-artifacts.toml to see the intermediate file"
testground build composition -f $(OURTMP)/demo/composition-interop.toml --wait -w
cp -v $(OURTMP)/demo/composition-interop.toml $(OURTMP)/builds-artifacts.toml
echo "cat $(OURTMP)/builds-artifacts.toml to see the intermediate file"

run-all:
rm -rf ./runs/
Expand All @@ -43,4 +50,4 @@ run-all:
CustomGoGitTarget="" \
CustomGoGitReference="" \
RunId=42 \
./node_modules/.bin/ts-node index.ts foreach ./demo/results.csv run composition -f ./demo/composition-interop-runner.toml --wait --collect --collect-file runs/__TEST_RUN_ID__.tgz
./node_modules/.bin/ts-node index.ts foreach ./demo/results.csv run composition -f ./demo/composition-interop-runner.toml --wait --collect --collect-file runs/__TEST_RUN_ID__.tgz
18 changes: 6 additions & 12 deletions composer/demo/artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
rust-master = "892a93f7e73a"
"rust-v0.47.0" = "08198ea8a3ee"
"rust-v0.46.0" = "3e84da3a0e77"
"rust-v0.45.1" = "256c6805b1c2"
"rust-v0.44.0" = "5caac365e837"
go-master = "9dd68e54e1d1"
"go-v0.22" = "f41142781293"
"go-v0.21" = "31870c04b0db"
"go-v0.20" = "a1a9f7b142ab"
"go-v0.19" = "b0b301b81cef"
"go-v0.17" = "2bfde640aa3f"
"go-v0.11" = "c337c37e7977"
"rust-master.tcp" = "578ce20eaf5a"
"rust-v0.47.0.tcp" = "3948eafb262e"
"go-master.tcp" = "0ef14e652779"
"go-v0.22.tcp" = "02a3cb6feb1c"
"go-ckousik.webrtc" = "494b96a42a09"
"anotherwebrtc.webrtc" = "494b96a42a09"
Loading