Skip to content
This repository was archived by the owner on Aug 26, 2020. It is now read-only.

Conversation

@mvsusp
Copy link
Contributor

@mvsusp mvsusp commented Nov 20, 2018

Description of changes:

release: 2.3.4

  • feature: add capture_error flag to process.check_error and process.create and to
    all functions that runs process: modules.run, modules,run_module, and entry_point.run

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


error_msg = decode_error() if self.output else ''

message = '%s:\nCommand "%s"\n%s' % (type(self).__name__, self.cmd, error_msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

this leaves extra newline in the message if error_msg is '' (self.output = None)


def __str__(self):
message = '%s:\nCommand "%s"' % (type(self).__name__, self.cmd)
def decode_error():
Copy link
Contributor

Choose a reason for hiding this comment

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

why nested? why same name as member function?

@mvsusp mvsusp changed the title WIP feature: add capture_error flag to process.check_error and process.create and to all functions that runs process: modules.run, modules,run_module, and entry_point.run Nov 20, 2018
@mvsusp mvsusp changed the title feature: add capture_error flag to process.check_error and process.create and to all functions that runs process: modules.run, modules,run_module, and entry_point.run Add capture_error flag to process.check_error and process.create Nov 20, 2018
@codecov-io
Copy link

codecov-io commented Nov 20, 2018

Codecov Report

Merging #140 into master will increase coverage by 0.06%.
The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
+ Coverage   95.47%   95.53%   +0.06%     
==========================================
  Files          20       20              
  Lines         840      852      +12     
  Branches       73       76       +3     
==========================================
+ Hits          802      814      +12     
  Misses         23       23              
  Partials       15       15
Impacted Files Coverage Δ
src/sagemaker_containers/_errors.py 96.77% <100%> (+0.94%) ⬆️
src/sagemaker_containers/_process.py 100% <100%> (ø) ⬆️
src/sagemaker_containers/_modules.py 97.1% <100%> (ø) ⬆️
src/sagemaker_containers/entry_point.py 95.34% <87.5%> (ø) ⬆️

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 d3c901c...cdadc88. Read the comment docs.

CHANGELOG.rst Outdated
=====

* feature: add capture_error flag to process.check_error and process.create and to
all functions that runs process: modules.run, modules,run_module, and entry_point.run
Copy link
Contributor

Choose a reason for hiding this comment

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

should not be newline here



def install(path): # type: (str) -> None
def install(path, capture_error=False): # type: (str) -> None
Copy link
Contributor

Choose a reason for hiding this comment

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

update type hint

Copy link
Contributor

@jesterhazy jesterhazy left a comment

Choose a reason for hiding this comment

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

fix PR description, but otherwise LGTM

@mvsusp mvsusp merged commit 3bdea78 into aws:master Nov 20, 2018
@mvsusp mvsusp deleted the mvs-capture-error branch November 20, 2018 08:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants