GithubHelp home page GithubHelp logo

Comments (7)

alvaroaleman avatar alvaroaleman commented on August 11, 2024 1

To keep tests still efficient and also not repeat ourselves too much I suggest putting this in the verify tool by:

  • Adding a config file that allows to specify a matrix just like the one above
  • Add a --create-only flag that only creates the machine objects so they will be created in parallel
  • Add a --wait-for=<provider>-<distro>-<container-runtime> flag that blocks until the given machine was successfully created and then deletes it to see at a glance in CircleCI what failed if something failed

from machine-controller.

mrIncompetent avatar mrIncompetent commented on August 11, 2024 1

Good idea!

from machine-controller.

mrIncompetent avatar mrIncompetent commented on August 11, 2024

Why not implementing decent concurrency into the command?
Might be cleaner than just juggling with different command line calls

from machine-controller.

alvaroaleman avatar alvaroaleman commented on August 11, 2024

Because then you can't have a dedicated step per scenario in CircleCI which helps a lot if tests failed and you want to find out which one

from machine-controller.

mrIncompetent avatar mrIncompetent commented on August 11, 2024

We could also do the setup (terraform & cluster creation) in one step, and then run all tests in parallel.
Then we don't have to modify the command at all.

from machine-controller.

p0lyn0mial avatar p0lyn0mial commented on August 11, 2024

@alvaroaleman @mrIncompetent Could we slightly change approach to writing test cases ?

I'd like to start writing test cases as standard golang tests.
But at the same I'd like to utilise what we have so far, that is: cluster creation (kubeadm) and the verify tool. The whole process would do the following steps:

  1. create cluster (provision_master.sh)
  2. run machine-controller (provision_master.sh)
  3. run e2e test (using standard go test command)

Individual test cases would hold only data/parameters needed to feed the verify tool. We could also utilise go test's build-in concurrency to parallelise tests and various flags like --short to control how many test we would like to run on each build.

We would also need to change the verify tool to check ownerRef instead of counting the number of nodes.

from machine-controller.

alvaroaleman avatar alvaroaleman commented on August 11, 2024

Yes, sounds like a very good idea.

from machine-controller.

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.