Push perf test results to slack app (#6371)

* Add script to publish testnet results to slack

* Obscure webhook URL

* fixup

* Replace read with cat redirection

* Turn back on net restart

* Pick nits

* Make symlink before trying to delete its contents

* Display test config in slack and pick Trents nit not to maybe rm -rf /*

* Clean up results print

* Minor nits

* Turn the test settings back up to 11

* typo

* Shellcheck

* Just a few more fields

* fix payload formatting

* Del clear-config.sh

* Mount secondary

* Add commit SHA link and Grafana time range URL

* Add fancy buttons instead of text URLs

* Tighten up test config display

* Fixup display nits

* chellsheck

* Rebase and fix typo
This commit is contained in:
Dan Albert
2019-10-21 20:00:17 -04:00
committed by GitHub
parent d1b18a5060
commit 00809a67c0
8 changed files with 167 additions and 27 deletions

View File

@ -2,6 +2,9 @@
import sys, json
data=json.load(sys.stdin)
print[\
([result['series'][0]['columns'][1].encode(), result['series'][0]['values'][0][1]]) \
for result in data['results']]
if 'results' in data:
for result in data['results']:
print result['series'][0]['columns'][1].encode() + ': ' + str(result['series'][0]['values'][0][1])
else:
print "No results returned from CURL request"