Skip to content

Commit bfaf4cb

Browse files
ci: add simulator step to the system test (#7716)
1 parent 27e6e36 commit bfaf4cb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/consolidated_system_test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
crate_triggers: "apollo_node,apollo_deployments,apollo_integration_tests"
2020
path_triggers: ".github/workflows/consolidated_system_test.yaml,scripts/*.py,scripts/system_tests/**/*.py"
2121
pvc_storage_class_name: "premium-rwo"
22+
anvil_port: "8545"
2223

2324
permissions:
2425
contents: read
@@ -319,6 +320,21 @@ jobs:
319320
- name: Copy state and restart pod
320321
run: pipenv run python ./scripts/system_tests/copy_state_and_restart.py --deployment_config_path ${{ env.deployment_config_path }} --data-dir "./output/data/node_0/executable_0"
321322

323+
- name: Port-forward Anvil pod to localhost:${{ env.anvil_port }}
324+
run: |
325+
echo "🔌 Setting up port-forward to Anvil..."
326+
327+
ANVIL_POD=$(kubectl get pods -n anvil -l app=anvil -o jsonpath="{.items[0].metadata.name}")
328+
echo "🌐 Found Anvil pod: $ANVIL_POD"
329+
330+
# Start port-forwarding in background and keep it running
331+
kubectl port-forward -n anvil "$ANVIL_POD" ${{ env.anvil_port }}:${{ env.anvil_port }} &
332+
echo "⏳ Waiting a few seconds to ensure port-forward is established..."
333+
sleep 2
334+
335+
- name: Send transactions test
336+
run: pipenv run python ./scripts/system_tests/sequencer_simulator.py --deployment_config_path ${{ env.deployment_config_path }} --config_dir "${{ env.config_dir }}" --node_type "consolidated" --sender_address "${{ env.SENDER_ADDRESS }}" --receiver_address "${{ env.RECEIVER_ADDRESS }}"
337+
322338
- name: Get container logs
323339
if: always()
324340
run: |

0 commit comments

Comments
 (0)