1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155

infra / config / .lucicfgfmtrc [blame]

# schema: https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/lucicfg/buildifier/lucicfgfmtrc.proto
rules {
    path: "subprojects"
    path: "dev/subprojects"
    function_args_sort {
        # Common arguments
        arg: "name"
        arg: "branch_selector"
        arg: "bucket"

        # ACLs/swarming triggerers
        arg: "builder_realm"
        arg: "pool_realm"
        arg: "roles"
        arg: "groups"
        arg: "users"

        # Console views
        arg: "repo"
        arg: "refs"
        arg: "title"
        arg: "header"
        arg: "ordering"

        # CQ groups
        arg: "retry_config"
        arg: "watch"

        # Buckets
        arg: "shadows"
        arg: "constraints"

        # Builders
        arg: "description_html"
        arg: "executable"
        arg: "schedule"
        arg: "triggered_by"
        arg: "triggering_policy"
        arg: "builder_group"
        arg: "builder_spec"
        arg: "mirrors"
        arg: "builder_config_settings"
        arg: "gn_args"
        arg: "targets"
        arg: "targets_settings"
        arg: "pool"
        arg: "builderless"
        arg: "cores"
        arg: "os"
        arg: "cpu"
        arg: "ssd"
        arg: "free_space"
        arg: "gce"
        arg: "gardener_rotations"
        arg: "tree_closing"
        arg: "console_view_entry"
        arg: "main_console_view"
        arg: "cq_mirrors_console_view"
        arg: "list_view"

        # Builder spec
        arg: "execution_mode"
        arg: "gclient_config"
        arg: "chromium_config"

        # gclient config/chromium config
        arg: "config"
        arg: "apply_configs"
        arg: "build_config"
        arg: "target_arch"
        arg: "target_bits"
        arg: "target_platform"
        arg: "target_cros_boards"

        # console view entry
        arg: "console_view"
        arg: "builder"
        arg: "category"
    }
}
rules {
    path: "targets"
    function_args_sort {
        arg: "name"

        # targets
        arg: "label"
        arg: "label_type"
        arg: "script"
        arg: "executable"
        arg: "executable_suffix"
        arg: "skip_usage_check"

        # variant
        arg: "enabled"
        arg: "identifier"

        # variant/mixin
        arg: "generate_pyl_entry"
        arg: "description"

        # tests
        arg: "test"
        arg: "results_handler"
        arg: "is_android_webview"
        arg: "telemetry_test_name"
        arg: "tast_expr"
        arg: "test_level_retries"
        arg: "mixins"
        arg: "remove_mixins"

        # bundles
        arg: "additional_compile_targets"
        arg: "targets"
        # Specially handle the ordering for mixins in bundles so that it doesn't
        # impact the order in tests
        arg: "targets.bundle.mixins"
        arg: "per_test_modifications"

        # mixin/variant/test common fields
        arg: "args"
        arg: "precommit_args"
        arg: "android_args"
        arg: "chromeos_args"
        arg: "desktop_args"
        arg: "lacros_args"
        arg: "linux_args"
        arg: "mac_args"
        arg: "win_args"
        arg: "win64_args"
        arg: "ci_only"
        arg: "swarming"
        arg: "android_swarming"
        arg: "chromeos_swarming"
        arg: "merge"
        arg: "resultdb"
        arg: "timeout_sec"
        arg: "experiment_percentage"

        # swarming
        arg: "shards"
        arg: "dimensions"
        arg: "optional_dimensions"
        arg: "expiration_sec"
        arg: "hard_timeout_sec"
        arg: "io_timeout_sec"

        # resultdb
        arg: "enable"
        arg: "result_format"

        # cipd_package
        arg: "package"
    }
}