[SERVER-65486] Run unittests with feature flags on all-feature-flag variants Created: 12/Apr/22  Updated: 17/Jul/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: pm-2821-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-78857 Add --all-feature-flags option for un... Closed
Related
related to SERVER-78858 Add parametrized test fixtures to uni... Closed
Assigned Teams:
Replication
Operating System: ALL
Participants:

 Description   

The all-feature-flag variants do not currently run unittests. This means that it's very difficult to write unittests for new features, or verify whether tests will pass when flags are enabled by default.

We should make it possible to run unittests with feature flags enabled. We should then make sure the all-feature-flag variants run these tests with the flags enabled.



 Comments   
Comment by Max Hirschhorn [ 12/Apr/22 ]

C++ unit tests intentionally are not run with different feature flags because the expectation is C++ unit tests are generally testing a layer of the system lower than where the feature flag is consulted. Of course such a layering isn't always possible with how the system operates in practice. SERVER-53386 added RAIIServerParameterControllerForTest for C++ unit tests to specifically enable feature flags (which are just server parameters with a slightly special syntax) on an as-needed basis.

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