Skip to content
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

Slurm tests #3606

Merged
merged 12 commits into from
Sep 6, 2024
Merged

Slurm tests #3606

merged 12 commits into from
Sep 6, 2024

Conversation

tylern4
Copy link
Contributor

@tylern4 tylern4 commented Sep 4, 2024

Description

Adds in testing for slurm systems inside of a container which have come up from discussions with @benclifford in some emails and issue #3579

Changed Behaviour

More testing on slurm code.

Fixes

Fixes #3579

Type of change

  • New feature

@tylern4
Copy link
Contributor Author

tylern4 commented Sep 4, 2024

The slurm tests pass with the slurm config but it seems like it's still missing some slurm tests that could be helpful. Some helping getting a good config to test everything or the right pytest settings would be appreciated!

@benclifford
Copy link
Collaborator

What you've got is a test that runs the "should work with most configs" tests against an environment using the SlurmProvider.

Are you asking about specific tests that you know exist but don't see running?

I think the only other slurm-related tests are these, which don't need a working slurm instance - they only check that the provider can set itself up correctly:

$ ls parsl/tests/test_providers/test_slurm_*.py
parsl/tests/test_providers/test_slurm_instantiate.py  parsl/tests/test_providers/test_slurm_template.py

Part of the reason there is that personally I have only really pushed on tests that are run automatically, rather than at-release testing that wasn't happening in reality. If this PR was merged, the automated tests would be in a much better place to get additional tests that might test specific SlurmProvider features, rather than running a full Parsl DFK.

@tylern4
Copy link
Contributor Author

tylern4 commented Sep 5, 2024

Right I saw those two tests didn't run when I added the Slurm Config but if they are okay to be left off then I think this is good to go.

@tylern4 tylern4 marked this pull request as ready for review September 5, 2024 19:11
)


config = fresh_config()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line isn't needed and you got it by cut and pasting it from somewhere else that also doesn't need it... it also causes trouble in some situations by making configs be initialized at import (so every single test config gets initialised on every test run), rather than when the config is actually wanted.

@benclifford
Copy link
Collaborator

I saw those two tests didn't run when I added the Slurm Config

They get run in a different part of testing, because they are marked with pytest.mark.local - because they aren't tied to being run with any particular configuration.

@benclifford benclifford merged commit a3ba87a into Parsl:master Sep 6, 2024
8 checks passed
yadudoc pushed a commit to yadudoc/parsl that referenced this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI testing of SLURM in a container environment
2 participants