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 goth test_e2e_outbound_perf #2627

Merged
merged 14 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from 5 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker-outbound-*
key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ubuntu:22.04

RUN apt update \
&& apt install -y libssl-dev ca-certificates \
&& update-ca-certificates \
&& apt install -y iperf3

COPY outbound-bench/target/release/outbound-bench /usr/bin/outbound-bench
COPY entrypoint.sh /golem/entrypoints/entrypoint.sh

RUN chmod +x /usr/bin/outbound-bench
RUN chmod +x /golem/entrypoints/entrypoint.sh

VOLUME /golem/work /golem/output /golem/resource
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build:
cargo build --release --manifest-path=outbound-bench/Cargo.toml
docker build -t outbound-test-v5 .
gvmkit-build outbound-test-v5

push: build
gvmkit-build outbound-test-v5 --push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

/usr/bin/outbound-bench --addr $1 --port-echo $2 --port-sink $3 --port-iperf $4 --mib-per-sec $5 --requests-count $6 --stages $7 > /golem/output/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"version": "0.1.0",
"createdAt": "2023-06-01T12:00:00.000000Z",
"expiresAt": "2100-01-01T00:01:00.000000Z",
"metadata": {
"name": "outbound testing utility",
"description": "Used by the test_e2e_outbound_perf goth test in yagna",
"version": "0.1.0"
},
"payload": [
{
"platform": {
"arch": "x86_64",
"os": "linux"
},
"urls": [
"http://yacn2.dev.golem.network:8000/docker-outbound-test-v5-latest-3b2d8f2052.gvmi"
],
"hash": "sha3:9fbc07c722a966302ed4af7d6f4efaa5a33e886ba051fe83a3a0e203"
}
],
"compManifest": {
"version": "0.1.0",
"script": {
"commands": [
"run .*outbound-bench.*",
"run .*iperf3.*",
"run .*entrypoint.sh.*",
"transfer .*output.json"
],
"match": "regex"
},
"net": {
"inet": {
"out": {
"protocols": [
"http",
"https"
],
"unrestricted": {
"urls": true
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target/
output.json
iperf.log
Loading