Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit 83856af

Browse files
dmiusastansler
authored andcommitted
fix: CI test
1 parent bf1fc16 commit 83856af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ variables:
6363
# Check small indexes
6464
- .ci/prepare_test_db.sh postgres
6565
- ./checkup -c .ci/test.yml --file ./resources/checks/H002_unused_indexes.sh
66+
- ./checkup -c .ci/test.yml --file ./resources/checks/H004_redundant_indexes.sh
6667
## unused
6768
- data_dir=$(cat ./artifacts/test/nodes.json | jq -r '.last_check | .dir') && result=$(cat "./artifacts/test/json_reports/$data_dir/H002_unused_indexes.json" | jq '.results .postgres .data .never_used_indexes ."public.i_u_12"') && ( [[ "$result" == "" ]] || [[ "$result" == "null" ]]) && exit 210
6869
## redundant
6970
- data_dir=$(cat ./artifacts/test/nodes.json | jq -r '.last_check | .dir') && result=$(cat "./artifacts/test/json_reports/$data_dir/H004_redundant_indexes.json" | jq '.results .postgres .data .redundant_indexes ."public.i_r_12"') && ( [[ "$result" == "" ]] || [[ "$result" == "null" ]]) && exit 211
7071
- echo "Check small indexes in small db mode passed"
7172
- .ci/prepare_large_db.sh postgres
7273
- ./checkup -c .ci/test.yml --file ./resources/checks/H002_unused_indexes.sh
74+
- ./checkup -c .ci/test.yml --file ./resources/checks/H004_redundant_indexes.sh
7375
## unused
7476
- data_dir=$(cat ./artifacts/test/nodes.json | jq -r '.last_check | .dir') && result=$(cat "./artifacts/test/json_reports/$data_dir/H002_unused_indexes.json" | jq '.results .postgres .data .never_used_indexes ."public.i_u_12"') && ([[ ! "$result" == "[]" ]] && [[ ! "$result" == "null" ]]) && exit 212
7577
## redundant

0 commit comments

Comments
 (0)