-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Remove sched_* internal variables
#1372
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
| f"use `-J account={options.account}'") | ||
|
|
||
| if options.partition: | ||
| options.job_options.append(f'partition={options.partition}') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
vkarak
left a comment
There was a problem hiding this 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}') |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above.
|
After discussing with @vkarak we are postponing this Reframe 3.2 when we will remove |
|
Closing in favor of #1483 |
Closes #1368