Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add is_final_step under processing/training/lambda/function step #3

Open
Rosie-Chenyr wants to merge 1 commit intosvia3:yarou-devsvia3/sagemaker-python-sdk:yarou-devfrom
Rosie-Chenyr:yarou-devRosie-Chenyr/sagemaker-python-sdk:yarou-devCopy head branch name to clipboard
Open

Add is_final_step under processing/training/lambda/function step #3
Rosie-Chenyr wants to merge 1 commit intosvia3:yarou-devsvia3/sagemaker-python-sdk:yarou-devfrom
Rosie-Chenyr:yarou-devRosie-Chenyr/sagemaker-python-sdk:yarou-devCopy head branch name to clipboard

Conversation

@Rosie-Chenyr
Copy link

Description of changes:
Add is_final_step under processing/training/lambda/function step

Testing done:
Unit test that the value of is_final_step can be transferred into json when defined

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.

…unit test that the value of is_final_step can be transferred into json when defined
"""Gets the request structure for workflow service calls."""
request_dict = super().to_request()

if self.is_final_step:
Copy link
Owner

Choose a reason for hiding this comment

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

I dont see any unit tests using the @step wrapper that hits this section of code. FunctionSteps are created when users use this annotation. Did we test this / plan to test it? My intuition is that this won't work as they have a different critical path.

Copy link
Author

Choose a reason for hiding this comment

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

The unit test using the @step decorator is in tests/unit/sagemaker/workflow/test_function_step.py, where I used a current case and defined the value of is_final_step as true and test its result after the step is created.
image

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.