Skip to content

Commit

Permalink
Fix prefix matching for benchmark labels (iree-org#13636)
Browse files Browse the repository at this point in the history
Use the right `benchmarks:` to match the prefix of benchmark labels
  • Loading branch information
Jerry Wu authored and NatashaKnk committed Jul 6, 2023
1 parent 3f85795 commit cfa2c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_tools/github_actions/configure_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
]
# All available benchmark preset options including experimental presets.
BENCHMARK_PRESET_OPTIONS = DEFAULT_BENCHMARK_PRESETS
BENCHMARK_LABEL_PREFIX = "benchmarks"

PR_DESCRIPTION_TEMPLATE = "{title}" "\n\n" "{body}"

Expand Down Expand Up @@ -289,7 +290,7 @@ def get_benchmark_presets(trailers: Mapping[str, str], labels: Sequence[str],
preset_options = set(
label.split(":", maxsplit=1)[1]
for label in labels
if label.startswith(BENCHMARK_EXTRA_KEY + ":"))
if label.startswith(BENCHMARK_LABEL_PREFIX + ":"))
trailer = trailers.get(BENCHMARK_EXTRA_KEY)
if trailer is not None:
preset_options = preset_options.union(
Expand Down

0 comments on commit cfa2c99

Please sign in to comment.