-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: remove non-transient logs on missing artifact-repositories
configmap
#13516
fix: remove non-transient logs on missing artifact-repositories
configmap
#13516
Conversation
358d18d
to
d8fcfb3
Compare
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.
The two new function names LogIsTransientError
and LogOnlyIsTransient
error imply things about their purpose which aren't really their primary use (logging, not a test).
They also don't immediately make sense - two functions called LogDogName and LogOnlyDogName I wouldn't know which to call to log the dogs name. The function names you've created make sense if you understand the history. The Is
part of their name helps, but...
I'd suggest either calling them IsTransientErr
and IsTransientErrVerbose
, or my slight preference would be IsTransientErrQuiet
and IsTransientErr
.
Naming things is hard.
artifact-repositories
configmap
Thanks for the review, @Joibel, much appreciated. I solidly agree, naming things is hard.
Considering that the specific scenario wants to ignore non-transient errors only, do I understand you correctly that EDIT: I've assumed that you indeed meant |
d8fcfb3
to
75edb7a
Compare
75edb7a
to
f9e73b8
Compare
It's Thanks, for doing this. |
Fixes argoproj#9085 by eliminating log-messages for override ConfigMaps which do not have to exist. Signed-off-by: Thor K. Høgås <[email protected]>
f9e73b8
to
2a00d82
Compare
@Joibel I don't think the minimal E2E test that's failing here is relevant to the code change. Is that something you could confirm, and if so, merge the PR? |
I'll re-run them and see if they pass, they look like a flakey test but I'd like to be sure. |
…figmap (argoproj#13516) Signed-off-by: Thor K. Høgås <[email protected]> Co-authored-by: jswxstw <[email protected]>
…figmap (#13516) Signed-off-by: Thor K. Høgås <[email protected]> Co-authored-by: jswxstw <[email protected]>
Fixes #9085.
Motivation
Remove high levels of error messages that aren't errors. Reduce additional observability costs associated with running Argo Workflows, although negligble.
Clarify the difference between side-effect and non-side-effect functions in utility module.
Modifications
Renames
IsTransientErr
toLogIsTransientErr
, which is easily undoable if it's more noise than signal.Introduces a
LogOnlyTransientErr
, which only logs errors if they're transient. Suitable for a use-case such as trying to fetch an object that doesn't exist when it's optional.Verification
No verification performed due to the (deceptive) simplicity of the change.