From 883ab6bd2abfd25065ebcc26ade2c0ba8783d879 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 20 Aug 2024 17:29:19 -0400 Subject: [PATCH] fix(ci): install procps into the containers (#481) ## Summary by CodeRabbit - **New Features** - Introduced a command to install the `procps` package in the Docker container, enhancing system utility availability. - **Improvements** - Improved performance and functionality of subsequent commands that rely on `procps` utilities. --------- Signed-off-by: Jinzhe Zeng --- ci/pbs.sh | 1 + ci/slurm.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/ci/pbs.sh b/ci/pbs.sh index 37d03868..12024c87 100755 --- a/ci/pbs.sh +++ b/ci/pbs.sh @@ -9,6 +9,7 @@ cd - docker exec pbs_master /bin/bash -c "chmod -R 777 /shared_space" docker exec pbs_master /bin/bash -c "chown -R pbsuser:pbsuser /home/pbsuser" +docker exec pbs_master /bin/bash -c "yum install -y procps" docker exec pbs_master /bin/bash -c "cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && chown -R pbsuser ." docker exec -u pbsuser pbs_master /bin/bash -c "cd /dpdispatcher && coverage run --source=./dpdispatcher -m unittest -v && coverage report" docker exec -u pbsuser --env-file <(env | grep GITHUB) pbs_master /bin/bash -c "cd /dpdispatcher && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov" diff --git a/ci/slurm.sh b/ci/slurm.sh index c68d7666..eeb0b35a 100755 --- a/ci/slurm.sh +++ b/ci/slurm.sh @@ -6,5 +6,6 @@ docker compose pull ./start-slurm.sh cd - +docker exec slurmctld /bin/bash -c "yum install -y procps" docker exec slurmctld /bin/bash -c "cd dpdispatcher && pip install uv && uv pip install --system .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report" docker exec --env-file <(env | grep -e GITHUB -e CODECOV) slurmctld /bin/bash -c "cd dpdispatcher && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov"