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

Resmoke find-suites must work even in absence of "build/libfuzzer_tests.txt"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      STM 2021-10-18
    • Story Points:
      0

      Description

      After cleaning the build directory and recompiling, the following error is returned upon trying to find the suites a js test is executed in: No such file or directory: 'build/libfuzzer_tests.txt'.

      A temporary workaround can be creating that empty file.

      $ ./buildscripts/resmoke.py find-suites jstests/sharding/auth_add_shard.js
      Traceback (most recent call last):
        File "./buildscripts/resmoke.py", line 14, in <module>
          cli.main(sys.argv)
        File "/home/ubuntu/mongo/buildscripts/resmokelib/cli.py", line 21, in main
          subcommand.execute()
        File "/home/ubuntu/mongo/buildscripts/resmokelib/run/__init__.py", line 123, in execute
          self.find_suites()
        File "/home/ubuntu/mongo/buildscripts/resmokelib/run/__init__.py", line 147, in find_suites
          suites_by_test = self._find_suites_by_test(suites)
        File "/home/ubuntu/mongo/buildscripts/resmokelib/run/__init__.py", line 199, in _find_suites_by_test
          test_membership = suitesconfig.create_test_membership_map()
        File "/home/ubuntu/mongo/buildscripts/resmokelib/suitesconfig.py", line 82, in create_test_membership_map
          for testfile in suite.tests:
        File "/home/ubuntu/mongo/buildscripts/resmokelib/testing/suite.py", line 100, in tests
          self._tests, self._excluded = self._get_tests_for_kind(self.test_kind)
        File "/home/ubuntu/mongo/buildscripts/resmokelib/testing/suite.py", line 122, in _get_tests_for_kind
          return _selector.filter_tests(test_kind, selector_config)
        File "/home/ubuntu/mongo/buildscripts/resmokelib/selector.py", line 751, in filter_tests
          return selector.select(selector_config)
        File "/home/ubuntu/mongo/buildscripts/resmokelib/selector.py", line 602, in select
          return _Selector.select(self, selector_config)
        File "/home/ubuntu/mongo/buildscripts/resmokelib/selector.py", line 442, in select
          roots = self._test_file_explorer.read_root_file(selector_config.root)
        File "/home/ubuntu/mongo/buildscripts/resmokelib/selector.py", line 71, in read_root_file
          with open(root_file_path, "r") as filep:
      FileNotFoundError: [Errno 2] No such file or directory: 'build/libfuzzer_tests.txt'
      

        Attachments

          Activity

            People

            Assignee:
            robert.guo Robert Guo
            Reporter:
            pierlauro.sciarelli Pierlauro Sciarelli
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: