Page MenuHomePhabricator

[CI] Integrate nanobench with Teamcity
ClosedPublic

Authored by Fabien on Mon, Feb 15, 09:09.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCc3ac2ec43dd3: [CI] Integrate nanobench with Teamcity
Summary

The new nanobench benchmarking framework introduced in Dxxxx has no
built-in output format compatible with Teamcity. But since it provides a
very complete json output, it is easy to parse it and generate the
messages we want for teamcity.

This diff makes the bench-bitcoin target generate csv and json output
files, and adds a simple python script to parse the json output and send
teamcity messages when run on CI.

Depends on D9226.

Test Plan
ninja bench-bitcoin

../contrib/teamcity/build-configurations.py build-bench

Check the csv and json files are in the artifacts, and it echoes a lot
of teamcity messages with the correct values.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.