Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-82790

Speed up "Fetching feature flags" resmoke

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

      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@mongodb.com David Percy
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: