-
Notifications
You must be signed in to change notification settings - Fork 59
Conversation
6d78282
to
d43df61
Compare
Hello @hamersaw, |
@Ln11211 Thanks so much for the PR! Is there anyway you can test this change? Can you elaborate on what is blocking? |
I noticed there is a test file |
Hey there, |
hello @hamersaw , is there anything more that needs to be done? btw how do I begin testing the change? |
Hey @Ln11211, thanks so much for working on this. To address a few of your questions.
The config_flags_test.go file is an auto-generated file based on the config_flags.go file. You should not need to do anything here for unit testing this change as it is just a default configuration update.
So right now the best way to test backend changes locally is to: If you run into issues we can take this offline on slack - would love to help you setup a local dev environment! |
pkg/controller/config/config.go
Outdated
DefaultDeadlines: DefaultDeadlines{ | ||
DefaultNodeExecutionDeadline: config.Duration{Duration: time.Hour * 48}, | ||
DefaultNodeActiveDeadline: config.Duration{Duration: time.Hour * 48}, | ||
DefaultWorkflowActiveDeadline: config.Duration{Duration: time.Hour * 72}, | ||
DefaultNodeExecutionDeadline: config.Duration{Duration: time.Hour * 0}, | ||
DefaultNodeActiveDeadline: config.Duration{Duration: time.Hour * 0}, | ||
DefaultWorkflowActiveDeadline: config.Duration{Duration: time.Hour * 0}, | ||
}, |
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.
I just did some minor testing locally - if you remove the DefaultDeadlines
default configuration entirely then these values will be automatically set to '0'. I think that makes more sense than explicitly setting these values.
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.
(2) The flyte repo can compile a single binary with all of the Flyte components. This is the easiest way to test changes. You can use
go replace github.com/flyteorg/flytepropeller => <path to local flytepropeller> to compile a single binary with your local changes to the flytepropeller repository. This can then be run with something like:
./flyte start --config ./flyte_local.yamlThe Flyte UI will be available on
localhost:30080/console` and can be used to execute workflows using the local k3d cluster.
I'll try this today, this seems easier
Set the default values to 0 Signed-off-by: LN <[email protected]> Signed-off-by: Ln11211 <[email protected]>
* setting MetricsBindAddress to 0 to disable controller-runtime manager metrics server Signed-off-by: Daniel Rammer <[email protected]> * and now in the webhook Signed-off-by: Daniel Rammer <[email protected]> Signed-off-by: Daniel Rammer <[email protected]> Signed-off-by: Ln11211 <[email protected]>
Before: A hardcoded string was used for setting the secret namespace After: The value for the secret namespace for settings is grabbed dynamically. Signed-off-by: Francisco J. Solis <[email protected]> Signed-off-by: Francisco J. Solis <[email protected]> Co-authored-by: Dan Rammer <[email protected]> Signed-off-by: Ln11211 <[email protected]>
Removed DefaultDeadlines Signed-off-by: Ln11211 <[email protected]>
f8a5df8
to
d757cd7
Compare
@Ln11211 thanks so much for your patience on this! |
* Update config.go Set the default values to 0 Signed-off-by: LN <[email protected]> Signed-off-by: Ln11211 <[email protected]> * disable k8s controller-runtime manager metrics server (flyteorg#492) * setting MetricsBindAddress to 0 to disable controller-runtime manager metrics server Signed-off-by: Daniel Rammer <[email protected]> * and now in the webhook Signed-off-by: Daniel Rammer <[email protected]> Signed-off-by: Daniel Rammer <[email protected]> Signed-off-by: Ln11211 <[email protected]> * fix: Add servicename in certs (flyteorg#491) Before: A hardcoded string was used for setting the secret namespace After: The value for the secret namespace for settings is grabbed dynamically. Signed-off-by: Francisco J. Solis <[email protected]> Signed-off-by: Francisco J. Solis <[email protected]> Co-authored-by: Dan Rammer <[email protected]> Signed-off-by: Ln11211 <[email protected]> * Update config.go Removed DefaultDeadlines Signed-off-by: Ln11211 <[email protected]> Signed-off-by: LN <[email protected]> Signed-off-by: Ln11211 <[email protected]> Signed-off-by: Daniel Rammer <[email protected]> Signed-off-by: Francisco J. Solis <[email protected]> Co-authored-by: Dan Rammer <[email protected]> Co-authored-by: Francisco J. Solis <[email protected]>
TL;DR
Set the default values of
node-execution-deadline
,node-active-deadline
, andworkflow-active-deadline
in flytepropeller to 0 as mentioned in issue #2950Type
Are all requirements met?
Complete description
Changed the previous values of 48h and 72h and made them 0h.
Tracking Issue
fixes flyteorg/flyte#2950
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/