-
Notifications
You must be signed in to change notification settings - Fork 303
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 --env Option for Register and Serialize #1880
Pyflyte --env Option for Register and Serialize #1880
Conversation
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
Signed-off-by: Minura Punchihewa <[email protected]>
Signed-off-by: Minura Punchihewa <[email protected]>
Signed-off-by: Minura Punchihewa <[email protected]>
6d01283
to
3f34ffd
Compare
Hey @kumare3, @wild-endeavor, |
Signed-off-by: Minura Punchihewa <[email protected]>
When we used our fork in production, we didn't need to pass in ENVs into launchplan. It's only for
Also, feel free to use our code snippets in your PR, we only ask for some due consideration in crediting. |
Hey @PudgyPigeon, |
Signed-off-by: Minura Punchihewa <[email protected]>
This reverts commit df7d6cd. Signed-off-by: Minura Punchihewa <[email protected]>
df7d6cd
to
6b08f7f
Compare
I have removed the option from |
@MinuraPunchihewa - thank you for working on this. The purpose of this issue is to make the behavior of For the For Let's also add this option to Not sure about the input syntax... i know the original issue uses json - but pyflyte run currently uses something else. I don't have much of a preference but i think they should match. And we shouldn't change the existing format (cuz that can break people) but we can add support for a new format, but that's outside the scope of this ticket. i think probably best to just make it match for now. |
Signed-off-by: Minura Punchihewa <[email protected]>
Signed-off-by: Minura Punchihewa <[email protected]>
Signed-off-by: Minura Punchihewa <[email protected]>
Hey @wild-endeavor, I will then work on using this env variables to configure the image. |
…zationSettings Signed-off-by: Minura Punchihewa <[email protected]>
Signed-off-by: Minura Punchihewa <[email protected]>
…nSettings Signed-off-by: Minura Punchihewa <[email protected]>
Signed-off-by: Minura Punchihewa <[email protected]>
6a1dd50
to
8d7c269
Compare
@wild-endeavor With the amazing explanation that you have given, I believe I was able to implement this successfully. Please let me know if there is anything else that I need to do; run tests, documentation etc. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1880 +/- ##
==========================================
- Coverage 55.04% 54.70% -0.35%
==========================================
Files 296 306 +10
Lines 22242 22788 +546
Branches 3357 2255 -1102
==========================================
+ Hits 12244 12466 +222
- Misses 9835 10166 +331
+ Partials 163 156 -7
☔ View full report in Codecov by Sentry. |
@MinuraPunchihewa thanks for the changes! Could you do me a favor though? Since we don't have time to manually test everything - could you please run a test against sandbox if you haven't already. take a screenshot of the command line, and then take a screenshot of the Task pane in the console? (If you click on a task, in a running or completed workflow on the UI, you should see a bunch of json in the task pane). Take a screenshot of the definition there. it should have the env vars from the command line. Also could you just add one unit test please? Thanks so much. |
oh also, can you run |
Just wanted to comment that I am anxiously awaiting this feature! Thanks for putting this together. |
Hey @wild-endeavor, @brian-odonovan, |
No worries! We have a totally sufficient workaround by setting the FLYTE_INTERNAL_DOMAIN as an env variable in our github actions workflows and then ingesting that during registration. |
Hey @wild-endeavor, I am not entirely sure how to check if this worked though. I have to check this in the console, is that right? |
Thanks! lint is failing unf... could you run
should be pretty easy. |
Signed-off-by: Minura Punchihewa <[email protected]>
ca46518
to
a86adc7
Compare
@wild-endeavor I think I was able to fix the |
lint still failing
if you want, just give me write access to your fork and i can push a commit to this branch. running |
Signed-off-by: Minura Punchihewa <[email protected]>
a848059
to
52558bd
Compare
@wild-endeavor I think I got the |
Congrats on merging your first pull request! 🎉 |
Use with `pyflyte register --env key=val ...` Signed-off-by: Minura Punchihewa <[email protected]>
Type
Are all requirements met?
Complete description
This PR adds the
--envs
option for theregister
andserialize
commands to set environment variables in the images.Tracking Issue
Fixes flyteorg/flyte#4092