[SERVER-27421] Parallel test suites should pick up tests in subdirectories of jstests/core Created: 14/Dec/16  Updated: 05/Apr/17  Resolved: 06/Jan/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.2

Type: Improvement Priority: Major - P3
Reporter: Kyle Suarez Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-27641 views_coll_stats.js should use its ow... Closed
Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-01-02
Participants:

 Description   

As a part of SERVER-26765, jscore passthrough suites were updated to handle tests in subdirectories of jstests/core. However, parallelTester.js does not pick up these tests because it does not recurse into subdirectories.

listFiles("jstests/core").filter(info => info.name.indexOf("views") >= 0);
[
    {
        "name" : "jstests/core/list_collections_no_views.js",
        "baseName" : "list_collections_no_views.js",
        "isDirectory" : false,
        "size" : 4278
    },
    {
        "name" : "jstests/core/views",
        "baseName" : "views",
        "isDirectory" : true
    }
]



 Comments   
Comment by Githook User [ 06/Jan/17 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-27421 Parallel test suites should pick up tests in subdirectories of jstests/core
Branch: master
https://github.com/mongodb/mongo/commit/c8d0e9352718e9477dc9113e4c44a7a4aa314e5c

Comment by Jonathan Abrahams [ 04/Jan/17 ]

There are a few challenges here with including the "views" directory in jstests/core for parallel tests:

  • Tests that uses tags (i.e., the requires_find_command tag) are not enforced and will need special logic to be excluded
  • Additional files may need to blacklisted, i.e., invalid_system_views.js
Generated at Thu Feb 08 04:15:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.