@@ -264,7 +264,7 @@ jobs:
264264 done
265265
266266 - name : Run end-to-end integration tests
267- run : cargo run --bin integration-tests test --port-range 50057-50061
267+ run : cargo run --bin integration-tests test --port-range 50051-50055
268268
269269 - name : Shutdown stack & print logs
270270 run : |
@@ -465,22 +465,17 @@ jobs:
465465 - name : Install dependencies
466466 run : sudo apt-get update && sudo apt-get install -y protobuf-compiler libclang-dev clang
467467
468- - name : Create NodeCluster (3 nodes)
469- run : ./scripts/clear_dkg_keys.sh
470-
471468 - name : Start 5-node stack with network chaos
472469 run : |
473- if [ "${{ github.event_name }}" = "pull_request" ]; then
474- bash setup_nodes.sh 5 "trieve/threshold:pr-${{ github.event.pull_request.number }}"
475- else
476- bash setup_nodes.sh 5 "trieve/threshold:latest"
477- fi
470+ # Modify docker-compose.yaml to the correct tag
471+ sed -i "s/trieve\/threshold:latest/trieve\/threshold:pr-${{ github.event.pull_request.number }}/g" docker-compose.yaml
472+ docker compose -f docker-compose.yaml up -d
478473
479474 - name : Wait for gRPC endpoint
480475 run : |
481- echo "Waiting for node to expose port 50057-50061 ..."
476+ echo "Waiting for node to expose port 50051-50055 ..."
482477 for i in {1..30}; do
483- if nc -z localhost {50057..50061 }; then
478+ if nc -z localhost {50051..50055 }; then
484479 echo "Port 50057-50061 is open."
485480 break
486481 fi
@@ -489,12 +484,12 @@ jobs:
489484 done
490485
491486 - name : Run end-to-end integration tests with network chaos
492- run : cargo run --bin integration-tests test --port-range 50057-50061
487+ run : cargo run --bin integration-tests test --port-range 50051-50055
493488
494489 - name : Shutdown stack & print logs
495490 run : |
496- docker compose -f docker-compose.yaml -f docker-compose.chaos-network.yaml logs --no-color || true
497- docker compose -f docker-compose.yaml -f docker-compose.chaos-network.yaml down --volumes --remove-orphans || true
491+ docker compose -f docker-compose.yaml logs --no-color || true
492+ docker compose -f docker-compose.yaml down --volumes --remove-orphans || true
498493
499494 end-to-end-deposit-withdrawl-chaos-nodes :
500495 runs-on : blacksmith-16vcpu-ubuntu-2204
@@ -558,7 +553,7 @@ jobs:
558553 done
559554
560555 - name : Run end-to-end integration tests with node chaos
561- run : cargo run --bin integration-tests test --port-range 50057-50061
556+ run : cargo run --bin integration-tests test --port-range 50051-50055
562557
563558 - name : Shutdown stack & print logs
564559 run : |
0 commit comments