Skip to content

Commit

Permalink
tests(slurm_ops): create slurm user for snap integration tests
Browse files Browse the repository at this point in the history
The Slurm snap currently does not create a Slurm system user, so the integration
tests needs an additional step to add both the slurm group and user. This is
something that should be patched in the Slurm snap when the team revisits the
snap package.

Signed-off-by: Jason C. Nucciarone <[email protected]>
  • Loading branch information
NucciTheBoss committed Oct 8, 2024
1 parent 2785ddd commit e53f6a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration/test_hpc_libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ acts:
apt install -y python3-venv python3-yaml
python3 -m venv venv --system-site-packages
venv/bin/python3 -m pip install -r dev-requirements.txt
- name: "Create slurm user"
run: |
groupadd --gid 64030 slurm
adduser \
--system --gid 64030 --uid 64030 \
--no-create-home --home /nonexistent slurm
- name: "Run `slurm_ops` integration tests"
run: |
PYTHONPATH=./lib \
Expand Down Expand Up @@ -93,4 +99,4 @@ acts:
-s \
--tb native \
--log-cli-level=INFO \
slurm_ops
slurm_ops

0 comments on commit e53f6a3

Please sign in to comment.