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

Dont run feature flag specific tests for multiversion testing

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.4, 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Development Platform
    • Fully Compatible
    • ALL
    • v6.2, v6.0
    • 157

      In all-feature-flag multiversion testing, in the global_index_rollback.js test the featureFlagGlobalIndexes feature flag is not enabled on the 6.2 nodes which causes the test to fail due to "no such command: '_shardsvrCreateGlobalIndex'".


      The above is how this issue was surfaced. We shouldn't run feature flag specific tests during multiversion testing for 2 reasons.

      (1) The feature flag c++ code is gated by FeatureFlag::isEnabled(serverGlobalParams.featureCompatibility) & multiversion testing's featureCompatibilityVersion will always be lower than the required FCV for a non-default feature flag. Therefore, the feature flag code can never run with the given FCV. This will always result in failures for featureFlag specific tests.
      (2) The previous version is not guaranteed to have the featureFlag feature. So there's a good chance, featureFlag specific tests will fail.

      There is a resmoke argument specifically for this use case: --runNoFeatureFlagTests. We should automatically add this when we are running multiversion testing in CI.

            Assignee:
            tausif.rahman@mongodb.com Tausif Rahman (Inactive)
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: