[WIP] Initial e2e test migration from in-tree to gcp cloud provider
- Initial migration of in-tree
gcee2e tests to out-of-treecloud-provider-gcprepository.- Currently only three tests: 1) A simple firewall test, 2) a load-balancer (GCE-specific) test, and 3) a simple node test.
- Tests 1 and 3 currently pass, but inclusion of the GCE-specific test is causing issues.
- Migrate the
gceprovider code for the e2e tests. - Includes script
tools/run-e2e-test.shto run the e2e tests from the command line.- Builds the
e2e.testbinary by runninggo test -cwithin thetest/e2edirectory. - Runs the e2e test using the
gceprovider and theginkgotester.
- Builds the
Current Status
- The e2e test binary builds using the
gceprovider code locally. - The command-line e2e test correctly starts the cluster
- The command-line e2e test starts the
ginkgotester against the cluster - Basic e2e tests not calling the
gceprovider functions run successfully - Currently the e2e test runs the
ginkgotester with the following output:
⚙️ /home/sean/go/bin/kubetest2-tester-ginkgo --use-built-binaries true --parallel=30 --test-args=--provider=gce --gce-project=seans-devel --gce-zone=us-central1-c --minStartupPods=8 --focus-regex=\[cloud-provider-gcp-e2e\]
I0505 17:39:38.713100 361989 ginkgo.go:131] Using kubeconfig at /home/sean/go/src/k8s.io/cloud-provider-gcp/_rundir/sean-test/kubetest2-kubeconfig
I0505 17:39:38.713164 361989 ginkgo.go:100] Running ginkgo test as /home/sean/go/src/k8s.io/cloud-provider-gcp/_rundir/sean-test/ginkgo [--nodes=30 /home/sean/go/src/k8s.io/cloud-provider-gcp/_rundir/sean-test/e2e.test -- --kubeconfig=/home/sean/go/src/k8s.io/cloud-provider-gcp/_rundir/sean-test/kubetest2-kubeconfig --kubectl-path=/home/sean/go/src/k8s.io/cloud-provider-gcp/_rundir/sean-test/kubectl --ginkgo.skip= --ginkgo.focus=\[cloud-provider-gcp-e2e\] --report-dir=/home/sean/go/src/k8s.io/cloud-provider-gcp/_artifacts --ginkgo.timeout=24h0m0s --provider=gce --gce-project=seans-devel --gce-zone=us-central1-c --minStartupPods=8]
- Current e2e tests calling into the
gceprovider have the following auth error:
I0505 17:39:38.768046 362206 gce.go:48] Fetching cloud provider for "gce"
E0505 17:39:38.772713 362206 test_context.go:581] Failed to setup provider config for "gce": Error building GCE/GKE provider: google: could not find default credentials. See https://cloud.google.com/docs/authentication/external/set-up-adc for more information
This issue is currently awaiting triage.
If the repository mantainers determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.
The triage/accepted label can be added by org members by writing /triage accepted in a comment.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
/assign @BenTheElder /assign @aojea
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: seans3 Once this PR has been reviewed and has the lgtm label, please ask for approval from aojea. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
First pass: this is generally looking good, we'll want to stand up a job to actually run this in CI (we can make that manually run at first) and sort out what to do re: Bazel.
First pass: this is generally looking good, we'll want to stand up a job to actually run this in CI (we can make that manually run at first) and sort out what to do re: Bazel.
yeah https://github.com/kubernetes/test-infra/pull/32603
/test pull-cloud-provider-gcp-e2e
@seans3: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| pull-cloud-provider-gcp-e2e | beb6614a3acce559f33fcaed01d41d8ecf3cfa2f | link | false | /test pull-cloud-provider-gcp-e2e |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
/home/prow/go/src/cloud-provider-gcp
cp: cannot stat '/root/go/bin/ginkgo': No such file or directory
+ EXIT_VALUE=1
+ set +o xtrace
Cleaning up after docker in docker.
/test pull-cloud-provider-gcp-e2e
/test pull-cloud-provider-gcp-e2e
/test pull-cloud-provider-gcp-e2e
/test pull-cloud-provider-gcp-e2e
/test pull-cloud-provider-gcp-e2e
/test pull-cloud-provider-gcp-e2e
it went through 👏
/test pull-cloud-provider-gcp-e2e
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/cloud-provider-gcp/683/pull-cloud-provider-gcp-e2e/1792967087560331264
sweet!
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: BenTheElder, seans3
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [BenTheElder]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/test pull-cloud-provider-gcp-e2e
/triage accepted
/hold cancel
/lgtm