Skip to content

Conversation

GroovyDan
Copy link

Issue #, if available:

Description of changes:
Using os.path.join in the prepare_framework function can cause an issue on windows. The sagemaker_submit_directory hyperparameter value gets incorrectly set with the current implementation. Since key should refer to an S3 key, we should be able to join on / instead. Specifically, this issue cropped up when I was using the aws-step-functions-data-science-sdk-python to orchestrate a training job. They are building out their training definition using the ariflow training configs which references this code. (See here: https://github.com/aws/aws-step-functions-data-science-sdk-python/blob/main/src/stepfunctions/steps/sagemaker.py#L111)

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.

@claytonparnell claytonparnell force-pushed the fix_airflow_prepare_framework_windows_bug branch from c0de21e to 3a8e471 Compare October 19, 2022 17:12
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: 3a8e471
  • 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: 3a8e471
  • 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: 3a8e471
  • 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: 3a8e471
  • 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 Oct 19, 2022

Codecov Report

Merging #3393 (e6aab74) into master (9e8230c) will decrease coverage by 0.84%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #3393      +/-   ##
==========================================
- Coverage   89.66%   88.82%   -0.85%     
==========================================
  Files         872      205     -667     
  Lines       77968    19258   -58710     
==========================================
- Hits        69913    17106   -52807     
+ Misses       8055     2152    -5903     
Impacted Files Coverage Δ
src/sagemaker/workflow/airflow.py 91.61% <50.00%> (ø)
...ckages/sagemaker/model_monitor/monitoring_files.py
...lib/python3.8/site-packages/sagemaker/predictor.py
...ython3.10/site-packages/sagemaker/amazon/kmeans.py
...thon3.7/site-packages/sagemaker/jumpstart/types.py
...agemaker/async_inference/async_inference_config.py
...n3.10/site-packages/sagemaker/apiutils/__init__.py
...9/lib/python3.9/site-packages/sagemaker/clarify.py
...thon3.8/site-packages/sagemaker/jumpstart/utils.py
...ython3.9/site-packages/sagemaker/mxnet/defaults.py
... and 1068 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-pr
  • Commit ID: 3a8e471
  • 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-unit-tests
  • Commit ID: e6aab74
  • 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: e6aab74
  • 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-local-mode-tests
  • Commit ID: e6aab74
  • 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: e6aab74
  • 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: e6aab74
  • Result: FAILED
  • 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, claytonparnell and knikure and removed request for claytonparnell, mufaddal-rohawala and a team November 23, 2022 20:37
NivekNey and others added 15 commits December 2, 2022 12:48
Co-authored-by: Mufaddal Rohawala <muffi179@gmail.com>
Co-authored-by: Basil Beirouti <BasilBeirouti@gmail.com>
Co-authored-by: Kalyani Nikure <110067132+knikure@users.noreply.github.com>
Co-authored-by: Navin Soni <navinns@amazon.com>
* Add DXB region

* Remove change from neuron

* Adding DXB to TF 2.1.0 and 2.1.1
Co-authored-by: Brock Wade <bwayde@amazon.com>
Co-authored-by: Mufaddal Rohawala <89424143+mufaddal-rohawala@users.noreply.github.com>
@mufaddal-rohawala
Copy link
Member

@GroovyDan apologies for late review on this PR, can you help rebase this PR with latest master?

@GroovyDan
Copy link
Author

@mufaddal-rohawala looks like the issue this PR was fixing has already been fixed with the introduction of the s3.s3_path_join function. Closing this PR.

@GroovyDan GroovyDan closed this Aug 16, 2023
@GroovyDan GroovyDan deleted the fix_airflow_prepare_framework_windows_bug branch August 16, 2023 19:22
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.