+++ mktemp -d
++ workdir=/tmp/tmp.BTCOTbq1AE
++ echo Workdir: /tmp/tmp.BTCOTbq1AE
Workdir: /tmp/tmp.BTCOTbq1AE
++ echo Checkout base commit...
Checkout base commit...
++ git checkout 6cb889e0980ebaa09e23eecff65a3608ecbadb3a~1
Warning: you are leaving 2 commits behind, not connected to
any of your branches:

  6cb889e09 Merge 369f7b37bf9259434c3c48c6eb1cc8a3997f3b02 into 2ce497a3d2bbf1f97508a89e63f8ce0038405c9c
  369f7b37b Remove formating in config fetch

If you want to keep them by creating a new branch, this may be a good time
to do so with:

 git branch <new-branch-name> 6cb889e09

HEAD is now at 2ce497a3d improve test canonization (#15501)
++ echo Build graph for base commit...
Build graph for base commit...
++ ./ya make -Gj0 -ttt ydb --build release -k --cache-tests --build-all
++ jq '.graph[]'
Downloading https://devtools-registry.s3.yandex.net/8193805064 [.......................................] OK
++ echo Checkout head commit...
Checkout head commit...
++ git checkout 6cb889e0980ebaa09e23eecff65a3608ecbadb3a
Previous HEAD position was 2ce497a3d improve test canonization (#15501)
HEAD is now at 6cb889e09 Merge 369f7b37bf9259434c3c48c6eb1cc8a3997f3b02 into 2ce497a3d2bbf1f97508a89e63f8ce0038405c9c
++ echo Build graph for head commit...
Build graph for head commit...
++ ./ya make -Gj0 -ttt ydb --build release -k --cache-tests --build-all
++ jq '.graph[]'
++ echo Generate lists of uids for base and head...
Generate lists of uids for base and head...
++ cat /tmp/tmp.BTCOTbq1AE/graph_base
++ jq .uid
++ cat /tmp/tmp.BTCOTbq1AE/graph_head
++ jq .uid
++ echo Create a list of changed uids in the head graph...
Create a list of changed uids in the head graph...
++ cat /tmp/tmp.BTCOTbq1AE/uid_head
++ sort
++ uniq -d
++ cat /tmp/tmp.BTCOTbq1AE/uid_base
++ sort
++ uniq -u
++ cat /tmp/tmp.BTCOTbq1AE/uid_head
++ echo Create ya.make
Create ya.make
++ echo ''
++ echo Generate list of test shard names from the head graph based on the list of uids...
Generate list of test shard names from the head graph based on the list of uids...
++ cat /tmp/tmp.BTCOTbq1AE/graph_head
++ jq -r --slurpfile uids /tmp/tmp.BTCOTbq1AE/uids_new 'select( ."node-type"=="test") | select( any( .uid; .==$uids[] )) | .kv.path'
++ sort
++ uniq
++ echo Number of test suites:
Number of test suites:
++ wc -l
++ cat /tmp/tmp.BTCOTbq1AE/testsuites
15
++ echo Removing test suite name from the list to get target names...
Removing test suite name from the list to get target names...
++ sed -E 's/\/[^/]*$//g;/^null$/d' /tmp/tmp.BTCOTbq1AE/testsuites
++ echo Append into ya.make RECURSE_FOR_TESTS to all required tests...
Append into ya.make RECURSE_FOR_TESTS to all required tests...
++ cat /tmp/tmp.BTCOTbq1AE/ts2
++ echo 'RECURSE_FOR_TESTS('
++ cat
++ echo ')'
++ echo Generate list of module names from the head graph based on the list of uids...
Generate list of module names from the head graph based on the list of uids...
++ cat /tmp/tmp.BTCOTbq1AE/graph_head
++ jq -r --slurpfile uids /tmp/tmp.BTCOTbq1AE/uids_new 'select( ."target_properties"."module_type" != null) | select( ( ."target_properties"."module_tag" // "-" | strings | contains("proto") ) | not ) | select( any( .uid; .==$uids[] )) | .target_properties.module_dir'
++ sort
++ uniq
++ echo Number of modules:
Number of modules:
++ cat /tmp/tmp.BTCOTbq1AE/modules
++ wc -l
6
++ echo Filter only modules in ydb
Filter only modules in ydb
++ cat /tmp/tmp.BTCOTbq1AE/modules
++ grep '^ydb'
++ echo Number of modules:
Number of modules:
++ cat /tmp/tmp.BTCOTbq1AE/modules2
++ wc -l
6
++ echo Append into ya.make RECURSE to all required modules...
Append into ya.make RECURSE to all required modules...
++ cat /tmp/tmp.BTCOTbq1AE/modules2
++ echo 'RECURSE('
++ cat
++ echo ')'
++ echo 'ya.make content:'
ya.make content:
++ cat ya.make

RECURSE_FOR_TESTS(
ydb/apps/ydb/ut
ydb/public/lib/ydb_cli/topic/ut
ydb/services/ydb/ut
ydb/tests/functional/benchmarks_init
ydb/tests/functional/clickbench
ydb/tests/functional/tpc/large
ydb/tests/functional/tpc/medium
ydb/tests/functional/ydb_cli
ydb/tests/olap
ydb/tests/sql/large
ydb/tests/sql
ydb/tests/stability/tool
ydb/tests/stress/kv/tests
ydb/tests/stress/log/tests
)
RECURSE(
ydb/apps/ydb
ydb/core/kqp/tests/tpch
ydb/public/lib/ydb_cli/commands
ydb/public/lib/ydb_cli/topic/ut
ydb/services/ydb/ut
ydb/tests/stability/tool
)