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

Add support for Database/Database name to render StorageLoc in slurmdbd configuration #2470

Merged
merged 6 commits into from
Sep 27, 2023

Conversation

jdeamicis
Copy link
Contributor

Description of changes

  • Add support for Scheduling/SlurmSettings/Database/DatabaseName to be used to configure StorageLoc in the slurmdbd configuration include file generated by ParallelCluster.
  • Add some unit tests (InSpec and ChefSpec) for the config_slurm_accounting.rb recipe.

Tests

  • Added case in unit test for the rendering of the Slurm configuration include files relevant for Slurm Accounting.
  • Manually ran the InSpec and ChefSpec added for the config_slurm_accounting.rb recipe.

References

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jdeamicis jdeamicis added the 3.x label Sep 25, 2023
@jdeamicis jdeamicis requested review from a team as code owners September 25, 2023 00:48
@jdeamicis jdeamicis changed the title Wip/devel/expose storageloc Add support for Database/Database name to render StorageLoc in slurmdbd configuration Sep 25, 2023
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (ffd33c6) 76.06% compared to head (b401a23) 76.06%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2470   +/-   ##
========================================
  Coverage    76.06%   76.06%           
========================================
  Files           13       13           
  Lines         1876     1876           
========================================
  Hits          1427     1427           
  Misses         449      449           
Flag Coverage Δ
unittests 76.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jdeamicis jdeamicis force-pushed the wip/devel/expose_storageloc branch 2 times, most recently from 9ef5ef1 to e9e838d Compare September 25, 2023 01:08
@jdeamicis jdeamicis force-pushed the wip/devel/expose_storageloc branch from e9e838d to 91adb71 Compare September 27, 2023 11:17
Cover part of the recipe for the configuration of Slurm Accounting
with InSpec tests runnable on docker.

Signed-off-by: Jacopo De Amicis <[email protected]>
Add logic to use Database/DatabaseName to render StorageLoc in
slurm_parallelcluster_slurmdbd.con if provided. The default value
remains the name of the cluster (opportunely transformed).

Add unit test case to cover creation of slurmdbd conf include file
with the usage of Database/DatabaseName in the input YAML file.

Add Changelog entry.

Signed-off-by: Jacopo De Amicis <[email protected]>
Add trick to have the logic for the renderization of the template
indented without affecting the final output. This improves the
comprehension of the logic embedded in the template (although
slightly visually impacting).

Signed-off-by: Jacopo De Amicis <[email protected]>
Simplify unit test for generation of Slurm accounting configuration files.

Remove commented parameters in slurm kitchen test configuration file.

Modify copyright year in one file.

Signed-off-by: Jacopo De Amicis <[email protected]>
@jdeamicis jdeamicis force-pushed the wip/devel/expose_storageloc branch from 91adb71 to b401a23 Compare September 27, 2023 12:14
@jdeamicis jdeamicis enabled auto-merge (rebase) September 27, 2023 12:15
@jdeamicis jdeamicis merged commit aa61edb into aws:develop Sep 27, 2023
28 checks passed
@jdeamicis jdeamicis deleted the wip/devel/expose_storageloc branch September 27, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants