<commit_before>load("//tools:defaults.bzl", "protractor_web_test_suite")

"""
  Macro that can be used to define a benchmark test. This differentiates from
  a normal Protractor test suite because we specify a custom "perf" configuration
  that sets up "@angular/benchpress". Benchmark test targets will not run on CI
  unless explicitly requested.
"""

def benchmark_test(name, server, tags = [], **kwargs):
    protractor_web_test_suite(
        name = name,
        configuration = "//:protractor-perf.conf.js",
        data = [
            "//packages/benchpress",
        ],
        on_prepare = "//modules/benchmarks:start-server.js",
        server = server,
        # Benchmark targets should not run on CI by default.
        tags = tags + ["manual"],
        test_suite_tags = ["manual"],
        **kwargs
    )<commit_msg>ci: don't run benchmark_tests on remote executors (#34996)<commit_after>load("//tools:defaults.bzl", "protractor_web_test_suite")

"""
  Macro that can be used to define a benchmark test. This differentiates from
  a normal Protractor test suite because we specify a custom "perf" configuration
  that sets up "@angular/benchpress". Benchmark test targets will not run on CI
  unless explicitly requested.
"""

def benchmark_test(name, server, tags = [], **kwargs):
    protractor_web_test_suite(
        name = name,
        configuration = "//:protractor-perf.conf.js",
        data = [
            "//packages/benchpress",
        ],
        on_prepare = "//modules/benchmarks:start-server.js",
        server = server,
        # Benchmark targets should not run on CI by default.
        tags = tags + [
            "manual",
            "no-remote-exec",
        ],
        test_suite_tags = [
            "manual",
            "no-remote-exec",
        ],
        **kwargs
    )
{'fraction_non_alphanumeric': 0.11172261970280682, 'fraction_numerical': 0.00275178866263071, 'mean_word_length': 2.496153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2872438', 'n_tokens_mistral': 534, 'n_tokens_neox': 497, 'n_words': 155}