[SERVER-42575] compiling and running unittests should be a single task Created: 01/Aug/19  Updated: 29/Oct/23  Resolved: 16/Aug/19

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

Type: Improvement Priority: Major - P3
Reporter: David Bradford (Inactive) Assignee: Lydia Stepanek (Inactive)
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: DAG 2019-08-26
Participants:
Story Points: 2

 Description   

As part of SERVER-33963, the unittest tests were split up into 2 tasks, one to compile the unittests and one to run the unittests. They were also put in a task group with max hosts of 1 since in order to run the unittests, you need the artifacts generated by compiling them. However, task groups do not have a hard guarantee that later tasks will run on the same host as earlier task. For tasks that can share a setup, task groups work well for saving some time by sharing setup execution, but they provide inconsistent results when sharing artifacts between tasks.

We should switch the compile and run tasks back to be a single task, so that the unittest task can be more reliable.


As a Server Engineer,
I want compile unittest and run unittest to be in a single task,
So that it will not fail due to the tasks being run on different hosts.


AC:

  • compile unittests and run unittests run as a single task.


 Comments   
Comment by Githook User [ 04/Nov/19 ]

Author:

{'name': 'David Bradford', 'username': 'dbradf', 'email': 'david.bradford@mongodb.com'}

Message: SERVER-42575 compiling and running unittests should be a single task

(cherry picked from commit 9cad3bfc3324b050f8f85cfdd80e7f0c0c95c1a5)
(cherry picked from commit 75a5018fe51643004dbfdd0d79c07f17ba9a1aa7)
Branch: v4.0
https://github.com/mongodb/mongo/commit/06b5f43c3ff3d63499d15d411ff5ae851687fdc2

Comment by Githook User [ 04/Nov/19 ]

Author:

{'name': 'David Bradford', 'username': 'dbradf', 'email': 'david.bradford@mongodb.com'}

Message: SERVER-42575 compiling and running unittests should be a single task

(cherry picked from commit 9cad3bfc3324b050f8f85cfdd80e7f0c0c95c1a5)
Branch: v4.2
https://github.com/mongodb/mongo/commit/75a5018fe51643004dbfdd0d79c07f17ba9a1aa7

Comment by Githook User [ 16/Aug/19 ]

Author:

{'username': 'lydiastepanek', 'email': 'lydia.stepanek@mongodb.com', 'name': 'Lydia Stepanek'}

Message: SERVER-42575 compiling and running unittests should be a single task
Branch: master
https://github.com/mongodb/mongo/commit/9cad3bfc3324b050f8f85cfdd80e7f0c0c95c1a5

Comment by Lydia Stepanek (Inactive) [ 15/Aug/19 ]

https://mongodbcr.appspot.com/490400001/

Comment by David Bradford (Inactive) [ 05/Aug/19 ]

We should also do this for dbtest, which has the same problem.

Comment by David Bradford (Inactive) [ 01/Aug/19 ]

CC cristopher.stauffer max.hirschhorn brian.samek acm

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