Skip to content

Commit

Permalink
build: wait for 6 providers
Browse files Browse the repository at this point in the history
  • Loading branch information
prekucki committed Jul 16, 2024
1 parent a8568bf commit 96bebd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/prepare-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ runs:
- name: Run a preliminary scan of offers
shell: bash
run: |
docker exec -t docker-requestor-1 /bin/sh -c "npx --no-progress --yes @golem-sdk/cli market scan -k try_golem --subnet-tag $YAGNA_SUBNET --payment-network $PAYMENT_NETWORK"
docker exec -t docker-requestor-1 /bin/sh -c "npx --yes --no-progress @prekucki/wait-for-n -- --limit=6 --appkey=try_golem --subnet=$YAGNA_SUBNET"
- name: List down sessions seen on that requestor
shell: bash
Expand Down
17 changes: 11 additions & 6 deletions tests/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
image: provider:latest
restart: always
deploy:
replicas: 12
replicas: 6
volumes:
- /etc/localtime:/etc/localtime:ro
- /root/.local/share/yagna/
Expand All @@ -20,17 +20,19 @@ services:
retries: 1
start_period: 40s
environment:
- YA_NET_BROADCAST_SIZE=30
- YA_NET_BROADCAST_SIZE=10
- NODE_NAME=provider-1
- SUBNET=${YAGNA_SUBNET:-golemjstest}
- YA_NET_BIND_URL=udp://0.0.0.0:0
- YA_NET_RELAY_HOST=63.34.24.27:7477
provider-2:
build:
context: .
dockerfile: Provider.Dockerfile
image: provider:latest
restart: always
deploy:
replicas: 12
replicas: 6
volumes:
- /etc/localtime:/etc/localtime:ro
- /root/.local/share/yagna/
Expand All @@ -43,9 +45,11 @@ services:
retries: 1
start_period: 40s
environment:
- YA_NET_BROADCAST_SIZE=30
- YA_NET_BROADCAST_SIZE=10
- NODE_NAME=provider-2
- SUBNET=${YAGNA_SUBNET:-golemjstest}
- YA_NET_BIND_URL=udp://0.0.0.0:0
- YA_NET_RELAY_HOST=63.34.24.27:7477
requestor:
build:
context: .
Expand All @@ -57,14 +61,15 @@ services:
- /root/.local/share/yagna/
- ../../:/golem-js
environment:
- YA_NET_BROADCAST_SIZE=30
- YA_NET_BROADCAST_SIZE=10
- YAGNA_AUTOCONF_APPKEY=try_golem
- YAGNA_API_URL=http://0.0.0.0:7465
- GSB_URL=tcp://0.0.0.0:7464
- YAGNA_SUBNET=${YAGNA_SUBNET:-golemjstest}
- YAGNA_APPKEY=try_golem
- PAYMENT_NETWORK=${PAYMENT_NETWORK}

- YA_NET_BIND_URL=udp://0.0.0.0:0
- YA_NET_RELAY_HOST=63.34.24.27:7477
healthcheck:
test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://localhost:7465 | grep -q 401"]
interval: 10s
Expand Down

0 comments on commit 96bebd9

Please sign in to comment.