Skip to content

Commit

Permalink
formatting by black
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan authored and vladbogo committed Jul 29, 2024
1 parent a0cbac3 commit 106a7fa
Showing 1 changed file with 37 additions and 18 deletions.
55 changes: 37 additions & 18 deletions master-docker-nonstandard/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ f_asan_ubsan_build.addStep(
"sh",
"-c",
util.Interpolate(
'cmake . -DWITH_ASAN=ON -DWITH_UBSAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s',
"cmake . -DWITH_ASAN=ON -DWITH_UBSAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s",
jobs=util.Property("jobs", default="$(getconf _NPROCESSORS_ONLN)"),
),
],
Expand Down Expand Up @@ -581,7 +581,7 @@ f_asan_build.addStep(
"sh",
"-c",
util.Interpolate(
'cmake . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DWITH_ASAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s',
"cmake . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DWITH_ASAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s",
jobs=util.Property("jobs", default="$(getconf _NPROCESSORS_ONLN)"),
),
],
Expand All @@ -596,7 +596,27 @@ f_asan_build.addStep(
"sh",
"-c",
util.Interpolate(
'cd mysql-test; MTR_FEEDBACK_PLUGIN=1 ASAN_OPTIONS="abort_on_error=1" LSAN_OPTIONS="print_suppressions=0,suppressions=$PWD/lsan.supp" perl mysql-test-run.pl --verbose-restart --force --retry=3 --max-save-core=2 --max-save-datadir=10 --max-test-fail=20 --mem --parallel=$(expr %(kw:jobs)s \* 2)',
";".join(
[
"cd mysql-test",
" ".join(
[
"MTR_FEEDBACK_PLUGIN=1",
'ASAN_OPTIONS="abort_on_error=1"',
'LSAN_OPTIONS="print_suppressions=0,suppressions=$PWD/lsan.supp"',
"perl mysql-test-run.pl",
"--verbose-restart",
"--force",
"--retry=3",
"--max-save-core=2",
"--max-save-datadir=10",
"--max-test-fail=20",
"--mem",
"--parallel=$(expr %(kw:jobs)s \* 2)",
]
),
]
),
jobs=util.Property("jobs", default="$(getconf _NPROCESSORS_ONLN)"),
),
],
Expand Down Expand Up @@ -1023,30 +1043,29 @@ f_full_test.addStep(
)
)

#MTR steps
# MTR steps
full_test_configs = {
"emb": {},
"nm": {},
"ps": {},
"emb-ps":{},
"emb-ps": {},
"nm_func_1_2": {},
"nm_engines": {},
"view": {
"additional_args": "--suite=main"
},
"connect": {}
"view": {"additional_args": "--suite=main"},
"connect": {},
}

for typ in full_test_configs:
addTests(f_full_test,
mtr_test_type=typ,
mtr_step_db_pool=mtrDbPool,
mtr_additional_args=full_test_configs[typ].get('additional_args',""),
mtr_feedback_plugin=1,
mtr_max_test_fail=10,
mtr_step_timeout=3600,
mtr_step_auto_create_tables=False
)
addTests(
f_full_test,
mtr_test_type=typ,
mtr_step_db_pool=mtrDbPool,
mtr_additional_args=full_test_configs[typ].get("additional_args", ""),
mtr_feedback_plugin=1,
mtr_max_test_fail=10,
mtr_step_timeout=3600,
mtr_step_auto_create_tables=False,
)


f_full_test.addStep(saveLogs())
Expand Down

0 comments on commit 106a7fa

Please sign in to comment.