[SERVER-50852] BF Day - Hang analyzer's "interesting processes" pattern for C++ unit tests doesn't match db_unittests Created: 10/Sep/20  Updated: 29/Oct/23  Resolved: 16/Oct/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.2

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Mikhail Shchatko
Resolution: Fixed Votes: 0
Labels: tig-hanganalyzer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-42948 rename db_test to something better Closed
is related to SERVER-51692 Lint C++ unit test binary name to end... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: STM 2020-11-02
Participants:
Linked BF Score: 0

 Description   

https://evergreen.mongodb.com/task/mongodb_mongo_master_ubuntu1804_debug_aubsan_lite_unittests_f825465df95a1e663f65c149b2fe6412778372eb_20_09_02_03_18_47/0 was a case where the hang analyzer didn't attach to the db_unittests process. I believe this is due to "_test" being expected in the name for C++ unit test binaries. db_unittests doesn't follow that pattern.

[2020/09/02 06:23:54.553] Found 6 interesting processes [Pinfo(name='python', pidv=[112179, 112216]), Pinfo(name='python3', pidv=[992, 1345, 77793, 85627])]

[2020/09/02 06:23:25.913] ubuntu   112216  0.2  0.1 1426148 91488 ?       Sl   04:19   0:16 python buildscripts/resmoke.py run --suites=unittests --jobs=5 --shuffle --continueOnFailure --storageEngineCacheSizeGB=1 --log=buildlogger --staggerJobs=on --installDir=dist-test/bin --buildId=mongodb_mongo_master_ubuntu1804_debug_aubsan_lite_f825465df95a1e663f65c149b2fe6412778372eb_20_09_02_03_18_47 --distroId=ubuntu1804-large --executionNumber=0 --projectName=mongodb-mongo-master --gitRevision=f825465df95a1e663f65c149b2fe6412778372eb --revisionOrderId=34077 --taskId=mongodb_mongo_master_ubuntu1804_debug_aubsan_lite_unittests_f825465df95a1e663f65c149b2fe6412778372eb_20_09_02_03_18_47 --taskName=unittests --variantName=ubuntu1804-debug-aubsan-lite --versionId=mongodb_mongo_master_f825465df95a1e663f65c149b2fe6412778372eb --reportFile=report.json --perfReportFile=perf.json
[2020/09/02 06:23:25.913] ubuntu   125375  0.9  1.6 21475766348 1110092 ? S    04:20   1:10 build/install/bin/db_unittests



 Comments   
Comment by Githook User [ 12/Nov/20 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-51692 Add linting check for unittest names

We discovered in SERVER-50852 that when unit test binary names do not
end with "_test" it can cause problems with the hang check analyzer. To
prevent such occurrences in the future, all CppUnitTest targets must
will be checked to ensure they are named correctly.
Branch: master
https://github.com/mongodb/mongo/commit/96ffd109258a2495cde69d984a34116933928f45

Comment by Githook User [ 16/Oct/20 ]

Author:

{'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com'}

Message: SERVER-50852 Rename to follow *_test pattern
Branch: v4.4
https://github.com/mongodb/mongo/commit/857e5a3a1cd18a8779a31a8170cd68abb50a0744

Comment by Githook User [ 16/Oct/20 ]

Author:

{'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com'}

Message: SERVER-50852 Rename to follow *_test pattern
Branch: master
https://github.com/mongodb/mongo/commit/1e68617f9f9716d9235086ee8967bf597d5f6199

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