[SERVER-82790] Speed up "Fetching feature flags" resmoke Created: 03/Nov/23  Updated: 07/Nov/23  Resolved: 07/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: David Percy Assignee: David Percy
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-77436 remove all_feature_flags.txt and calc... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'David Percy', 'email': 'david.percy@mongodb.com', 'username': 'dpercy'}

Message: SERVER-82790 Avoid most YAML parsing when "Fetching feature flags"
Branch: master
https://github.com/mongodb/mongo/commit/4fda0a1e55e945ca1581f6e114298d88be610213

Generated at Thu Feb 08 06:50:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.