lilypad icon indicating copy to clipboard operation
lilypad copied to clipboard

[core] Add integration tests to CI for lilypad

Open AquiGorka opened this issue 1 year ago • 7 comments

If anything at least a single test that can run a whole job to prevent regressions from being released.

AquiGorka avatar May 16 '24 12:05 AquiGorka

We could also add a couple of processes to the cron server (when it is implemented) that trigger jobs every N and alert us if the job was not successful.

AquiGorka avatar May 22 '24 14:05 AquiGorka

Tasks:

  • [ ] Add GH action to run unit and integration tests on pull request to main
  • [ ] Make sure integration tests use embedded configs

bgins avatar Jun 14 '24 15:06 bgins

I was reading up on kind and it really surprised me how easily it could be used to setup a cluster for testing purposes - this is their claim too:

kind is a tool for running local Kubernetes clusters using Docker container “nodes”. kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.

Also Minikube looks like could be another good choice

AquiGorka avatar Jun 24 '24 17:06 AquiGorka

@AquiGorka you also might want to have a look at docker swarms. https://docs.docker.com/engine/swarm/

richardbremner avatar Jun 25 '24 04:06 richardbremner

Use Swarm mode if you intend to use Swarm as a production runtime environment.

Not sure if that would be what we want for a CI step

AquiGorka avatar Jun 25 '24 14:06 AquiGorka

I've used minikube in the past, but looking into kind and doing some experiments yesterday - I think it's the way to go (and seems to have the community momentum as well).

Related, I'm starting to put together some helm charts to spin up various configurations: https://github.com/Lilypad-Tech/helm-charts

walkah avatar Jul 03 '24 14:07 walkah

Scoped this issue to focus only on integration tests. We'll address unit tests here: https://github.com/Lilypad-Tech/lilypad/issues/279.

bgins avatar Aug 05 '24 16:08 bgins