-
Notifications
You must be signed in to change notification settings - Fork 307
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 serialization of tasks with environment variables set #1066
Conversation
Signed-off-by: Jeev B <[email protected]>
assert c.env == {"FOO": "bar", "HAM": "spam"} | ||
|
||
|
||
def test_get_container_without_serialization_settings_envvars(minimal_serialization_settings): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails without the code change.
@ggydush-fn: FYI. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1066 +/- ##
==========================================
+ Coverage 86.52% 86.53% +0.01%
==========================================
Files 268 268
Lines 24877 24896 +19
Branches 2802 2804 +2
==========================================
+ Hits 21525 21544 +19
Misses 2874 2874
Partials 478 478 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, great catch!
Signed-off-by: Jeev B <[email protected]>
TL;DR
Fixes serialization of tasks with environment variables set.
Type
Are all requirements met?
Complete description
Fixes
PythonAutoContainer.get_container
to handle the case whereSerializationSettings.env
isNone
(See:flytekit/flytekit/configuration/__init__.py
Line 638 in 87d1390