Skip to content

Commit

Permalink
Log benchmark mode at beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmitterdorfer committed Jul 3, 2017
1 parent edd16f7 commit 6eaa4b2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions night_rally.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ def __init__(self, effective_start_date, target_host, root_dir, distribution_ver
self._tag = tag

def runnable(self, track, challenge, car):
# cannot run "sorted" challenges - it's a 6.0+ feature
if int(self.distribution_version[0]) < 6:
return "sorted" not in challenge
# Do not run 1g benchmarks at all at the moment. Earlier versions of ES OOM.
if car == "1gheap":
return False
# cannot run "sorted" challenges - it's a 6.0+ feature
if int(self.distribution_version[0]) < 6:
return "sorted" not in challenge
return True

def command_line(self, track, challenge, car):
Expand Down Expand Up @@ -770,16 +770,21 @@ def main():
# use always the same name for release comparison benchmarks
env_name = sanitize(args.mode)
if args.release.startswith("Docker"):
logger.info("Running Docker release benchmarks for release [%s] against [%s]." % (args.release, args.target_host))
command = DockerCommand(args.effective_start_date, args.target_host, root_dir, args.release, env_name)
tag = command.tag()
else:
logger.info("Running release benchmarks for release [%s] against [%s] (release tag is [%s])."
% (args.release, args.target_host, release_tag))
command = ReleaseCommand(args.effective_start_date, args.target_host, root_dir, args.release, env_name, release_tag)
tag = command.tag()
elif adhoc_mode:
logger.info("Running adhoc benchmarks for revision [%s] against [%s]." % (args.revision, args.target_host))
# copy data from templates directory to our dedicated output directory
env_name = sanitize(args.release)
command = AdHocCommand(args.revision, args.effective_start_date, args.target_host, root_dir, env_name, args.tag, args.override_src_dir)
else:
logger.info("Running nightly benchmarks against [%s]." % args.target_host)
env_name = NightlyCommand.CONFIG_NAME
command = NightlyCommand(args.effective_start_date, args.target_host, root_dir, args.override_src_dir)

Expand Down

0 comments on commit 6eaa4b2

Please sign in to comment.