Skip to content

fix: Support file URIs in ProcessingStep's code parameter #3051

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 7, 2022

Conversation

staubhp
Copy link
Contributor

@staubhp staubhp commented Apr 6, 2022

Issue #, if available:
N/A

Description of changes:
ProcessingStep hashes the contents of local files passed to code to fix cache miss issues. Update the hash function to support file URIs.

Testing done:
Unit, manual

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 backword 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.

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: cff17b9
  • 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-commenter commented Apr 6, 2022

Codecov Report

Merging #3051 (599a782) into master (6ce11cb) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3051      +/-   ##
==========================================
- Coverage   89.47%   89.39%   -0.08%     
==========================================
  Files        1028      196     -832     
  Lines       84153    16660   -67493     
==========================================
- Hits        75294    14894   -60400     
+ Misses       8859     1766    -7093     
Impacted Files Coverage Δ
src/sagemaker/workflow/utilities.py 100.00% <100.00%> (ø)
...ython3.7/site-packages/sagemaker/lineage/_utils.py
...ages/sagemaker/feature_store/feature_definition.py
...hon3.7/site-packages/sagemaker/sparkml/__init__.py
...y36/lib/python3.6/site-packages/sagemaker/tuner.py
...site-packages/sagemaker/debugger/metrics_config.py
.../python3.8/site-packages/sagemaker/cli/__init__.py
.../site-packages/sagemaker/huggingface/processing.py
...hon3.6/site-packages/sagemaker/sparkml/__init__.py
.../lib/python3.6/site-packages/sagemaker/pipeline.py
... and 823 more

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 6ce11cb...599a782. Read the comment docs.

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 599a782
  • 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: cff17b9
  • 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: 599a782
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@ahsan-z-khan ahsan-z-khan merged commit 9e34237 into aws:master Apr 7, 2022
ahsan-z-khan pushed a commit to ahsan-z-khan/sagemaker-python-sdk that referenced this pull request Apr 7, 2022
* fix: Support file URIs in ProcessingStep's code parameter

* Don't strip leading slash from file uri

Co-authored-by: Payton Staub <[email protected]>
jerrypeng7773 pushed a commit to jerrypeng7773/sagemaker-python-sdk that referenced this pull request May 13, 2022
* fix: Support file URIs in ProcessingStep's code parameter

* Don't strip leading slash from file uri

Co-authored-by: Payton Staub <[email protected]>
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.

9 participants