Run CLI P2P E2E in Compose CI

This commit is contained in:
vorotamoroz
2026-07-09 02:02:02 +00:00
parent af72cac4e3
commit b9a27ffef9
5 changed files with 81 additions and 14 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ RUN deno cache --lock=deno.lock \
bench-latency-sweep.ts \
bench-p2p-split-node.ts \
bench-p2p.ts \
bench-couchdb.ts
bench-couchdb.ts \
test-p2p-sync.ts
COPY test/bench-network/run-bench.sh /usr/local/bin/run-livesync-bench
RUN chmod +x /usr/local/bin/run-livesync-bench
+7
View File
@@ -96,6 +96,13 @@ services:
BENCH_PEERS_TIMEOUT: ${BENCH_PEERS_TIMEOUT:-60}
LIVESYNC_P2P_RELAY_READY_TIMEOUT_MS: ${LIVESYNC_P2P_RELAY_READY_TIMEOUT_MS:-60000}
BENCH_LIVESYNC_TEST_TEE: ${BENCH_LIVESYNC_TEST_TEE:-0}
CLI_P2P_E2E_TASK: ${CLI_P2P_E2E_TASK:-test:p2p-sync}
RELAY: ${RELAY:-ws://nostr-relay:7777/}
PEERS_TIMEOUT: ${PEERS_TIMEOUT:-20}
SYNC_TIMEOUT: ${SYNC_TIMEOUT:-60}
LIVESYNC_USE_COTURN: ${LIVESYNC_USE_COTURN:-0}
TURN_SERVERS: ${TURN_SERVERS:-none}
LIVESYNC_P2P_PEERS_RETRY: ${LIVESYNC_P2P_PEERS_RETRY:-1}
volumes:
- ./bench-results:/workspace/src/apps/cli/testdeno/bench-results
+4 -1
View File
@@ -11,9 +11,12 @@ case "${BENCH_COMMAND:-cases}" in
p2p-split-node)
exec deno task bench:p2p-split-node
;;
cli-p2p-e2e)
exec deno task "${CLI_P2P_E2E_TASK:-test:p2p-sync}"
;;
*)
echo "Unknown BENCH_COMMAND: ${BENCH_COMMAND}" >&2
echo "Expected one of: cases, latency-sweep, p2p-split-node" >&2
echo "Expected one of: cases, latency-sweep, p2p-split-node, cli-p2p-e2e" >&2
exit 2
;;
esac