Skip to content

Conversation

@rsarm
Copy link
Contributor

@rsarm rsarm commented Jun 12, 2020

Closes #1368

@rsarm rsarm added this to the ReFrame sprint 20.09 milestone Jun 12, 2020
@rsarm rsarm requested review from ekouts and vkarak June 12, 2020 07:10
@rsarm rsarm self-assigned this Jun 12, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 12, 2020

Codecov Report

Merging #1372 into master will decrease coverage by 0.06%.
The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1372      +/-   ##
==========================================
- Coverage   91.66%   91.60%   -0.07%     
==========================================
  Files          83       83              
  Lines       12673    12610      -63     
==========================================
- Hits        11617    11551      -66     
- Misses       1056     1059       +3     
Impacted Files Coverage Δ
reframe/core/launchers/mpi.py 98.76% <ø> (-0.14%) ⬇️
reframe/core/schedulers/__init__.py 98.67% <ø> (-0.16%) ⬇️
reframe/core/schedulers/pbs.py 64.83% <ø> (-0.76%) ⬇️
reframe/core/schedulers/slurm.py 55.08% <ø> (-0.73%) ⬇️
reframe/frontend/cli.py 76.38% <0.00%> (-1.61%) ⬇️
reframe/frontend/executors/__init__.py 98.37% <ø> (-0.03%) ⬇️
reframe/frontend/executors/policies.py 98.21% <ø> (ø)
unittests/test_launchers.py 94.93% <ø> (ø)
unittests/test_schedulers.py 91.55% <100.00%> (-0.27%) ⬇️

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 dc490b0...d221bf6. Read the comment docs.

f"use `-J account={options.account}'")

if options.partition:
options.job_options.append(f'partition={options.partition}')
Copy link
Contributor

Choose a reason for hiding this comment

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

@vkarak do we want to keep the option working only for slurm? Is there a way to pass this argument for both pbs and slurm through job_options?

Copy link
Contributor

Choose a reason for hiding this comment

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

@ekout, you are right. We cannot drop the support for other schedulers now, so we should keep the sched_partition until we completely remove the scheduler-specific options.

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.

sched_partition should remain along with all the unit tests that are using it. Check also my comments about the flexible allocation tests.

f"use `-J account={options.account}'")

if options.partition:
options.job_options.append(f'partition={options.partition}')
Copy link
Contributor

Choose a reason for hiding this comment

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

@ekout, you are right. We cannot drop the support for other schedulers now, so we should keep the sched_partition until we completely remove the scheduler-specific options.

def test_flex_alloc_valid_reservation_cmd(make_flexible_job):
job = make_flexible_job('all',
sched_access=['--constraint=f2'],
sched_reservation='dummy')
Copy link
Contributor

Choose a reason for hiding this comment

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

This test should remain except that the reservation should be passed through sched_options.

def test_flex_alloc_exclude_nodes_cmd(make_flexible_job):
job = make_flexible_job('all',
sched_access=['--constraint=f1'],
sched_exclude_nodelist='nid00001')
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above.

@rsarm
Copy link
Contributor Author

rsarm commented Jun 17, 2020

After discussing with @vkarak we are postponing this Reframe 3.2 when we will remove sched_partition as well.

@rsarm rsarm removed this from the ReFrame sprint 20.09 milestone Jun 17, 2020
@vkarak vkarak added this to the ReFrame sprint 20.13 milestone Sep 8, 2020
@rsarm
Copy link
Contributor Author

rsarm commented Sep 10, 2020

Closing in favor of #1483

@rsarm rsarm closed this Sep 10, 2020
@rsarm rsarm deleted the feat/sched_vars branch March 10, 2021 08:38
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.

Remove sched_* internal variables

4 participants