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

Envvars local execution #2132

Merged
merged 5 commits into from
Jan 30, 2024
Merged

Envvars local execution #2132

merged 5 commits into from
Jan 30, 2024

Conversation

eapolinario
Copy link
Collaborator

Tracking issue

Closes flyteorg/flyte#4503

Why are the changes needed?

We introduced the ability to pass environment variables from the command line when using pyflyte run in #1617, however that only works for remote executions. This PR enables this for local executions as well.

What changes were proposed in this pull request?

Set environment variables prior to executing Flyte entities locally.

How was this patch tested?

Unit tests and local.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f058663) 83.01% compared to head (14dcb97) 85.15%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2132      +/-   ##
==========================================
+ Coverage   83.01%   85.15%   +2.14%     
==========================================
  Files         176      279     +103     
  Lines       17116    21700    +4584     
  Branches     3530     3530              
==========================================
+ Hits        14208    18479    +4271     
- Misses       2298     2611     +313     
  Partials      610      610              

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

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
@eapolinario eapolinario merged commit 8861d0a into master Jan 30, 2024
84 checks passed
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.

[BUG] Can't retrieve env vars from pyflyte run
3 participants