Skip to content

Commit

Permalink
Fixed race condition in CI distributed test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Madeeks committed Oct 29, 2024
1 parent 4a8fdc4 commit 6e1f0e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ coverage:
script:
- . ./CI/utility_docker_functions.bash Debug gcc-gcov.cmake $(pwd) $HOST_CACHES_PATH standalone-build standalone-run
- sarus-build-and-test
coverage: '/^TOTAL.*\s+(\d+\%)$/'

rocky8:
extends: .from_source
Expand Down
7 changes: 4 additions & 3 deletions CI/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services:
hostname: controller
volumes:
- etc-munge-volume:/etc/munge
- etc-slurm-volume:/etc/slurm
- opt-sarus-volume:/opt/sarus
- @cached_oci_hooks_dir@:/home/docker/.oci-hooks
- @cached_local_repo_dir@:/home/docker/.sarus
Expand All @@ -29,7 +28,6 @@ services:
hostname: server0
volumes:
- etc-munge-volume:/etc/munge
- etc-slurm-volume:/etc/slurm
- opt-sarus-volume:/opt/sarus
- @cached_oci_hooks_dir@:/home/docker/.oci-hooks
- @cached_local_repo_dir@:/home/docker/.sarus
Expand All @@ -41,8 +39,10 @@ services:
sleep 1;
done;
. /sarus-source/CI/utility_functions.bash
&& . /sarus-source/CI/src/integration_tests_for_virtual_cluster/helpers.bash
&& change_uid_gid_of_docker_user @host_uid@ @host_gid@
&& /etc/init.d/munge start
&& generate_slurm_conf /etc/slurm/slurm.conf controller server0 server1
&& touch /etc/slurm/gres.conf && echo Starting slurmd
&& slurmd -L /var/log/slurm/slurmd && echo Going to sleep
&& sleep infinity"
Expand All @@ -58,7 +58,6 @@ services:
hostname: server1
volumes:
- etc-munge-volume:/etc/munge
- etc-slurm-volume:/etc/slurm
- opt-sarus-volume:/opt/sarus
- @cached_oci_hooks_dir@:/home/docker/.oci-hooks
- @cached_local_repo_dir@:/home/docker/.sarus
Expand All @@ -70,8 +69,10 @@ services:
sleep 1;
done;
. /sarus-source/CI/utility_functions.bash
&& . /sarus-source/CI/src/integration_tests_for_virtual_cluster/helpers.bash
&& change_uid_gid_of_docker_user @host_uid@ @host_gid@
&& /etc/init.d/munge start
&& generate_slurm_conf /etc/slurm/slurm.conf controller server0 server1
&& touch /etc/slurm/gres.conf && echo Starting slurmd
&& slurmd -L /var/log/slurm/slurmd && echo Going to sleep
&& sleep infinity"
Expand Down

0 comments on commit 6e1f0e6

Please sign in to comment.