[SERVER-66613] Send binary version instead of evergreen version to symbolizer service Created: 20/May/22  Updated: 29/Oct/23  Resolved: 24/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.2, 6.1.0-rc0

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: DAG 2022-05-30
Participants:
Story Points: 2

 Description   

Debug symbols mapper sends ${version_id} evergreen expansion to symbolizer service to associate build ID with an evergreen version in order to distinguish patch versions, but it does not help with the mainline versions on the waterfall page.

In patches

-patch-${version_id}

is appended to mongodb build version:

6.1.0-alpha-653-gb5c35e9-patch-628612eb2fbabe0be7217803

But it's not the same with the mainline versions. Nothing is appended to it there:

6.1.0-alpha-558-gd3d37be

On the mainline the values of ${version_id} looks like this:

mongodb_mongo_master_1391cc6cdd8968ee8ce4336a0d566e76906efcc5

This values are not printed in backtraces, so it can't be used during the search of debug symbols.

To fix that mongodb build version could be sent instead:

$ mongod --version
 
db version v6.1.0-alpha-558-gd3d37be
Build Info: {
    "version": "6.1.0-alpha-558-gd3d37be",
    "gitVersion": "d3d37be21fdac8e773c30db8ba542bbf7d9f5f4f",
    "modules": [
        "enterprise"
    ],
    "allocator": "system",
    "environment": {
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

This value is printed in backtraces:

  • example from waterfall

    ... "processInfo":{"mongodbVersion":"6.1.0-alpha-675-g1391cc6" ...
    

  • example from patch

    ... "processInfo":{"mongodbVersion":"6.1.0-alpha-653-gb5c35e9-patch-628612eb2fbabe0be7217803" ...
    

This way mainline versions and patch versions can be distinguished correctly.



 Comments   
Comment by Githook User [ 23/Aug/22 ]

Author:

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

Message: SERVER-66613 Send binary version instead of evergreen version to symbolizer service

(cherry picked from commit c2f3bb6b7f263d91f9a5f212faec2417adadea97)
Branch: v6.0
https://github.com/mongodb/mongo/commit/f6e237006a85a670592763d5a13d61775261c7de

Comment by Githook User [ 23/May/22 ]

Author:

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

Message: SERVER-66613 Send binary version instead of evergreen version to symbolizer service
Branch: master
https://github.com/mongodb/mongo/commit/c2f3bb6b7f263d91f9a5f212faec2417adadea97

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