Globs from buildscripts/codeowners_generate.py are too aggressive

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • Fully Compatible
    • Correctness 2025-04-29, Correctness 2025-05-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In src/mongo/db, we have globs like commands.* which expand to something like src/mongo/db/**/commands.*, which can erroneously match to things in the enterprise module. It seems like putting a slash in the glob causes it expand more conservatively (i.e., without the **) - but this isn't clear to users. In general, it seems like globs expand too aggressively by default and users (i.e., writers of OWNERS.yml files) aren't fully aware of that, leading to accidental matches. Would we consider making the globs more conservative by default?

            Assignee:
            Trevor Guidry
            Reporter:
            Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: