1- name : Sequencer - Hybrid Node System Test 2
1+ name : Sequencer - Hybrid Node System Test
22
33on :
44 workflow_dispatch :
1818 overlay : hybrid.testing.node-0
1919 cluster_name : hybrid-system-test
2020 crate_triggers : " apollo_node,apollo_deployments,apollo_integration_tests"
21- path_triggers : " .github/workflows/hybrid_system_test.yaml,scripts/*.py,scripts/system_tests /**/*.py ,deployments/sequencer /**"
21+ path_triggers : " .github/workflows/hybrid_system_test.yaml,scripts/**,deployments/sequencer /**,deployments/images /**"
2222 path_triggers_exclude : " scripts/prod/**/*"
2323 pvc_storage_class_name : " premium-rwo"
2424 anvil_port : " 8545"
@@ -102,6 +102,7 @@ jobs:
102102 needs :
103103 - build_docker_images
104104 runs-on : namespace-profile-large-ubuntu-24-04-amd64
105+ timeout-minutes : 45
105106 steps :
106107 - name : Checkout repository
107108 uses : actions/checkout@v4
@@ -269,7 +270,7 @@ jobs:
269270 - name : Install Anvil
270271 uses : foundry-rs/foundry-toolchain@v1
271272 with :
272- version : v0.3.0
273+ version : v1.5.1
273274
274275 - name : Restore executable permissions
275276 run : chmod +x ./target/debug/sequencer_node_setup ./target/debug/sequencer_simulator
@@ -278,15 +279,15 @@ jobs:
278279 run : ./target/debug/sequencer_node_setup --output-base-dir ./output --data-prefix-path /data --n-consolidated 1 --n-hybrid 0 --n-distributed 0
279280
280281 - name : Generate k8s manifests
281- working-directory : deployments/sequencer2
282+ working-directory : deployments/sequencer
282283 run : |
283284 pipenv install
284285 cdk8s import
285286 echo "Generating Kubernetes manifests using hybrid layout"
286287 cdk8s synth --app "pipenv run python main.py --namespace ${{ env.namespace }} -l ${{ env.layout }} -o ${{ env.overlay }} --image ${{ env.NSC_CONTAINER_REGISTRY }}/sequencer:${{ github.sha }}"
287288
288289 - name : Deploy Sequencer
289- working-directory : deployments/sequencer2
290+ working-directory : deployments/sequencer
290291 run : |
291292 echo "Deploying Sequencer..."
292293 kubectl create namespace ${{ env.namespace }}
@@ -296,22 +297,26 @@ jobs:
296297 run : kubectl config set-context --current --namespace ${{ env.namespace }}
297298
298299 - name : Run readiness check
299- run : pipenv run python ./scripts/system_tests/readiness_check2 .py --layout ${{ env.layout }} --namespace ${{ env.namespace }}
300+ run : pipenv run python ./scripts/system_tests/readiness_check .py --layout ${{ env.layout }} --overlay ${{ env.overlay }} --namespace ${{ env.namespace }}
300301
301302 - name : Test sequencer is alive
302303 env :
303304 initial_delay_sec : 10
304305 check_interval_sec : 2
305306 check_timeout_sec : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.liveness_test_duration_sec || 10 }}
306307 run : |
307- pipenv run python ./scripts/system_tests/liveness_check2 .py \
308+ pipenv run python ./scripts/system_tests/liveness_check .py \
308309 --namespace ${{ env.namespace }} \
309310 --layout ${{ env.layout }} \
311+ --overlay ${{ env.overlay }} \
310312 --timeout ${{ env.check_timeout_sec }} \
311313 --interval ${{ env.check_interval_sec }}
312314
313315 - name : Copy state and restart pod
314- run : pipenv run python ./scripts/system_tests/copy_state_and_restart2.py --layout ${{ env.layout }} --namespace ${{ env.namespace }} --data-dir "./output/data/node_0"
316+ run : pipenv run python ./scripts/system_tests/copy_state_and_restart.py --layout ${{ env.layout }} --overlay ${{ env.overlay }} --namespace ${{ env.namespace }} --data-dir "./output/data/node_0"
317+
318+ - name : Run readiness check
319+ run : pipenv run python ./scripts/system_tests/readiness_check.py --layout ${{ env.layout }} --overlay ${{ env.overlay }} --namespace ${{ env.namespace }}
315320
316321 - name : Port-forward Anvil pod to localhost:${{ env.anvil_port }}
317322 run : |
@@ -335,7 +340,7 @@ jobs:
335340 env :
336341 RUST_LOG : debug
337342 RUST_BACKTRACE : full
338- run : pipenv run python ./scripts/system_tests/sequencer_simulator2 .py --state_sync_monitoring_endpoint_port 8082 --http_server_port 8080 --node_type "hybrid" --sender_address "${{ env.SENDER_ADDRESS }}" --receiver_address "${{ env.RECEIVER_ADDRESS }}"
343+ run : pipenv run python ./scripts/system_tests/sequencer_simulator .py --state_sync_monitoring_endpoint_port 8082 --http_server_port 8080 --node_type "hybrid" --sender_address "${{ env.SENDER_ADDRESS }}" --receiver_address "${{ env.RECEIVER_ADDRESS }}"
339344
340345 - name : List all pods in namespace ${{ env.namespace }}
341346 if : always()
0 commit comments