Comments (7)
Testing some more:
- the clusterloader2 is not relevant
- the provider param is missing in the ginkgo runner and since it is not passed the test_context.go uses skeleton as a fallback
from kubetest2.
I have read the discussion in kubernetes/kubernetes#70194 and I am still not sure what is the up to date plan going forward, but it seems that the best option would be to make the tests that I am running provider agnostic and remove dependency on the provider. I will look into that, but I am still not sure whether it is expected for kubetest2 not to support passing provider or is it a missing functionality. Would be happy to learn that. I could contribute a fix here, but would like to make sure that it is indeed wanted.
from kubetest2.
It seems that even after hacking (hardcoding locally to check whether it would work) and passing the provider the test will not run as they require other context args that are not populated (as defined in https://github.com/kubernetes/kubernetes/blob/master/test/e2e/framework/test_context.go#L431). Would it make sense for deployer to prepare set of provider specific e2e test args that could be read from the rundir similarly to the kubeconfig?
from kubetest2.
I found a workaround to pass the provider manually in the test args. Example:
kubetest2 gce -v 2 --repo-root --gcp-project --legacy-mode --run-id= --test=ginkgo -- --focus-regex='' --ginkgo-args="-v" --test-args='--provider=gce --gce-zone= --gce-project= --node-instance-group='
Not perfect, but works*
*not fully as it fails to find logs on master and nodes to dump to the artifacts, but the tests are running
from kubetest2.
If I want the log dump to work I need to apply a change in the code (PR: #264) and pass additional env variable:
--env=KUBE_GCE_INSTANCE_PREFIX=
Without the PR passing the env variable would clear other variables and fail the test.
from kubetest2.
The in-tree provider has been removed and running tests in legacy mode is not working any more. I will need to figure out how to run the tests again.
from kubetest2.
Closing this issue for now, will open another one when/if I run into issues.
from kubetest2.
Related Issues (20)
- Kubetest2 doesn not down on ginkgo failures HOT 1
- Implement minikube deployer HOT 7
- Implement AKS deployer HOT 5
- Support GCE PD testing HOT 8
- kubetest2-ginko tester overwrites local e2e.test HOT 6
- Ginkgo v2 flag changes break testing older k8s versions HOT 3
- Kubetest2 should support ginkgov2 for 1.25+ and ginkgov1 for 1.24- HOT 1
- Remove dependence on boskos and test-infra HOT 6
- Unsafe concurrent use of bytes.Buffer HOT 2
- Unable to go install kubetest2 with go 1.17
- Document kubetest2 deployers
- Stop building `k/cloud-provider-gcp` if all you are doing is building k8s clusters HOT 4
- Is gsutil package required to run kubetest2? HOT 2
- Stuck at the beginning HOT 5
- Clarify purpose of end-to-end tests HOT 4
- --flake-attempts flag need not be removed from ginkgo tester HOT 3
- How to narrow down target test cases HOT 2
- Writing custom tests HOT 2
- Junit report format is not correct HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubetest2.