zombienet icon indicating copy to clipboard operation
zombienet copied to clipboard

DSL: support for running js scripts inside pods

Open sandreim opened this issue 3 years ago • 4 comments

This is a helpful feature that opens up many options for data collection and testing done much closer to the running node. We could for example run a node CPU profiler as part of the test.

@pepoviola I think this can work across all providers using the same DSL and no other config changes. Is this correct ?

There are some dependencies for this to play nicely. We need to bake in the nodejs installation during the docker debug image build.

sandreim avatar Jun 24 '22 11:06 sandreim

Hi @sandreim, yes I think this could works for all the providers. Did you want to use nodejs to use polkadotjs or are any other tool you have in mind? As a first draft we can just allow to run any command that the node support (e.g bash scripts).

Thanks!

pepoviola avatar Jul 07 '22 13:07 pepoviola

Hi @sandreim, yes I think this could works for all the providers. Did you want to use nodejs to use polkadotjs or are any other tool you have in mind? As a first draft we can just allow to run any command that the node support (e.g bash scripts).

Thanks!

That draft would be good, but soon we would need to be able to pull in other container images of tools that we could use as part of the test.

sandreim avatar Jul 11 '22 12:07 sandreim

Hi @sandreim, draft is already implemented for k8s provider. Thx!

pepoviola avatar Jul 22 '22 09:07 pepoviola

Hi @sandreim, I think from zombienet side we need to allow users to run binaries/scripts in the pods but without have a list of available options. We provide a general way to run arbitrary commands, the deps for run those is a task that need to be managed by the images creators.

pepoviola avatar Oct 05 '22 20:10 pepoviola

Hi @sandreim, closing here. We already have support for run js scripts extenally and bash/binaries inside the pods. Please re-open/ping me if something is needed.

Thanks!!

pepoviola avatar Apr 22 '23 14:04 pepoviola