]> source.dussan.org Git - rspamd.git/commit
Speedup lua coverage collecting for functional test
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Sat, 27 Oct 2018 17:18:04 +0000 (13:18 -0400)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Sat, 27 Oct 2018 17:36:52 +0000 (13:36 -0400)
commit3ebf458996b18c42f78ff35ed7fbd66179dc2eea
tree4323289a561a2ae30fd6b4dd88d598a5418e05f5
parentc974d1eaaaee82906415b3608089f24461daf86c
Speedup lua coverage collecting for functional test

luacov-coveralls merge mode (-j flag) was created to join reports
containing coverage for different source files (e.g. C and Lua code).
Coverage for the same file in two report is not merged, instead one
source file is added several times to source_files array in JSON. As
a result if we use luacov-coveralls -j on report for same source files
it ends up spending a lot of time on parsing and dumping big JSON files.

This change reduces functional test time from 7+ minutes to 4+ minutes.
.drone.yml
test/functional/lib/rspamd.py