Skip to content

Commit b79f2b7

Browse files
committed
chore: set validator runtime
Signed-off-by: Huamin Chen <[email protected]>
1 parent 321a337 commit b79f2b7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ansible/host_vars/localhost.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ collect_id: "workflow_run"
2222
prom_url: "http://localhost:9090"
2323
pipeline_name: "Equinix_Pipeline"
2424
stress_test_script_path: "/opt/kepler/e2e/tools/validator/scripts/stressor.sh"
25-
total_time_in_seconds: "{{ lookup('env', 'TOTAL_RUNTIME_SECONDS') }}"

ansible/model_trainer_playbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
vm_user: "{{ hostvars['localhost']['ssh_tunnel_user'] }}"
4646
vm_name: "{{ hostvars['localhost']['ssh_tunnel_vm'] }}"
4747
ssh_key_path: "{{ hostvars['localhost']['ssh_key_path'] }}"
48-
total_time_in_seconds: "{{ hostvars['localhost']['total_time_in_seconds'] }}"
4948
ansible.builtin.shell: |
5049
export PATH=$PATH:/usr/local/bin
5150
echo $PATH
@@ -63,10 +62,11 @@
6362
# Stress
6463
chmod +x {{ stress_test_script_path }}
6564
export START_TIME=$(date +%s)
65+
echo "total runtime seconds: {{ total_runtime_seconds }}"
6666
for i in {1..{{ stress_iterations }}}; do
6767
echo "Iteration: $i"
6868
# ssh to the vm and run the stress_test_script
69-
ssh -i {{ ssh_key_path }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null {{ vm_user }}@{{ vm_name }} /tmp/stress_test.sh -t {{ total_time_in_seconds }}
69+
ssh -i {{ ssh_key_path }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null {{ vm_user }}@{{ vm_name }} /tmp/stress_test.sh -t {{ total_runtime_seconds }}
7070
done
7171
export END_TIME=$(date +%s)
7272

0 commit comments

Comments
 (0)