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

Pyflyte run workflows correctly handles Optional[TYPE] = None #1849

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

cosmicBboy
Copy link
Contributor

TL;DR

Prior to this PR, pyflyte run didn't support workflows with a default None value.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • [ ] Code documentation added
  • [ ] Any pending items have an associated Issue

Complete description

Updates the pyflyte run command to handle None values in the literal type converter.

Tracking Issue

NA

Follow-up issue

NA

Signed-off-by: Niels Bantilan <[email protected]>
pingsutw
pingsutw previously approved these changes Sep 25, 2023
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (3f87154) 20.13% compared to head (c404605) 20.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1849      +/-   ##
==========================================
- Coverage   20.13%   20.13%   -0.01%     
==========================================
  Files         337      337              
  Lines       32427    32430       +3     
  Branches     5857     5859       +2     
==========================================
  Hits         6530     6530              
- Misses      25731    25734       +3     
  Partials      166      166              
Files Coverage Δ
flytekit/clis/sdk_in_container/run.py 0.00% <0.00%> (ø)
flytekit/interaction/click_types.py 0.00% <0.00%> (ø)

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

eapolinario
eapolinario previously approved these changes Sep 25, 2023
Copy link
Collaborator

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

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

one nit. Won't block the PR on it.

tests/flytekit/unit/cli/pyflyte/test_run.py Outdated Show resolved Hide resolved
Signed-off-by: Niels Bantilan <[email protected]>
@cosmicBboy cosmicBboy dismissed stale reviews from eapolinario and pingsutw via c404605 September 26, 2023 15:42
@eapolinario eapolinario merged commit ae23ddb into master Sep 26, 2023
66 of 68 checks passed
@cosmicBboy cosmicBboy deleted the pyflyte-run-default branch September 26, 2023 20:16
Future-Outlier pushed a commit to Future-Outlier/flytekit that referenced this pull request Oct 3, 2023
…rg#1849)

* fix pyflyte run handling of default None

Signed-off-by: Niels Bantilan <[email protected]>

* update tests

Signed-off-by: Niels Bantilan <[email protected]>

* remote print statements in tests

Signed-off-by: Niels Bantilan <[email protected]>

---------

Signed-off-by: Niels Bantilan <[email protected]>
Signed-off-by: Future Outlier <[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.

3 participants