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

Unit test batch sys handlers slurm and lsf #3358

Merged

Conversation

matthewrmshin
Copy link
Contributor

@matthewrmshin matthewrmshin commented Sep 11, 2019

Add unit tests for slurm and lsf batch system handlers logic. More of #3356.

Reverse suite name and task ID in job name for consistency with PBS handler.

  • To look like task.cycle.suite.

Remove redundant .filter_poll_output methods from handlers.

Replace .get_fail_signals methods with .FAIL_SIGNALS constants.

This is a small change with no associated Issue.

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Appropriate tests are included (unit and/or functional).
  • Appropriate change log entry included.
  • No documentation update required.

@matthewrmshin matthewrmshin added this to the cylc-8.0a2 milestone Sep 11, 2019
@matthewrmshin matthewrmshin self-assigned this Sep 11, 2019
@matthewrmshin matthewrmshin force-pushed the unittest-batch_sys_handlers-slurm-and-lsf branch from bd98b3f to 94499c8 Compare September 12, 2019 08:39
@cylc cylc deleted a comment Sep 12, 2019
@matthewrmshin matthewrmshin force-pushed the unittest-batch_sys_handlers-slurm-and-lsf branch from 94499c8 to 51fc690 Compare September 12, 2019 10:56
@matthewrmshin matthewrmshin marked this pull request as ready for review September 12, 2019 10:56
Add unit tests for slurm and lsf batch system handlers logic.

Reverse suite name and task ID in job name for consistency with PBS handler.
* To look like `task.cycle.suite`.

Remove redundant `.filter_poll_output` methods from handlers.

Replace `.get_fail_signals` methods with `.FAIL_SIGNALS` constants.
@matthewrmshin matthewrmshin force-pushed the unittest-batch_sys_handlers-slurm-and-lsf branch from 51fc690 to f1d511f Compare September 12, 2019 12:37
Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

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

Found nothing out of ordinary. Assuming Travis passes, and that the code removed was OK to be removed, +1 👍

@hjoliver hjoliver merged commit 287ead8 into cylc:master Sep 17, 2019
@matthewrmshin matthewrmshin modified the milestones: cylc-8.0a2, cylc-8.0a1 Sep 17, 2019
@matthewrmshin matthewrmshin deleted the unittest-batch_sys_handlers-slurm-and-lsf branch September 17, 2019 11:00
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.

3 participants