Giter Site home page Giter Site logo

Comments (7)

jbtk avatar jbtk commented on July 17, 2024

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.

jbtk avatar jbtk commented on July 17, 2024

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.

jbtk avatar jbtk commented on July 17, 2024

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.

jbtk avatar jbtk commented on July 17, 2024

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.

jbtk avatar jbtk commented on July 17, 2024

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.

jbtk avatar jbtk commented on July 17, 2024

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.

jbtk avatar jbtk commented on July 17, 2024

Closing this issue for now, will open another one when/if I run into issues.

from kubetest2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.