Skip to content
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

fix: fix PySparkProcessor __init__ params type #3354

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

andre-marcos-perez
Copy link
Contributor

@andre-marcos-perez andre-marcos-perez commented Sep 8, 2022

Issue #, if available:

Description of changes: In the sagemaker.spark.processing module, the PySparkProcessor object constructor params instance_type and instance_count params have wrong typing:

  • instance_type is a str but is being typed as int;
  • instance_count is an int but is being typed as str.

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

@andre-marcos-perez andre-marcos-perez changed the title fix: fix PySparkPySparkProcessor __init__ params type fix: fix PySparkProcessor __init__ params type Sep 16, 2022
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: e1642d9
  • Result: SUCCEEDED
  • 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 Sep 23, 2022

Codecov Report

Merging #3354 (37d503b) into master (1fa2377) will decrease coverage by 0.20%.
The diff coverage is 88.30%.

@@            Coverage Diff             @@
##           master    #3354      +/-   ##
==========================================
- Coverage   89.17%   88.96%   -0.21%     
==========================================
  Files         204      212       +8     
  Lines       18979    20435    +1456     
==========================================
+ Hits        16924    18180    +1256     
- Misses       2055     2255     +200     
Impacted Files Coverage Δ
src/sagemaker/feature_store/feature_group.py 76.52% <ø> (ø)
src/sagemaker/huggingface/model.py 89.87% <ø> (ø)
src/sagemaker/pipeline.py 85.33% <ø> (ø)
src/sagemaker/sklearn/model.py 92.98% <ø> (-1.76%) ⬇️
...sagemaker/workflow/monitor_batch_transform_step.py 0.00% <0.00%> (ø)
src/sagemaker/xgboost/model.py 96.36% <ø> (-1.82%) ⬇️
...agemaker/model_monitor/clarify_model_monitoring.py 89.84% <27.58%> (-5.09%) ⬇️
src/sagemaker/training_compiler/config.py 80.43% <60.00%> (-2.90%) ⬇️
src/sagemaker/pytorch/estimator.py 94.73% <63.63%> (-5.27%) ⬇️
src/sagemaker/sklearn/estimator.py 93.93% <63.63%> (-6.07%) ⬇️
... and 49 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: e1642d9
  • 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: e1642d9
  • 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: e1642d9
  • 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-pr
  • Commit ID: e1642d9
  • 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: 30d0d3b
  • 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: 30d0d3b
  • 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: 30d0d3b
  • 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-pr
  • Commit ID: 30d0d3b
  • 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: 30d0d3b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

Copy link
Contributor

@vikas0203 vikas0203 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 all

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@vikas0203 vikas0203 requested review from a team, mufaddal-rohawala and knikure and removed request for a team November 23, 2022 20:42
Copy link
Member

@mufaddal-rohawala mufaddal-rohawala 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 all

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-slow-tests
  • Commit ID: 0cc38db
  • 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: 37d503b
  • 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: 37d503b
  • Result: FAILED
  • Build Logs (available for 30 days)

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

Copy link
Member

@mufaddal-rohawala mufaddal-rohawala 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 slow-tests

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mufaddal-rohawala mufaddal-rohawala merged commit de58941 into aws:master Dec 2, 2022
mufaddal-rohawala added a commit that referenced this pull request Dec 9, 2022
mizanfiu pushed a commit to mizanfiu/sagemaker-python-sdk that referenced this pull request Dec 13, 2022
gradientsky pushed a commit to gradientsky/sagemaker-python-sdk that referenced this pull request Dec 20, 2022
gradientsky pushed a commit to gradientsky/sagemaker-python-sdk that referenced this pull request Dec 20, 2022
hballuru pushed a commit to hballuru/sagemaker-python-sdk that referenced this pull request Dec 21, 2022
Shegufta pushed a commit to Shegufta/sagemaker-python-sdk that referenced this pull request Dec 21, 2022
claytonparnell pushed a commit that referenced this pull request Dec 21, 2022
* fix: type hint of PySparkProcessor __init__ (#3297)

* fix: fix PySparkProcessor __init__ params type (#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (#3524)

* fix: type hint of PySparkProcessor __init__ (#3297)

* fix: fix PySparkProcessor __init__ params type (#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (#3524)

* feature: AutoGluon 0.6.1 image_uris

* feature: AutoGluon 0.6.1 image_uris

* Added processors for training images for consistency

* Formatting

* Formatting

Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Mufaddal Rohawala <[email protected]>
mufaddal-rohawala added a commit to mufaddal-rohawala/sagemaker-python-sdk that referenced this pull request Dec 21, 2022
* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* feature: AutoGluon 0.6.1 image_uris

* feature: AutoGluon 0.6.1 image_uris

* Added processors for training images for consistency

* Formatting

* Formatting

Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Mufaddal Rohawala <[email protected]>
mufaddal-rohawala added a commit that referenced this pull request Dec 21, 2022
* fix: type hint of PySparkProcessor __init__ (#3297)

* fix: fix PySparkProcessor __init__ params type (#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (#3524)

* fix: type hint of PySparkProcessor __init__ (#3297)

* fix: fix PySparkProcessor __init__ params type (#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (#3524)

* feature: AutoGluon 0.6.1 image_uris

* feature: AutoGluon 0.6.1 image_uris

* Added processors for training images for consistency

* Formatting

* Formatting

Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Mufaddal Rohawala <[email protected]>
jmahlik pushed a commit to jmahlik/sagemaker-python-sdk that referenced this pull request Dec 22, 2022
gwang111 added a commit to gwang111/sagemaker-python-sdk that referenced this pull request Jan 5, 2023
* feature: Add create inf rec api to session

* save

* fix error handling in submit. update docstring

* add in job_name param

* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* feature: add describe inf rec api to session

* feature: add describe inf rec api to session

* feature: add describe inf rec api to session

* add verbose logging in wait_for_inference_recommendations_job

* improve unit tests

* switch to cloudwatch logs

* add unit tests

* fix unit test

* make default logging level to Verbose

* address comments in PR

* address some comments

* fix typo missing s

* add initial print because it took a while for cw logstream to appear

* print and conditional optimizations and update tests

* optimize log print

* fix polling for logs empty events

* cover empty event case

* add spacing

Co-authored-by: Gary Wang <[email protected]>
Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Raymond Liu <[email protected]>
gwang111 added a commit to gwang111/sagemaker-python-sdk that referenced this pull request Jan 5, 2023
* feature: Add create inf rec api to session

* save

* fix error handling in submit. update docstring

* add in job_name param

* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* feature: add describe inf rec api to session

* feature: add describe inf rec api to session

* feature: add describe inf rec api to session

* add verbose logging in wait_for_inference_recommendations_job

* improve unit tests

* switch to cloudwatch logs

* add unit tests

* fix unit test

* make default logging level to Verbose

* address comments in PR

* address some comments

* fix typo missing s

* add initial print because it took a while for cw logstream to appear

* print and conditional optimizations and update tests

* optimize log print

* fix polling for logs empty events

* cover empty event case

* add spacing

Co-authored-by: Gary Wang <[email protected]>
Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Raymond Liu <[email protected]>
gwang111 added a commit to gwang111/sagemaker-python-sdk that referenced this pull request Jan 6, 2023
* feature: Add create inf rec api to session

* save

* fix error handling in submit. update docstring

* add in job_name param

* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* feature: add describe inf rec api to session

* feature: add describe inf rec api to session

* feature: add describe inf rec api to session

* add verbose logging in wait_for_inference_recommendations_job

* improve unit tests

* switch to cloudwatch logs

* add unit tests

* fix unit test

* make default logging level to Verbose

* address comments in PR

* address some comments

* fix typo missing s

* add initial print because it took a while for cw logstream to appear

* print and conditional optimizations and update tests

* optimize log print

* fix polling for logs empty events

* cover empty event case

* add spacing

Co-authored-by: Gary Wang <[email protected]>
Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Raymond Liu <[email protected]>
wcarpenter1-godaddy pushed a commit to wcarpenter1-godaddy/sagemaker-python-sdk that referenced this pull request Feb 8, 2023
JoseJuan98 pushed a commit to JoseJuan98/sagemaker-python-sdk that referenced this pull request Mar 4, 2023
JoseJuan98 pushed a commit to JoseJuan98/sagemaker-python-sdk that referenced this pull request Mar 4, 2023
* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* feature: AutoGluon 0.6.1 image_uris

* feature: AutoGluon 0.6.1 image_uris

* Added processors for training images for consistency

* Formatting

* Formatting

Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Mufaddal Rohawala <[email protected]>
JoseJuan98 pushed a commit to JoseJuan98/sagemaker-python-sdk that referenced this pull request Mar 4, 2023
* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* feature: AutoGluon 0.6.1 image_uris

* feature: AutoGluon 0.6.1 image_uris

* Added processors for training images for consistency

* Formatting

* Formatting

Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Mufaddal Rohawala <[email protected]>
tejaschumbalkar pushed a commit to tejaschumbalkar/sagemaker-python-sdk that referenced this pull request Mar 17, 2023
tejaschumbalkar pushed a commit to tejaschumbalkar/sagemaker-python-sdk that referenced this pull request Mar 20, 2023
nmadan pushed a commit to nmadan/sagemaker-python-sdk that referenced this pull request Apr 18, 2023
nmadan pushed a commit to nmadan/sagemaker-python-sdk that referenced this pull request Apr 18, 2023
* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* fix: type hint of PySparkProcessor __init__ (aws#3297)

* fix: fix PySparkProcessor __init__ params type (aws#3354)

* fix: Revert "fix: type hint of PySparkProcessor __init__" (aws#3524)

* feature: AutoGluon 0.6.1 image_uris

* feature: AutoGluon 0.6.1 image_uris

* Added processors for training images for consistency

* Formatting

* Formatting

Co-authored-by: Kevin <[email protected]>
Co-authored-by: André Perez <[email protected]>
Co-authored-by: Mufaddal Rohawala <[email protected]>
nmadan pushed a commit to nmadan/sagemaker-python-sdk that referenced this pull request Apr 18, 2023
nmadan pushed a commit to nmadan/sagemaker-python-sdk that referenced this pull request Apr 18, 2023
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