kmesh-net / kmesh

High Performance ServiceMesh Data Plane Based on Programmable Kernel
https://kmesh.net
Apache License 2.0
360 stars 46 forks source link

Enhance development testing efficiency #403

Open Okabe-Rintarou-0 opened 4 weeks ago

Okabe-Rintarou-0 commented 4 weeks ago

What would you like to be added: Enhance development testing efficiency. Why is this needed:

At present, I am doing tests by the following steps:

  1. make docker to build kmesh docker image
  2. dispatch the newly-built docker image to each worker node in kind cluster using kind load docker-image image_name --name cluster_name
  3. kubectl edit ds kmesh -n kmesh-system to edit the image and trigger daemonset restart
  4. enter the daemonset's corresponding pod and do some testings.

Are these steps correct? Or can we optimize(automate) the testing process?

My environment: OS: ubuntu 20.04 K8s Cluster: running on kind

hzxuzhonghu commented 4 weeks ago

If you want to test some golang implement, you could add some unite tests. For bpf prog, currently this is the only way i think.