Page MenuHomePhabricator

[CI] Integrate nanobench with Teamcity
ClosedPublic

Authored by Fabien on Feb 15 2021, 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
Lint Not Applicable
Unit
Tests Not Applicable