Skip to content
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

Applications built by Ko complains about GitHub commit id missing from kodata #48

Closed
afrittoli opened this issue Jun 27, 2019 · 4 comments

Comments

@afrittoli
Copy link

afrittoli commented Jun 27, 2019

Applications built by ko generate a lot of lines like this in CI logs (I'm looking at Tekton CI for instance https://storage.googleapis.com/tekton-prow/pr-logs/pull/tektoncd_pipeline/995/pull-tekton-pipeline-integration-tests/1144026938617106434/build-log.txt):

I0626 23:56:51.574] [gopath-test] [step-test-build] {"level":"warn","ts":1561593313.3031838,"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"}

As far as I understand, setting the commit ID in kodata is not mandatory, so this should not be logged at "warn" level, which generates a lot of noise when troubleshooting actual issues.

I would propose reducing the log level to info at least, or even better to debug so that it could be filtered out during normal operations.

@afrittoli afrittoli changed the title Ko complains about GitHub commit id missing from kodata Applications built by Ko complains about GitHub commit id missing from kodata Jun 27, 2019
@jonjohnsonjr
Copy link
Collaborator

That's coming from here, not ko.

@afrittoli
Copy link
Author

oh, thanks!

@JCzz
Copy link

JCzz commented Jan 7, 2020

@afrittoli How did you solve this?

@jonjohnsonjr
Copy link
Collaborator

@JCzz that error means you're using knative.dev/pkg/logging, which could fail in a couple ways:

  1. You're not symlinking to HEAD, e.g. see here: https://github.com/knative/serving/tree/4f7130bc97dfdf0040dd0975e27451a5097abfad/cmd/controller/kodata
  2. You're using an old version of ko that doesn't chase symilnks, see here: Add support for recursively resolving directory symlinks. #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants