chore(prombench): re-roder checks on nodes to avoid deadlocks start and cancel and in restart

the start job requires the node pools to be gone before creating them, and
the cleanup and restart jobs require the pools to be running to delete them,
When the initial start is partial (only one pool was created), no command can
move forward...

the preconditions should be relaxed, for more robustness.

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
This commit is contained in:
machine424 2025-09-02 12:26:03 +02:00
parent 70bf09cb2b
commit 91ef9a50b9
No known key found for this signature in database
GPG key ID: A4B001A4FDEE017D

View file

@ -38,8 +38,8 @@ jobs:
uses: docker://prominfra/prombench:master
with:
args: >-
until make all_nodes_deleted; do echo "waiting for nodepools to be deleted"; sleep 10; done;
make deploy;
until make all_nodes_running; do echo "waiting for nodepools to be created"; sleep 10; done;
- name: Update status to failure
if: failure()
run: >-
@ -73,8 +73,8 @@ jobs:
uses: docker://prominfra/prombench:master
with:
args: >-
until make all_nodes_running; do echo "waiting for nodepools to be created"; sleep 10; done;
make clean;
until make all_nodes_deleted; do echo "waiting for nodepools to be deleted"; sleep 10; done;
- name: Update status to failure
if: failure()
run: >-
@ -108,10 +108,10 @@ jobs:
uses: docker://prominfra/prombench:master
with:
args: >-
until make all_nodes_running; do echo "waiting for nodepools to be created"; sleep 10; done;
make clean;
until make all_nodes_deleted; do echo "waiting for nodepools to be deleted"; sleep 10; done;
make deploy;
until make all_nodes_running; do echo "waiting for nodepools to be created"; sleep 10; done;
- name: Update status to failure
if: failure()
run: >-