Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Adding support for environment variables set on execution #344

Merged
merged 4 commits into from
May 3, 2023

Conversation

hamersaw
Copy link
Contributor

@hamersaw hamersaw commented Apr 12, 2023

TL;DR

Adds support for passing environment variables through the TaskExecutionMetadata (which maybe set on ExecutionContext within flytepropeller) to support setting environment variables at workflow runtime.

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

^^^

Tracking Issue

flyteorg/flyte#2447

Follow-up issue

NA

Signed-off-by: Daniel Rammer <daniel@union.ai>
@codecov
Copy link

codecov bot commented Apr 12, 2023

Codecov Report

Merging #344 (212e39c) into master (63e1e45) will increase coverage by 1.21%.
The diff coverage is 100.00%.

❗ Current head 212e39c differs from pull request most recent head 6690782. Consider uploading reports for the commit 6690782 to get more accurate results

@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
+ Coverage   62.77%   63.98%   +1.21%     
==========================================
  Files         148      146       -2     
  Lines       12434     9921    -2513     
==========================================
- Hits         7805     6348    -1457     
+ Misses       4034     2989    -1045     
+ Partials      595      584      -11     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
go/tasks/plugins/k8s/ray/config_flags.go 38.70% <100.00%> (+8.70%) ⬆️

... and 131 files with indirect coverage changes

Signed-off-by: Daniel Rammer <daniel@union.ai>
Signed-off-by: Daniel Rammer <daniel@union.ai>
Signed-off-by: Daniel Rammer <daniel@union.ai>
@hamersaw hamersaw changed the title Adding environment variables to support ArrayNode Adding support for environment variables set on execution May 3, 2023
@hamersaw hamersaw marked this pull request as ready for review May 3, 2023 18:39
@hamersaw hamersaw merged commit 1e0faab into master May 3, 2023
@hamersaw hamersaw deleted the feature/array-node branch May 3, 2023 19:54
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
* added environment variables to TaskExecutionMetadata

Signed-off-by: Daniel Rammer <daniel@union.ai>

* added support for environment variables

Signed-off-by: Daniel Rammer <daniel@union.ai>

* implemented unit tests and fixed linter

Signed-off-by: Daniel Rammer <daniel@union.ai>

---------

Signed-off-by: Daniel Rammer <daniel@union.ai>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants