Skip to content

Commit 4b7c75e

Browse files
committed
add simnet run command to Makefile and CI
1 parent cb93735 commit 4b7c75e

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ jobs:
105105
DEGREE=4 \
106106
MSG_SIZE=256
107107
timeout-minutes: 30
108+
109+
- name: Run simnet simulation (random-regular, 10 nodes)
110+
run: |
111+
make run-simnet \
112+
TOPOLOGY_TYPE=random-regular \
113+
NODE_COUNT=10 \
114+
DEGREE=4 \
115+
MSG_SIZE=256
116+
timeout-minutes: 3
108117

109118
- name: Test simulation results
110119
run: |

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ run-sim: build generate-config
5858
shadow --progress $(PROGRESS) shadow-gossipsub.yaml
5959
@echo "GossipSub simulation completed"
6060

61+
# Run the complete Shadow simulation
62+
run-simnet: generate-config
63+
@echo "Starting GossipSub simnet simulation ($(NODE_COUNT) nodes, $(MSG_SIZE) byte message)..."
64+
cd $(GOSSIPSUB_DIR) && go test -v .
65+
@echo "GossipSub simnet simulation completed"
66+
6167
# Test simulation results
6268
test:
6369
@echo "Testing GossipSub simulation results..."

0 commit comments

Comments
 (0)