Skip to content

Conversation

@KlimTodrik
Copy link
Collaborator

No description provided.

@github-actions
Copy link

tests

❌ CLT tests in clt_tests/tests/
✅ OK: 8
❌ Failed: 6
⏳ Duration: 1052s
👉 Check Action Results for commit 3627199

Failed tests:

clt_tests/tests/config-flexible-with-default-conf.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run -d -e searchd_max_packet_size=64m -e "common_lemmatizer_base=/usr/share/manticore/" --name manticore manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 5 grep -qm1 'accepting connections' <(docker logs -f manticore); then echo 'accepting connections'; else echo 'Manticore failed to start properly in 10 seconds'; fi
––– output –––
OK
––– input –––
docker exec manticore cat /etc/manticoresearch/manticore.conf.debug | sort
––– output –––
- data_dir = /var/lib/manticore
+     data_dir = /var/lib/manticore
- lemmatizer_base = /usr/share/manticore/
+     lemmatizer_base = /usr/share/manticore/
- listen = /var/run/mysqld/mysqld.sock:mysql41
+     listen = /var/run/mysqld/mysqld.sock:mysql41
- listen = 172.18.0.2:9312
+     listen = 172.18.0.2:9312
- listen = 172.18.0.2:9315-9325:replication
+     listen = 172.18.0.2:9315-9325:replication
- listen = 9306:mysql41
+     listen = 9306:mysql41
- listen = 9308:http
+     listen = 9308:http
- max_packet_size = 64m
+     max_packet_size = 64m
- pid_file = /var/run/manticore/searchd.pid
+     pid_file = /run/manticore/searchd.pid
common {
searchd {
}
}
clt_tests/tests/plain-indexes-desired.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run -d -e "CREATE_PLAIN_TABLES=idx1;idx2" --name manticore -v $(pwd)/clt_tests/tests/base/manticore-indexer-desired.conf:/etc/manticoresearch/manticore.conf manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 5 grep -qm1 'accepting connections' <(docker logs -f manticore); then echo 'accepting connections'; else echo 'Manticore failed to start properly in 10 seconds'; fi
––– output –––
OK
––– input –––
docker exec manticore mysql -e "SHOW TABLES\G;"
––– output –––
*************************** 1. row ***************************
Table: idx1
- Type: local
+  Type: local
*************************** 2. row ***************************
Table: idx2
- Type: local
+  Type: local
––– input –––
docker exec manticore mysql -e "SELECT * FROM idx1\G;"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "SELECT * FROM idx2\G;"
––– output –––
OK
clt_tests/tests/test-one-liner.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run --name manticore --rm -d manticoresoftware/manticore:current && echo "Waiting for Manticore docker to start. Consider mapping the data_dir to make it start faster next time" && until docker logs manticore 2>&1 | grep -q "accepting connections"; do sleep 1; echo -n .; done && echo $?
––– output –––
OK
––– input –––
docker exec manticore mysql -e "source /sandbox.sql"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "SHOW TABLES\G"
––– output –––
*************************** 1. row ***************************
Table: films
- Type: rt
+  Type: rt
––– input –––
docker exec manticore mysql -e "SELECT * FROM films LIMIT 3\G"
––– output –––
*************************** 1. row ***************************
- id: 19
+           id: 19
- title: AMADEUS HOLY
+        title: AMADEUS HOLY
- description: A Emotional Display of a Pioneer And a Technical Writer who must Battle a Man in A Baloon
+  description: A Emotional Display of a Pioneer And a Technical Writer who must Battle a Man in A Baloon
- category_id: 1
+  category_id: 1
release_year: 2008
- rental_rate: 0.990000
+  rental_rate: 0.990000
*************************** 2. row ***************************
- id: 21
+           id: 21
- title: AMERICAN CIRCUS
+        title: AMERICAN CIRCUS
- description: A Insightful Drama of a Girl And a Astronaut who must Face a Database Administrator in A Shark Tank
+  description: A Insightful Drama of a Girl And a Astronaut who must Face a Database Administrator in A Shark Tank
- category_id: 1
+  category_id: 1
release_year: 2009
- rental_rate: 4.990000
+  rental_rate: 4.990000
*************************** 3. row ***************************
- id: 29
+           id: 29
- title: ANTITRUST TOMATOES
+        title: ANTITRUST TOMATOES
- description: A Fateful Yarn of a Womanizer And a Feminist who must Succumb a Database Administrator in Ancient India
+  description: A Fateful Yarn of a Womanizer And a Feminist who must Succumb a Database Administrator in Ancient India
- category_id: 1
+  category_id: 1
release_year: 2005
- rental_rate: 2.990000
+  rental_rate: 2.990000
clt_tests/tests/config-flexible-with-custom-conf.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
echo "" > /tmp/manticore.conf;echo $?
––– output –––
OK
––– input –––
docker run --name manticore -v "/tmp/manticore.conf:/etc/manticoresearch/manticore.conf" -d -e searchd_data_dir=/var/lib/manticore -e searchd_log=/var/log/manticore/searchd.log -e searchd_max_packet_size=128M -e searchd_pid_file=/var/run/manticore/searchd.pid -e searchd_query_log_format=sphinxql -e 'searchd_listen=9306:mysql41|/var/run/mysqld/mysqld.sock:mysql41|9312|0.0.0.0:9308:http|$ip:9315-9325:replication' manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 5 grep -qm1 'accepting connections' <(docker logs -f manticore); then echo 'accepting connections'; else echo 'Manticore failed to start properly in 10 seconds'; fi
––– output –––
OK
––– input –––
docker exec manticore cat /etc/manticoresearch/manticore.conf.debug | sort
––– output –––
- data_dir = /var/lib/manticore
+     data_dir = /var/lib/manticore
- listen = /var/run/mysqld/mysqld.sock:mysql41
+     listen = /var/run/mysqld/mysqld.sock:mysql41
- listen = 0.0.0.0:9308:http
+     listen = 0.0.0.0:9308:http
- listen = 172.18.0.2:9315-9325:replication
+     listen = 172.18.0.2:9315-9325:replication
- listen = 9306:mysql41
+     listen = 9306:mysql41
- listen = 9312
+     listen = 9312
- log = /var/log/manticore/searchd.log
+     log = /var/log/manticore/searchd.log
- max_packet_size = 128M
+     max_packet_size = 128M
- pid_file = /var/run/manticore/searchd.pid
+     pid_file = /var/run/manticore/searchd.pid
- query_log_format = sphinxql
+     query_log_format = sphinxql
searchd {
}
clt_tests/tests/test-postgres-docker.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker network create app-network --driver bridge > /dev/null; echo $?
––– output –––
OK
––– input –––
docker run -d --name postgres --network app-network -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=qazQASD! -e POSTGRES_DB=api_db -p 5432:5432 -v $(pwd)/clt_tests/tests/base/init.sql:/docker-entrypoint-initdb.d/init.sql postgres:latest > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
timeout 35 grep -m2 'database system is ready to accept connections' <(docker logs -f postgres 2>&1)
––– output –––
OK
––– input –––
docker run -d -e CREATE_PLAIN_TABLES=1 --name manticore --network app-network -v $(pwd)/clt_tests/tests/base/manticore-indexer-postgres.conf:/etc/manticoresearch/manticore.conf manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'accepting connections' <(docker logs -f manticore); then echo 'accepting connections'; else echo 'Manticore failed to start properly in 60 seconds'; fi
––– output –––
OK
––– input –––
docker exec manticore mysql -h0 -P9306 -e "SHOW TABLES\G;"
––– output –––
*************************** 1. row ***************************
Table: text_idx
- Type: local
+  Type: local
––– input –––
docker exec manticore mysql -h0 -P9306 -e "SELECT * FROM text_idx\G;"
––– output –––
*************************** 1. row ***************************
- id: 1
+   id: 1
name: Element 1
*************************** 2. row ***************************
- id: 2
+   id: 2
name: Element 2
clt_tests/tests/test-backup-restore.rec
––– input –––
export PATH=$PATH:/usr/sbin
––– output –––
OK
––– input –––
(dockerd > /var/log/dockerd.log 2>&1 &) > /dev/null
––– output –––
OK
––– input –––
if timeout 60 grep -qm1 'API listen on /var/run/docker.sock' <(tail -n 0 -f /var/log/dockerd.log); then echo 'Done'; else echo 'Timeout failed'; fi
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
docker build --build-arg="DEV=1" -t manticoresoftware/manticore:current /docker/ > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
docker run --rm --name manticore -v /tmp/idx:/var/lib/manticore -d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "columnar.*?secondary.*?knn" <(docker logs -f manticore 2>&1); then echo 'Done'; else echo 'Not found'; fi
––– output –––
OK
––– input –––
docker exec manticore manticore-executor -v
––– output –––
OK
––– input –––
docker exec manticore wget -q https://raw.githubusercontent.com/manticoresoftware/manticoresearch-backup/main/test/clt-tests/dumps/tables.sql
––– output –––
OK
––– input –––
docker exec manticore bash -c "mysql < ./tables.sql"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
OK
––– input –––
docker exec manticore manticore-backup --backup-dir=/tmp
––– output –––
Copyright (c) %{YEAR}-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
Manticore config file: /etc/manticoresearch/manticore.conf.sh
Tables to backup: all tables
Backup dir: /tmp
Manticore config
- endpoint =  http://127.0.0.1:9308
+   endpoint =  http://127.0.0.1:9308
Manticore config
- endpoint =  http://127.0.0.1:9312
+   endpoint =  http://127.0.0.1:9312
Manticore versions:
- manticore: %{SEMVER} %{COMMITDATE}#!/(\s*dev)*/!#
+   manticore: 13.13.6 1c6c6a751@25101613
- columnar: %{SEMVER} %{COMMITDATE}
+   columnar: 8.1.0 e1522a2@25100213
- secondary: %{SEMVER} %{COMMITDATE}
+   secondary: 8.1.0 e1522a2@25100213
- knn: %{SEMVER} %{COMMITDATE}
+   knn: 8.1.0 e1522a2@25100213
- buddy: %{SEMVER_EXT}
+   buddy: 3.35.3
%{DATETIME} [Info] Starting the backup...
%{DATETIME} [Info] Backing up config files...
%{DATETIME} [Info]   config files - OK
%{DATETIME} [Info] Backing up global state files...
%{DATETIME} [Info]   global state files – OK
%{DATETIME} [Info] Backing up tables...
%{DATETIME} [Info]   distributed_index (distributed)...
%{DATETIME} [Info]   SKIP
%{DATETIME} [Info]   rt_with_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
%{DATETIME} [Info]    OK
%{DATETIME} [Info]   rt_without_columnar (rt) [#!/[0-9]{1}\.[0-9]{3}/!#K]...
%{DATETIME} [Info]    OK
%{DATETIME} [Info]   test (rt) [%{NUMBER}B]...
%{DATETIME} [Info]    OK
%{DATETIME} [Info] Running sync
%{DATETIME} [Info]  OK
%{DATETIME} [Info] You can find backup here: /tmp/backup-%{NUMBER}
%{DATETIME} [Info] Elapsed time: #!/([0-9]+\.[0-9]+|0)/!#s
%{DATETIME} [Info] Done
––– input –––
BACKUP_NAME=$(docker exec manticore ls /tmp/ | grep backup-*)
––– output –––
OK
––– input –––
docker cp manticore:/tmp/$BACKUP_NAME /tmp/$BACKUP_NAME > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
chmod -R 777 /tmp/$BACKUP_NAME
––– output –––
OK
––– input –––
docker stop manticore
––– output –––
OK
––– input –––
docker ps
––– output –––
OK
––– input –––
if timeout 60 sh -c 'while docker ps -a | grep -qE "Up"; do sleep 1; done'; then echo 'successful'; else echo 'not successful'; fi
––– output –––
OK
––– input –––
docker run -d --name manticore -v /tmp/$BACKUP_NAME:/docker-entrypoint-initdb.d manticoresoftware/manticore:current
––– output –––
OK
––– input –––
if timeout 60 grep -qEm1 "accepting connections" <(docker logs -f manticore 2>&1); then echo 'Manticore is running'; else echo 'Failed to start Manticore'; docker logs manticore; fi
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show tables"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table distributed_index"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_with_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table rt_without_columnar"
––– output –––
OK
––– input –––
docker exec manticore mysql -e "show create table test"
––– output –––
OK

@KlimTodrik KlimTodrik merged commit 96be981 into master Oct 16, 2025
1 check passed
@KlimTodrik KlimTodrik deleted the feat/bump-clt-version branch October 16, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants