Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Jun 8, 2020

  • The --constraint options passed via access and job.options
    are combined in the resulting job script.

  • Add unittests to test the expected behavior.

Fixes #1348

* The `--constraint` options passed via `access` and `job.options`
  are combined in the resulting job script.

* Add unittests to test the expected behavior.
@teojgo teojgo requested review from ekouts and vkarak June 8, 2020 08:49
@teojgo teojgo self-assigned this Jun 8, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2020

Codecov Report

Merging #1363 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1363      +/-   ##
==========================================
+ Coverage   91.66%   91.69%   +0.02%     
==========================================
  Files          83       83              
  Lines       12673    12712      +39     
==========================================
+ Hits        11617    11656      +39     
  Misses       1056     1056              
Impacted Files Coverage Δ
reframe/core/schedulers/slurm.py 57.54% <100.00%> (+1.72%) ⬆️
unittests/test_schedulers.py 92.23% <100.00%> (+0.40%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c18cde8...4c64113. Read the comment docs.

@vkarak vkarak added this to the ReFrame sprint 20.09 milestone Jun 9, 2020
Copy link
Contributor

@ekouts ekouts left a comment

Choose a reason for hiding this comment

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

@teojgo I think you should add some comment in the documentation (maybe here) that explains that the constraint job option will be combined and not just added after the "access" options.

Currently, when you pass -J c=c1, -J -c=c1, -J constraint=c1, -J --constraint=c1 it is combined, but when you pass -J "#..." this will be passed verbatim in the script and slurm will only consider the last job option.

@teojgo
Copy link
Contributor Author

teojgo commented Jun 10, 2020

@ekouts ok I will add a note text block in the documentation

@teojgo
Copy link
Contributor Author

teojgo commented Jun 12, 2020

@vkarak in which section do you think I should add the a documentation note about this?

@vkarak
Copy link
Contributor

vkarak commented Jun 12, 2020

@teojgo The point that @ekouts suggested above should be ok.

Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

I will fix the remaining issue.

@vkarak vkarak merged commit 8bf8e1e into reframe-hpc:master Jun 17, 2020
@teojgo teojgo deleted the bugfix/slurm_combined_constraints branch June 26, 2020 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passing a --constraint job option should be combined with the access one for Slurm

4 participants