-
Notifications
You must be signed in to change notification settings - Fork 683
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
Improve execution name readability #5637
Improve execution name readability #5637
Conversation
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
Signed-off-by: wayner0628 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5637 +/- ##
==========================================
- Coverage 36.17% 36.17% -0.01%
==========================================
Files 1302 1303 +1
Lines 109614 109611 -3
==========================================
- Hits 39653 39649 -4
- Misses 65816 65819 +3
+ Partials 4145 4143 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
flytectl/go.mod
Outdated
@@ -15,6 +15,7 @@ require ( | |||
github.com/docker/docker v26.1.5+incompatible | |||
github.com/docker/go-connections v0.4.0 | |||
github.com/enescakir/emoji v1.0.0 | |||
github.com/flyteorg/flyte/flyteadmin v0.0.0-00010101000000-000000000000 |
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.
we should not import flyteadmin here
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
executionName := "" | ||
config := runtime.NewApplicationConfigurationProvider() | ||
if config.GetTopLevelConfig().FeatureGates.EnableHumanHash { | ||
executionName, err = common.GetExecutionName(time.Now().UnixNano(), config.GetTopLevelConfig().FeatureGates.EnableHumanHash) | ||
if err != nil { | ||
logger.Errorf(ctx, "failed to generate execution name for schedule %+v due to %v", s, err) | ||
return err | ||
} | ||
} else { | ||
executionName = "f" + strings.ReplaceAll(executionIdentifier.String(), "-", "")[:19] | ||
} |
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.
Are friendly names important for scheduled executions?
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Signed-off-by: wayner0628 <[email protected]>
Hello @pingsutw @eapolinario, I've made the following changes based on your feedback:
Please review these changes and let me know if you have any suggestions or concerns. Thank you! |
Signed-off-by: wayner0628 <[email protected]>
I've thoroughly investigated the issue but couldn't find any connection between my changes and the CI unit test failure. Additionally, there are no error messages logged that could provide further insight. Could you please help retrigger the CI build? Thank you! |
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
…hash-execution-id
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
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 reverted the flytectl changes. It seems like we can't change that in the same PR. You could create a follow-up PR to update flytectl.
I noticed some issues still persist, so I'll continue checking them. |
Congrats on merging your first pull request! 🎉 |
FYI - we implemented something similar in our custom auth gateway, as we weren't sure if this would be something Flyte would use. A few differences with our implementation:
We would consider removing our implementation in favor of upstream if we can get a better uniqueness guarantee. Would you be willing to modify the friendly naming here to support that? We get names like |
@ddl-ebrown, we could make
Feel free to open a PR! |
This is pretty cool - cc @katrogan |
Signed-off-by: wayner0628 <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]> Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: wayner0628 <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]> Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: wayner0628 <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]> Signed-off-by: Bugra Gedik <[email protected]>
* Revert "fix: Use deterministic execution names in scheduler (#5724)" This reverts commit a058fd1. * Revert "Improve execution name readability (#5637)" This reverts commit 2ed2408. * nit Signed-off-by: Kevin Su <[email protected]> * make helm Signed-off-by: Kevin Su <[email protected]> --------- Signed-off-by: Kevin Su <[email protected]>
Tracking issue
Why are the changes needed?
What changes were proposed in this pull request?
EnableHumanHash
config in flyteadmin/pkg/runtime/interfaces/application_configuration.goHow was this patch tested?
unit testing and integration testing
Setup process
To enable human-readable execution names, add the following configuration:
Screenshots
Check all the applicable boxes
Related PRs
flyteorg/flytekit#2678
Docs link