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

Cannot run unittest suite locally (regression)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.1
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Dev Platform 2020-07-27

      If I build everything using ninja, one of the generated targets is build/unittests.txt. This file seems to have incorrect formatting, as this is the error I get when running resmoke:

      [resmoke] 2020-07-09T09:32:16.992-0400 verbatim resmoke.py invocation: buildscripts/resmoke.py run --suites=unittests -j30
      Traceback (most recent call last):
        File "buildscripts/resmoke.py", line 14, in <module>
          cli.main(sys.argv)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/cli.py", line 17, in main
          subcommand.execute()
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/run/__init__.py", line 118, in execute
          self.run_tests()
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/run/__init__.py", line 176, in run_tests
          suites = self._get_suites()
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/run/__init__.py", line 260, in _get_suites
          return suitesconfig.get_suites(config.SUITE_FILES, config.TEST_FILES)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/suitesconfig.py", line 99, in get_suites
          suite = _suite.Suite(suite_filename, suite_config)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/testing/suite.py", line 74, in __init__
          self.tests, self.excluded = self._get_tests_for_kind(self.test_kind)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/testing/suite.py", line 105, in _get_tests_for_kind
          return _selector.filter_tests(test_kind, selector_config)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/selector.py", line 728, in filter_tests
          return selector.select(selector_config)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/selector.py", line 580, in select
          return _Selector.select(self, selector_config)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/selector.py", line 428, in select
          test_list = _TestList(self._test_file_explorer, roots, self._tests_are_files)
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/selector.py", line 154, in __init__
          self._roots = self._expand_files(roots) if tests_are_files else roots
        File "/DATA1/data/2/mongo/buildscripts/resmokelib/selector.py", line 164, in _expand_files
          raise ValueError("Unrecognized test file: {}".format(test))
      ValueError: Unrecognized test file: build/install/bin/base_test\nbuild/install/bin/bson_mutable_test\nbuild/install/bin/bson_util_test\nbuild/install/bin/bson_test\nbuild/install/bin/topology_description_test\nbuild/install/bin/server_description_test\nbuild/install/bin/topology_manager_test\nbuild/install/bin/server_selector_test\nbuild/install/bin/topology_state_machine_test\nbuild/install/bin/client_test\nbuild/install/bin/client_rs_test\nbuild/install/bin/crypto_test\nbuild/install/bin/db_auth_test\nbuild/install/bin/db_bson_test\nbuild/install/bin/db_catalog_util_test\nbuild/install/bin/db_catalog_test\nbuild/install/bin/map_reduce_agg_test\nbuild/install/bin/command_mirroring_test\nbuild/install/bin/db_commands_test\nbuild/install/bin/db_concurrency_test\nbuild/install/bin/cst_test\nbuild/install/bin/db_sbe_test\nbuild/install/bin/db_exec_test\nbuild/install/bin/db_free_mon_test\nbuild/install/bin/db_fts_unicode_test\nbuild/install/bin/db_fts_test\nbuild/install/bin/db_ftdc_test\nbuild/install/bin/db_geo_test\nbuild/install/bin/db_index_test\nbuild/install/bin/db_matcher_test\nbuild/install/bin/db_ops_test\nbuild/install/bin/process_interface_test\nbuild/install/bin/db_pipeline_test\nbuild/install/bin/db_query_collation_test\nbuild/install/bin/query_datetime_test\nbuild/install/bin/db_query_test\nbuild/install/bin/db_repl_test\nbuild/install/bin/db_repl_coordinator_test\nbuild/install/bin/topology_version_observer_test\nbuild/install/bin/db_repl_cloners_test\nbuild/install/bin/db_s_shard_server_test\nbuild/install/bin/db_s_collection_sharding_runtime_test\nbuild/install/bin/db_s_transaction_coordinator_test\nbuild/install/bin/db_s_config_server_test\nbuild/install/bin/db_sorter_test\nbuild/install/bin/db_stats_test\nbuild/install/bin/storage_biggie_test\nbuild/install/bin/storage_ephemeral_for_test_test\nbuild/install/bin/storage_wiredtiger_test\nbuild/install/bin/storage_wiredtiger_record_store_and_index_test\nbuild/install/bin/storage_wiredtiger_prefixed_record_store_and_index_test\nbuild/install/bin/db_storage_test\nbuild/install/bin/db_update_test\nbuild/install/bin/db_views_test\nbuild/install/bin/client_out_of_line_executor_test\nbuild/install/bin/db_unittests\nbuild/install/bin/db_unittests_with_config_server_test_fixture\nbuild/install/bin/mongo_embedded_test\nbuild/install/bin/stitch_support_test\nbuild/install/bin/executor_test\nbuild/install/bin/idl_test\nbuild/install/bin/logger_test\nbuild/install/bin/logv2_test\nbuild/install/bin/platform_test\nbuild/install/bin/rpc_test\nbuild/install/bin/s_catalog_test\nbuild/install/bin/s_commands_test\nbuild/install/bin/s_query_test\nbuild/install/bin/s_test\nbuild/install/bin/scripting_test\nbuild/install/bin/shell_test\nbuild/install/bin/stdx_test\nbuild/install/bin/sigaltstack_location_test\nbuild/install/bin/set_terminate_dispatch_test\nbuild/install/bin/set_terminate_from_main_die_in_thread_test\nbuild/install/bin/set_terminate_from_thread_die_in_main_test\nbuild/install/bin/set_terminate_from_thread_die_in_thread_test\nbuild/install/bin/transport_test\nbuild/install/bin/unittest_test\nbuild/install/bin/util_concurrency_test\nbuild/install/bin/util_net_test\nbuild/install/bin/util_net_ssl_test\nbuild/install/bin/options_parser_test\nbuild/install/bin/thread_safety_context_test\nbuild/install/bin/util_test\nbuild/install/bin/stacktrace_libunwind_test\nbuild/install/bin/stacktrace_test\nbuild/install/bin/watchdog_test
      

        1. unittests.diff
          1 kB
          Daniel Moody

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: