From ce5f20efffb4f2ea4586efb3ede43604b73491a1 Mon Sep 17 00:00:00 2001 From: Pranav Sivaraman Date: Tue, 17 Nov 2026 09:17:30 -0500 Subject: [PATCH 1/2] pseudo-cluster: add healthcheck for mariadb Signed-off-by: Pranav Sivaraman --- .github/pseudo-cluster/docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/pseudo-cluster/docker-compose.yml b/.github/pseudo-cluster/docker-compose.yml index 852d7f80a1..1bff06cc46 100644 --- a/.github/pseudo-cluster/docker-compose.yml +++ b/.github/pseudo-cluster/docker-compose.yml @@ -13,6 +13,13 @@ services: MARIADB_ROOT_PASSWORD: "my-rfm-secret" MARIADB_DATABASE: "rfm_slurm_db" MARIADB_USER: "slurm" + # https://mariadb.com/docs/server/server-management/automated-mariadb-deployment-and-administration/docker-and-mariadb/using-healthcheck-sh + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + start_period: 10s + interval: 10s + timeout: 5s + retries: 3 munge-key-generator: image: ghcr.io/reframe-hpc/munge-ubuntu:22.04 @@ -39,7 +46,7 @@ services: - "6819" depends_on: database: - condition: service_started + condition: service_healthy munge-key-generator: condition: service_healthy links: From dff92395f47f9f7dda12958028516c9ef1d87694 Mon Sep 17 00:00:00 2001 From: Pranav Sivaraman Date: Tue, 17 Nov 2026 09:24:12 -0500 Subject: [PATCH 2/2] pseudo-cluster: check that slurmdbd answers in its healthcheck Signed-off-by: Pranav Sivaraman --- .github/pseudo-cluster/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pseudo-cluster/docker-compose.yml b/.github/pseudo-cluster/docker-compose.yml index 1bff06cc46..418fcfc9e1 100644 --- a/.github/pseudo-cluster/docker-compose.yml +++ b/.github/pseudo-cluster/docker-compose.yml @@ -38,7 +38,7 @@ services: container_name: slurmdbd hostname: slurmdbd healthcheck: - test: ["CMD-SHELL", "service slurmdbd status"] + test: ["CMD-SHELL", "sacctmgr show cluster"] interval: 10s timeout: 10s retries: 5