Speed up resmoke's find-suites command

XMLWordPrintableJSON

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

      When I want to know which suites contain a given jstest, I use the find-suites subcommand of resmoke.py. It's very useful for:

      • onboarding / understanding how our tests are organized
      • avoiding unnecessary patch builds

      However, it takes over a minute to run:

      arm ~/mongo$ time buildscripts/resmoke.py find-suites jstests/aggregation/expressions/merge_objects.js 
      [resmoke] 17:41:14.343Z jstests/aggregation/expressions/merge_objects.js will be run by the following suite(s): ['aggregation', 'aggregation_auth', 'aggregation_column_store_index_passthrough', 'aggregation_disabled_optimization', 'aggregation_embedded_router_jscore_passthrough', 'aggregation_ese', 'aggregation_ese_gcm', 'aggregation_facet_unwind_passthrough', 'aggregation_mongos_passthrough', 'aggregation_one_shard_sharded_collections', 'aggregation_read_concern_majority_passthrough', 'aggregation_repeat_queries', 'aggregation_secondary_reads', 'aggregation_sharded_collections_causally_consistent_passthrough', 'aggregation_sharded_collections_embedded_router_jscore_passthrough', 'aggregation_sharded_collections_passthrough', 'aggregation_unsplittable_collections_on_random_shard_passthrough', 'fcv_upgrade_downgrade_replica_sets_jscore_passthrough', 'fcv_upgrade_downgrade_sharded_collections_jscore_passthrough', 'fcv_upgrade_downgrade_sharding_jscore_passthrough', 'multitenancy_with_atlas_proxy_jscore_passthrough', 'multitenancy_with_mongoq_jscore_passthrough', 'query_stats_aggregation_passthrough', 'query_stats_mongos_aggregation_passthrough']
      
      real    1m21.606s
      user    1m13.288s
      sys     0m7.669s
      

      If this command were faster, we'd probably use it more often.

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

              Created:
              Updated:
              Resolved: