Skip to content

feature: handle use case where endpoint is created outside of python … #3867

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

Merged
merged 2 commits into from
May 18, 2023

Conversation

doddaspk-amzn
Copy link
Contributor

@doddaspk-amzn doddaspk-amzn commented May 17, 2023

feature: handle use case where endpoint is created outside of python sdk with failure path as None

Issue #, if available:

Description of changes: Updating the predictor (async predictor) to handle the endpoints that are created outside of python sdk (say console) with failure path as None

Testing done: Manual & Unit Tests

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • [X ] I have read the CONTRIBUTING doc
  • [ X] I certify that the changes I am introducing will be backward compatible, and I have discussed concerns about this, if any, with the Python SDK team
  • [ X] I used the commit message format described in CONTRIBUTING
  • I have passed the region in to all S3 and STS clients that I've initialized as part of this change.
  • [X ] I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

  • [ X] I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • [ X] I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes
  • [ X] I have checked that my tests are not configured for a specific region or account (if appropriate)
  • I have used unique_name_from_base to create resource names in integ tests (if appropriate)

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

@doddaspk-amzn doddaspk-amzn marked this pull request as ready for review May 17, 2023 20:41
@doddaspk-amzn doddaspk-amzn requested a review from a team as a code owner May 17, 2023 20:41
@doddaspk-amzn doddaspk-amzn requested review from trajanikant and removed request for a team May 17, 2023 20:41
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: ba959bb
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: c9bab0d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: c9bab0d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: c9bab0d
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: c9bab0d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-slow-tests
  • Commit ID: c9bab0d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@@ -87,8 +87,31 @@ def get_result(
return self._result

def _get_result_from_s3(self, output_path, failure_path):
"""Retrieve output based on the presense of failure_path"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Lgtm - synced with Praneeth offline as well; we'll track a backlog item to go back to SageMaker Python SDK again and add Integ tests for edge case where customers created Async endpoint without failure path and loaded in Python SDK for invocation usage.

Copy link
Contributor

@knikure knikure left a comment

Choose a reason for hiding this comment

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

/bot run notebook-tests

@knikure knikure self-assigned this May 18, 2023
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: c9bab0d
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@codecov-commenter
Copy link

Codecov Report

Merging #3867 (c9bab0d) into master (4bc49e5) will decrease coverage by 0.72%.
The diff coverage is 82.75%.

@@            Coverage Diff             @@
##           master    #3867      +/-   ##
==========================================
- Coverage   89.96%   89.24%   -0.72%     
==========================================
  Files        1140      267     -873     
  Lines      105616    26127   -79489     
==========================================
- Hits        95021    23318   -71703     
+ Misses      10595     2809    -7786     
Impacted Files Coverage Δ
...emaker/async_inference/async_inference_response.py 82.00% <76.92%> (ø)
src/sagemaker/predictor_async.py 91.85% <87.50%> (ø)

... and 1405 files with indirect coverage changes

@knikure knikure merged commit 0f37695 into aws:master May 18, 2023
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: c9bab0d
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

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.

5 participants