Tarantool development patches archive
 help / color / mirror / Atom feed
From: Oleg Koshovetc <okoshovetc@tarantool.org>
To: Alexander Turenko <alexander.turenko@tarantool.org>,
	Alexander Tikhonov <avtikhon@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH 1/2] fix: remove unnecessary publication scripts
Date: Tue, 8 Dec 2020 14:36:38 +0300	[thread overview]
Message-ID: <ef7f0064-51fe-2b5d-cd28-cf49bf39b9e8@tarantool.org> (raw)
In-Reply-To: <984618ac-e7ee-c7db-4c0d-f71fbba59210@tarantool.org>

---
  benches/publication/publish.py | 64 
------------------------------------------
  1 file changed, 64 deletions(-)
  delete mode 100755 benches/publication/publish.py

diff --git a/benches/publication/publish.py b/benches/publication/publish.py
deleted file mode 100755
index 42bc53a..0000000
--- a/benches/publication/publish.py
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/env python
-import fnmatch
-import os
-from urllib import urlencode
-import requests
-
-
-def parse_bench(filename):
-    with open(filename) as raw_data:
-        return raw_data.readlines()
-
-
-def get_version(filename):
-    with open(filename) as raw_data:
-        version = raw_data.readlines()[-1]
-        return version.split()[0]
-
-
-def push_to_microb(server, token, name, value, version, tab):
-    uri = 'http://%s/push?%s' % (server, urlencode(dict(
-        key=token, name=name, param=value,
-        v=version, unit='trps', tab=tab
-    )))
-
-    r = requests.get(uri)
-    if r.status_code == 200:
-        print('Export complete')
-    else:
-        print('Export error http: %d' % r.status_code)
-        print('Export error text: %d' % r.text)
-
-
-def main():
-    if "MICROB_WEB_TOKEN" in os.environ and "MICROB_WEB_HOST" in 
os.environ:
-        bench = {}
-        res = []
-        current_data = {}
-        version = ''
-        for file in os.listdir('.'):
-            if fnmatch.fnmatch(file, '*_result.txt'):
-                values = parse_bench(file)
-                benchmark = file.split('_')[0]
-                version = get_version('{}_t_version.txt'.format(benchmark))
-                for value in values:
-                    test_name = value.split(':')[0]
-                    test_res = float(value.split(':')[1])
-                    res.append(test_res)
-                    push_to_microb(
-                        os.environ['MICROB_WEB_HOST'],
-                        os.environ['MICROB_WEB_TOKEN'],
-                        test_name,
-                        test_res,
-                        version,
-                        benchmark,
-                    )
-        print ("VERSION - ", version)
-    else:
-        print("MICROB params not specified")
-
-    return 0
-
-
-if __name__ == '__main__':
-    main()
-- 
2.7.4

  reply	other threads:[~2020-12-08 11:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-02 17:08 [Tarantool-patches] [PATCH] benchmarks: runner for local benchmarks runs Oleg Koshovetc
2020-12-08 11:36 ` Oleg Koshovetc [this message]
2020-12-08 11:38   ` [Tarantool-patches] [PATCH 2/2] install: local benchmarks installation scripts Oleg Koshovetc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef7f0064-51fe-2b5d-cd28-cf49bf39b9e8@tarantool.org \
    --to=okoshovetc@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=avtikhon@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 1/2] fix: remove unnecessary publication scripts' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox