-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Set KO_DATA_PATH when running tests #2458
Comments
cc @yanweiguo |
Setting
|
The test branch is a non-committed branch. The content of .git/HEAD is "ref: refs/heads/" instead of a commit ID. If the test is run in a committed branch, there should not be such warning. |
Is this error expected even when the change is in a PR (i.e., not yet merged to the master branch)? Like https://gubernator.knative.dev/build/knative-prow/pr-logs/pull/knative_serving/2526/pull-knative-serving-integration-tests/1064981887061069826/ |
Yes |
I'm seeing this in logs when my build fails too. |
This log is a warning and it won't break build. |
Still doesn't work... Or maybe I'm doing something wrong. #2526 is merged, it added My test PR (#2672) shows the same error:
As you can see in https://prow.knative.dev/log?job=pull-knative-serving-integration-tests&id=1071170919482789888 (search for the message above) |
|
Thanks for the clarification, Yanwei. This is WAI then and knative/test-infra#304 sets the generic approach. |
I see the following in our e2e test logs. I believe this is because our default logging package is used by our test code as well and the
knative/pkg/changeset
package is trying and failing to find$KO_DATA_PATH/HEAD
:I believe we could get commit information in our e2e log output if we set
KO_DATA_PATH=$REPO_ROOT/.git
before invoking the tests.cc @adrcunha
The text was updated successfully, but these errors were encountered: