-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Spam log appearing in step containers #2028
Comments
/kind cleanup |
This comes from https://github.com/knative/pkg/blob/master/logging/config.go#L76 because https://github.com/knative/pkg/blob/master/changeset/commit.go#L37 fails to find the commit SHA which it expects to find symlinked into the kodata directory. I’m not sure why it’s not being symlinked there, but either way pkg should probably just not spam logs in that case anyway. |
This is addressed by #2028. |
Knative Serving has symlinks set up correctly: https://github.com/knative/serving/tree/master/cmd/controller/kodata Ours don't: https://github.com/tektoncd/pipeline/tree/master/cmd/controller/kodata We should add symlinks at |
The entrypoint binary jumps in and spams that for every step, if we get the symlinks in place it should just stop. Using the Knative logger might be useful for that binary if we want to inject more structured logging info. |
Fixed in #2000 |
Expected Behavior
Runtime logs should be clear of tekton related messages, at a glance seems like it would be a controller or init container log message.
Actual Behavior
A line similar to the one below is appearing at the top of the log for every container created in a taskRun
{"level":"info","ts":1581335203.186758,"logger":"fallback-logger","caller":"logging/config.go:69","msg":"Fetch GitHub commit ID from kodata failed: \"KO_DATA_PATH\" does not exist or is empty"}
Steps to Reproduce the Problem
Additional Info
Originally raised in tekton slack by bitsofinfo and alex.sears but I don't see an issue created.
Happy to take this on if its not already being tracked/tackled elsewhere
The text was updated successfully, but these errors were encountered: