description: Adapt a LUCI builder definition
owner: bryankim@google.com
prompts:
  - 'file://prompt.md'
providers:
  - id: python:../../../testing/gemini_provider.py
    config:
      timeoutSeconds: 1200
tests:
  - assert:
    - type: python
      value: file://../../../testing/asserts/check_changes.py:check_files_changed
      config:
        files:
        - infra/config/subprojects/chromium/ci/chromium.memory.star
        - infra/config/subprojects/chromium/try/tryserver.chromium.win.star
        - infra/config/generated/builder-owners/chrome-sanitizer-builder-owners@google.com.txt
        - infra/config/generated/builders/gn_args_locations.json
        - infra/config/generated/cq-usage/mega_cq_bots.txt
        - infra/config/generated/health-specs/health-specs.json
        - infra/config/generated/luci/commit-queue.cfg
        - infra/config/generated/luci/cr-buildbucket.cfg
        - infra/config/generated/luci/luci-milo.cfg
        - infra/config/generated/luci/luci-notify.cfg
        - infra/config/generated/luci/luci-scheduler.cfg
        - infra/config/generated/sheriff-rotations/chromium.txt
    - type: python
      value: file://../../../testing/asserts/check_changes.py:check_files_added
      config:
        files:
        - infra/config/generated/builders/ci/win-blink-asan-rel/gn-args.json
        - infra/config/generated/builders/ci/win-blink-asan-rel/properties.json
        - infra/config/generated/builders/ci/win-blink-asan-rel/shadow-properties.json
        - infra/config/generated/builders/ci/win-blink-asan-rel/targets/chromium.memory.json
        - infra/config/generated/builders/try/win-blink-asan-rel/gn-args.json
        - infra/config/generated/builders/try/win-blink-asan-rel/properties.json
        - infra/config/generated/builders/try/win-blink-asan-rel/targets/chromium.memory.json
    - type: python
      value: file://../../../testing/asserts/check_changes.py:check_file_content
      config:
        files:
          - path: infra/config/subprojects/chromium/ci/chromium.memory.star
            present:
              - 'name = "win-blink-asan-rel"'
              - 'config = "chromium_win_clang_asan"'
              - 'category = "win|blink"'
              - 'short_name = "asn"'
          - path: infra/config/subprojects/chromium/try/tryserver.chromium.win.star
            present:
              - 'name = "win-blink-asan-rel"'
              - '"ci/win-blink-asan-rel"'
              - 'contact_team_email = "chrome-sanitizer-builder-owners@google.com"'
          - path: infra/config/generated/luci/cr-buildbucket.cfg
            present:
              - 'name: "win-blink-asan-rel"'
          - path: infra/config/generated/luci/luci-milo.cfg
            present:
              - 'name: "buildbucket/luci.chromium.ci/win-blink-asan-rel"'
          - path: infra/config/generated/luci/commit-queue.cfg
            present:
              - 'name: "chromium/try/win-blink-asan-rel"'
    metadata:
      tags:
      - stable