Skip to content

Commit 72b535d

Browse files
authored
Merge PR #76: Improve Codespeed submission error and make release
2 parents 32f64a6 + a6e8540 commit 72b535d

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

CHANGELOG.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
## [Unreleased]
44

5+
-
6+
7+
## [0.10.0] - 2018-06-08
8+
9+
- Restructure command-line options in help, and use argparse (#73)
510
- Add support for Python 3 and PyPy (#65)
11+
- Add support for extra criteria (things beside run time) (#64)
12+
- Add support for path names in ReBenchLog benchmark names
613

714
## [0.9.1] - 2017-12-21
815

@@ -49,8 +56,9 @@
4956
- [0.6.0] - 2014-05-19
5057
- [0.5.0] - 2014-03-25
5158

52-
[Unreleased]: https://github.com/smarr/ReBench/compare/v0.9.1...HEAD
53-
[0.9.0]: https://github.com/smarr/ReBench/compare/v0.9.0...v0.9.1
59+
[Unreleased]: https://github.com/smarr/ReBench/compare/v0.10.0...HEAD
60+
[0.10.0]: https://github.com/smarr/ReBench/compare/v0.9.1...v0.10.0
61+
[0.9.1]: https://github.com/smarr/ReBench/compare/v0.9.0...v0.9.1
5462
[0.9.0]: https://github.com/smarr/ReBench/compare/v0.8.0...v0.9.0
5563
[0.8.0]: https://github.com/smarr/ReBench/compare/v0.7.5...v0.8.0
5664
[0.7.5]: https://github.com/smarr/ReBench/compare/v0.7.4...v0.7.5

rebench/rebench.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
class ReBench:
4343

4444
def __init__(self):
45-
self.version = "0.9.1"
45+
self.version = "0.10.0"
4646
self.options = None
4747
self._config = None
4848

rebench/reporter.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _send_payload(self, payload):
397397
fh = urlopen(self._cfg.url, payload)
398398
response = fh.read()
399399
fh.close()
400-
logging.info("Results were sent to codespeed, response was: "
400+
logging.info("Results were sent to Codespeed, response was: "
401401
+ response)
402402

403403
def _send_to_codespeed(self, results):
@@ -406,17 +406,24 @@ def _send_to_codespeed(self, results):
406406
try:
407407
self._send_payload(payload)
408408
except (IOError, HTTPException):
409-
# sometimes codespeed fails to accept a request because something
409+
# sometimes Codespeed fails to accept a request because something
410410
# is not yet properly initialized, let's try again for those cases
411411
try:
412412
self._send_payload(payload)
413413
except (IOError, HTTPException) as error:
414414
logging.error(str(error) + " This is most likely caused by "
415415
"either a wrong URL in the config file, or an "
416-
"environment not configured in codespeed. URL: "
416+
"environment not configured in Codespeed. URL: "
417417
+ self._cfg.url)
418-
419-
logging.info("Sent %d results to codespeed." % len(results))
418+
envs = set([i['environment'] for i in payload])
419+
projects = set([i['project'] for i in payload])
420+
benchmarks = set([i['benchmark'] for i in payload])
421+
executables = set([i['executable'] for i in payload])
422+
logging.error("Sent data included environments: %s "
423+
"projects: %s benchmarks: %s executables: %s"
424+
% (envs, projects, benchmarks, executables))
425+
426+
logging.info("Sent %d results to Codespeed." % len(results))
420427

421428
def _prepare_result(self, run_id):
422429
stats = StatisticProperties(run_id.get_total_values())

0 commit comments

Comments
 (0)