]
Galder Zamarreño reassigned HRJS-30:
------------------------------------
Assignee: Galder Zamarreño
Move testsuite server orchestration to a domain
-----------------------------------------------
Key: HRJS-30
URL:
https://issues.jboss.org/browse/HRJS-30
Project: Infinispan Javascript client
Issue Type: Enhancement
Affects Versions: 0.3.0
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 0.4.0
As more tests have been added to the Infinispan JS testsuite, the existing simple server
orchestration script/environment are turning out to be a bit painful to deal with.
On one hand, Haskell's {{stack}} can be sometimes difficult to install in some envs,
e.g. Ubuntu. I've also seen issues with Turtle library used in Haskell and copying
contents inside symbolic links in Red Hat Linux.
On top of that, as security and cross-site tests were added, more configurations were
added and more servers need to be added, making it track the configs a bit more confusing.
Finally, the methods used to start/stop servers in self-contained tests, e.g. xsite and
cluster failover, a little bit clunky.
So, with this in mind, we thought of using more suitable orchestration techniques for
Infinispan servers. We considered docker compose and kubernetes, but since the servers
just simply need to run in a single machine and there's not a huge need to have clean
environments, we decided to use a single Infinispan server domain to orchestrate all
servers.
The advantages of domain is that is easy to start all servers with the right
configuration very quickly, and start/stop servers from tests is very easy and quick
compared with current approach. On top of that, having domain based orchestration will
make it easy to port over the servers, their configs and script over to testsuites of
other langs.