-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: log-parsing example log-parsing for ConvertJob, based on sample log files. sample logs for other errored-jobs and unit tests are needed. * Added support and tests for ConvertJob, NuQCJob FastQCJob still in progress * test fix for CI * debug CI * debug CI * debug CI: Exception not being caught * flake8 * Error-handling appears normal. Test re-written. Test rewritten to be perhaps more flexible. * test * fix error in new test 'Logs' -> 'logs' in pathing. Doesn't affect MacOSX systems since we default to case-insensitive fs. However on Ubuntu and CI, paths are case-sensitive, hence the bug appears. * FastQCJob test added * cleanup --------- Co-authored-by: charlie <[email protected]>
- Loading branch information
1 parent
2b15b07
commit 00ef0aa
Showing
10 changed files
with
334 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
class PipelineError(Exception): | ||
def __init__(self, message=None, mailing_list=None): | ||
def __init__(self, message=None): | ||
self.message = message | ||
super().__init__(self.message) | ||
|
||
|
||
class JobFailedError(PipelineError): | ||
# Occurs when a successfully-submitted job as failed. | ||
def __init__(self, message=None): | ||
self.message = message | ||
super().__init__(self.message) | ||
|
||
|
||
class ExecFailedError(PipelineError): | ||
# Occurs when an executed command returns w/an error, which is defined as | ||
# the command returning a value not zero and not an acceptable non-zero | ||
# value. | ||
def __init__(self, message=None): | ||
self.message = message | ||
super().__init__(self.message) | ||
|
||
|
||
class LogParsingError(PipelineError): | ||
# Occurs when an executed command returns w/an error, which is defined as | ||
# the command returning a value not zero and not an acceptable non-zero | ||
# value. May or may not be useful. | ||
def __init__(self, message=None): | ||
self.message = message | ||
self.mailing_list = mailing_list | ||
super().__init__(self.message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.