Skip to content

[Fix] Switch to subprocess in ModelBuilder when capturing dependencies #4556

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
Apr 2, 2024
Merged

[Fix] Switch to subprocess in ModelBuilder when capturing dependencies #4556

merged 2 commits into from
Apr 2, 2024

Conversation

jiapinw
Copy link
Contributor

@jiapinw jiapinw commented Apr 2, 2024

Issue #, if available:

Description of changes:

  • Switch to subprocess in ModelBuilder when capturing dependencies

Testing done:

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

  • I have read the CONTRIBUTING doc
  • 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
  • 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.
  • I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes
  • 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.

@samruds samruds requested a review from akrishna1995 April 2, 2024 19:07
@samruds
Copy link
Collaborator

samruds commented Apr 2, 2024

Minor just update the title and description : progress -> process

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 87.44%. Comparing base (58717d2) to head (9879fb4).
Report is 1 commits behind head on master.

Files Patch % Lines
...ker/serve/save_retrive/version_1_0_0/save/utils.py 25.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4556   +/-   ##
=======================================
  Coverage   87.44%   87.44%           
=======================================
  Files         389      389           
  Lines       36888    36889    +1     
=======================================
+ Hits        32256    32257    +1     
  Misses       4632     4632           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jiapinw jiapinw changed the title [Fix] Switch to subprogress in ModelBuilder when capturing dependencies [Fix] Switch to subprocess in ModelBuilder when capturing dependencies Apr 2, 2024
@jiapinw jiapinw marked this pull request as ready for review April 2, 2024 20:03
@jiapinw jiapinw requested a review from a team as a code owner April 2, 2024 20:03

os.system(command)
subprocess.run(command, check=True, capture_output=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we write a UT for test? Can you confirm how this was tested

Copy link
Contributor

@akrishna1995 akrishna1995 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 pr

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@akrishna1995 akrishna1995 merged commit 2d873d5 into aws:master Apr 2, 2024
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@jiapinw jiapinw deleted the switch-to-subprocess branch April 3, 2024 17:31
malav-shastri pushed a commit to malav-shastri/sagemaker-python-sdk that referenced this pull request Jun 20, 2024
aws#4556)

* [Fix] Switch to subprogress in ModelBuilder when capturing dependencies

* Fix style issues and explicitly set check to true
jiapinw added a commit to jiapinw/sagemaker-python-sdk that referenced this pull request Jun 25, 2024
aws#4556)

* [Fix] Switch to subprogress in ModelBuilder when capturing dependencies

* Fix style issues and explicitly set check to true
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.

4 participants