From: Michelle McDaniel Date: Tue, 7 Aug 2018 01:46:02 +0000 (-0700) Subject: Fix throughput testing (#19314) X-Git-Tag: accepted/tizen/unified/20190422.045933~1510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1e525663ce21ec6aff28fbc8302cede65a49352;p=platform%2Fupstream%2Fcoreclr.git Fix throughput testing (#19314) Also adds architecture to throughput trigger phrase. --- diff --git a/perf.groovy b/perf.groovy index 4212207..906d489 100644 --- a/perf.groovy +++ b/perf.groovy @@ -607,7 +607,7 @@ def static getFullThroughputJobName(def project, def os, def arch, def isPR) { if (isPR) { TriggerBuilder builder = TriggerBuilder.triggerOnPullRequest() - builder.setGithubContext("Linux Throughput Perf Test Flow") + builder.setGithubContext("Linux ${architecture} Throughput Perf Test Flow") builder.triggerOnlyOnComment() builder.setCustomTriggerPhrase("(?i).*test\\W+linux\\W+throughput\\W+flow.*") builder.triggerForBranch(branch) diff --git a/tests/scripts/run-throughput-perf.py b/tests/scripts/run-throughput-perf.py index f8b70a0..8e54642 100644 --- a/tests/scripts/run-throughput-perf.py +++ b/tests/scripts/run-throughput-perf.py @@ -178,7 +178,7 @@ def validate_args(args): valid_run_types = ['rolling', 'private'] valid_os = ['Windows_NT', 'Ubuntu14.04', 'Ubuntu16.04'] valid_opt_levels = ['full_opt', 'min_opt'] - valid_jit_names = 'ryujit' + valid_jit_names = ['ryujit'] arch = next((a for a in valid_archs if a.lower() == arch.lower()), arch) build_type = next((b for b in valid_build_types if b.lower() == build_type.lower()), build_type) @@ -192,7 +192,7 @@ def validate_args(args): validate_arg(run_type, lambda item: item in valid_run_types) validate_arg(iterations, lambda item: item > 0) validate_arg(opt_level, lambda item: item in valid_opt_levels) - validate_arg(jit_name, lambda item: item in valid_jit_names[arch]) + validate_arg(jit_name, lambda item: item in valid_jit_names) if clr_root is None: raise Exception('--clr_root must be set')