-
Notifications
You must be signed in to change notification settings - Fork 1
Add runtime integration tests for Slurm plugin functionality #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dennisklein
merged 4 commits into
main
from
copilot/implement-ci-check-runtime-functionality
Nov 3, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a3414c5
refactor: remove legacy Vagrant development environment
dennisklein 9b31988
feat: add Docker Compose runtime test infrastructure
dennisklein db72e07
ci: add GitHub Actions workflow for runtime tests
dennisklein 71599d3
refactor: deduplicate hard-coded values in test scripts
dennisklein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Runtime Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| runtime-test: | ||
| name: Slurm ${{ matrix.slurm }} | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - ubuntu_version: plucky | ||
| slurm: 24.11 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Run runtime integration tests | ||
| run: | | ||
| cd tests/runtime | ||
| UBUNTU_VERSION=${{ matrix.ubuntu_version }} ./run-tests.sh | ||
| env: | ||
| UBUNTU_VERSION: ${{ matrix.ubuntu_version }} | ||
| BUILDX_CACHE_FROM: type=gha,scope=${{ matrix.ubuntu_version }} | ||
| BUILDX_CACHE_TO: type=gha,mode=max,scope=${{ matrix.ubuntu_version }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| singularity-exec.so | ||
| *.rpm | ||
| .vagrant/ | ||
| build/ | ||
| install/ | ||
| build-* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # Dockerfile for runtime testing of slurm-singularity-exec | ||
| # Sets up a complete Slurm cluster with controller and compute nodes | ||
|
|
||
| ARG UBUNTU_VERSION=25.04 | ||
| FROM ubuntu:${UBUNTU_VERSION} | ||
|
|
||
| # Install Slurm, Munge, and dependencies | ||
| RUN apt-get update -y && \ | ||
| DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
| slurm-wlm \ | ||
| slurm-wlm-basic-plugins \ | ||
| slurmd \ | ||
| slurmctld \ | ||
| munge \ | ||
| cmake \ | ||
| g++ \ | ||
| ninja-build \ | ||
| libslurm-dev \ | ||
| curl \ | ||
| sudo \ | ||
| retry \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Try to install singularity-container if available (may not be in all Ubuntu versions) | ||
| RUN apt-get update -y && \ | ||
| DEBIAN_FRONTEND=noninteractive apt-get install -y singularity-container || true \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Create necessary directories and files | ||
| RUN mkdir -p /var/spool/slurmctld \ | ||
| /var/spool/slurmd \ | ||
| /var/spool/slurm \ | ||
| /var/run/slurm \ | ||
| /etc/slurm \ | ||
| /etc/slurm/plugstack.conf.d \ | ||
| && chown -R slurm:slurm /var/spool/slurmctld /var/spool/slurmd /var/spool/slurm /var/run/slurm \ | ||
| && touch /etc/localtime | ||
|
|
||
| # Set working directory | ||
| WORKDIR /workspace | ||
|
|
||
| # Default command will be overridden in docker-compose | ||
| CMD ["/bin/bash"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.