[SERVER-60416] Resmoke find-suites must work even in absence of "build/libfuzzer_tests.txt" Created: 04/Oct/21  Updated: 29/Oct/23  Resolved: 05/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: STM 2021-10-18
Participants:
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'



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 04/Oct/21 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@mongodb.com'}

Message: SERVER-60416 find-suites must work with incomplete suite-test mappings
Branch: master
https://github.com/mongodb/mongo/commit/03954089313c9c35c2dd9b426acf97c225839d36

Generated at Thu Feb 08 05:49:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.