ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1025
    • Affects Version/s: None
    • Component/s: Bazel
    • None
    • Build OnDeck
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      CI target generation in bazel/wrapper_hook/autogenerated_targets.py now uses one cquery over the existing tagged extract_debuginfo_test rules instead of 20 separate queries. target_compatable.cquery returns labels, platform compatibility, and tags from the existing TagInfo provider; Python groups and deduplicates labels locally. All 20 filegroups and the local retry behavior are preserved.

      Generated labels are sorted, and BUILD.bazel is written only when its content changes, avoiding unnecessary package reloads.

      Validation:

      • Real Bazel 9.2 A/B comparison against the committed generator on the full //src/... graph, using identical --config=local --config=opt --include_autogenerated_targets=True settings and alternating run order:
      Bazel state Original: 20 queries Updated: 1 query Speedup
      Warm, median of 5 runs 26.89 s 1.42 s 18.9x
      Restarted server, median of 3 runs 58.48 s 25.40 s 2.3x

      Both versions produced the same 704 compatible targets across all 20 groups after normalizing main-repository label prefixes. Repeated generation with the updated version left output files untouched. Dependencies were cached, and generated files were placed outside the source tree, so these timings exclude downstream package-reload savings.

            Assignee:
            Daniel Moody
            Reporter:
            Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: