Speed up "Fetching feature flags" resmoke

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Whenever I run a JS test locally, I see this taking about five seconds:

      # Fetching feature flags...
      

      From the message I assumed this was talking to a web service, but it's only looking at local files, so I think this can be faster.

      There are a few hundred YAML files it's parsing, but only a handful actually contain feature flags:

      arm ~/mongo$ git ls-files src/ buildscripts/ | grep '\.idl$' | wc -l
      464
      arm ~/mongo$ git ls-files src/ buildscripts/ | grep '\.idl$' | xargs grep -l feature_flags | wc -l
      17
      

              Assignee:
              David Percy (Inactive)
              Reporter:
              David Percy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: