hs-test: run redis in app containers 86/43086/2
authorAdrian Villin <[email protected]>
Thu, 5 Jun 2025 12:10:10 +0000 (14:10 +0200)
committerFlorin Coras <[email protected]>
Thu, 5 Jun 2025 21:18:09 +0000 (21:18 +0000)
- set redis output to quiet mode
- 'vol' directory is no longer copied to CI archives

Type: fix

Change-Id: I307e60e0789af740f245e2c6729cd844fab47e21
Signed-off-by: Adrian Villin <[email protected]>
extras/hs-test/ldp_test.go
extras/hs-test/script/compress.sh

index 951d58c..43b44a7 100644 (file)
@@ -153,11 +153,11 @@ func RedisBenchmarkTest(s *LdpSuite) {
        go func() {
                defer GinkgoRecover()
                // Avoid redis warning during startup
-               s.Containers.ServerVpp.Exec(false, "sysctl vm.overcommit_memory=1")
+               s.Containers.ServerApp.Exec(false, "sysctl vm.overcommit_memory=1")
                // Note: --save "" disables snapshotting which during upgrade to ubuntu 24.04 was
                // observed to corrupt vcl memory / heap. Needs more debugging.
-               cmd := "redis-server --daemonize yes --protected-mode no --save \"\" --bind " + serverVethAddress + " --loglevel notice --logfile " + s.RedisServerLogFileName(s.Containers.ServerVpp)
-               s.StartServerApp(s.Containers.ServerVpp, "redis-server", cmd, runningSrv, doneSrv)
+               cmd := "redis-server --daemonize yes --protected-mode no --save \"\" --bind " + serverVethAddress + " --loglevel notice --logfile " + s.RedisServerLogFileName(s.Containers.ServerApp)
+               s.StartServerApp(s.Containers.ServerApp, "redis-server", cmd, runningSrv, doneSrv)
        }()
 
        err := <-runningSrv
@@ -167,11 +167,11 @@ func RedisBenchmarkTest(s *LdpSuite) {
                defer GinkgoRecover()
                var cmd string
                if *NConfiguredCpus == 1 {
-                       cmd = "redis-benchmark --threads 1 -h " + serverVethAddress
+                       cmd = "redis-benchmark -q --threads 1 -h " + serverVethAddress
                } else {
-                       cmd = "redis-benchmark --threads " + fmt.Sprint(*NConfiguredCpus) + "-h " + serverVethAddress
+                       cmd = "redis-benchmark -q --threads " + fmt.Sprint(*NConfiguredCpus) + "-h " + serverVethAddress
                }
-               s.StartClientApp(s.Containers.ClientVpp, cmd, clnCh, clnRes)
+               s.StartClientApp(s.Containers.ClientApp, cmd, clnCh, clnRes)
 
        }()
 
index ebc60d2..cb3f641 100755 (executable)
@@ -16,7 +16,7 @@ then
             logDir=/tmp/hs-test/$dirName
             if [ -d "$logDir" ]; then
                 mkdir -p ${WORKSPACE}/archives/summary
-                rsync -a --exclude 'volumes' $logDir ${WORKSPACE}/archives/summary/
+                rsync -a --exclude 'vol' $logDir ${WORKSPACE}/archives/summary/
             fi
         done
         echo "Done."