Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

test/e2e-tests.sh fails when run locally #286

Closed
imjasonh opened this issue Jul 25, 2018 · 5 comments · Fixed by #356
Closed

test/e2e-tests.sh fails when run locally #286

imjasonh opened this issue Jul 25, 2018 · 5 comments · Fixed by #356
Assignees
Labels
area/test-and-release Test infrastructure, tests or release kind/bug Something isn't working

Comments

@imjasonh
Copy link
Member

Expected Behavior

I can run ./test/e2e-tests.sh to run end-to-end tests before submitting a PR.

Actual Behavior

Script creates a cluster, network, firewall rules, etc., then fails due to an unknown flag:

2018/07/25 12:09:06 process.go:150: Running: /path/to/go/src/github.com/knative/build/test/e2e-tests.sh --run-tests
Error: unknown flag: --username

This seems to come from library.sh here, at least that's the only instance of --username I could find anywhere in the test-infra repo.

@google-prow-robot google-prow-robot added area/test-and-release Test infrastructure, tests or release kind/bug Something isn't working labels Jul 25, 2018
@adrcunha
Copy link
Contributor

I can't reproduce, the environment spins up and the tests run as expected. Could it be that we have different kubectl versions installed?

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.7", GitCommit:"dd5e1a2978fd0b97d9b78e1564398aeea7e7fe92", GitTreeState:"clean", BuildDate:"2018-04-19T00:05:56Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

@adrcunha
Copy link
Contributor

Just saw the line in the log, maybe it's kubetest? Mine says:

2018/07/27 12:37:10 process.go:153: Running: /usr/local/google/home/adrcunha/go/src/github.com/knative/build/test/e2e-tests.sh --run-tests
clusterrolebinding "cluster-admin-binding" created

Can you please try go get -u k8s.io/test-infra/kubetest?

@adrcunha
Copy link
Contributor

e2e tests aren't running locally anymore (getting from HEAD):

Error from server (Forbidden): clusterrolebindings.rbac.authorization.k8s.io is forbidden: User "system:anonymous" cannot create clusterrolebindings.rbac.authorization.k8s.io at the cluster scope: Unknown user "system:anonymous"

@adrcunha
Copy link
Contributor

knative/test-infra#87 should have fixed that.

@adrcunha
Copy link
Contributor

For the record, 87 is part of the fix, thus 115 was necessary.

knative-prow-robot pushed a commit that referenced this issue Sep 14, 2018
* Ignore not found entities when cleaning up namespace for the e2e tests
* Group test logging messages, making them consistent
* Update knative/test-infra to the latest version mostly to to
  * fix the test cluster authentication when running e2e tests locally
  * fix the parsing of e2e test results in same cases

Fixes #286
vdemeester pushed a commit to vdemeester/knative-build that referenced this issue Apr 3, 2019
* Ignore not found entities when cleaning up namespace for the e2e tests
* Group test logging messages, making them consistent
* Update knative/test-infra to the latest version mostly to to
  * fix the test cluster authentication when running e2e tests locally
  * fix the parsing of e2e test results in same cases

Fixes knative#286
vdemeester pushed a commit to vdemeester/knative-build that referenced this issue Apr 3, 2019
* Ignore not found entities when cleaning up namespace for the e2e tests
* Group test logging messages, making them consistent
* Update knative/test-infra to the latest version mostly to to
  * fix the test cluster authentication when running e2e tests locally
  * fix the parsing of e2e test results in same cases

Fixes knative#286
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/test-and-release Test infrastructure, tests or release kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants