[SERVER-21796] fix startup_log.js test to handle git describe versioning Created: 08/Dec/15  Updated: 22/Nov/16  Resolved: 09/Dec/15

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.2.1, 3.3.0

Type: Bug Priority: Major - P3
Reporter: Jonathan Reams Assignee: Jonathan Reams
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-21224 Use "git describe" instead of version... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Build D (12/11/15)
Participants:

 Description   

When we started using git describe to get version numbers, we had to adjust the contents of versionArray in the buildInfo command to generate a "pre" version, so "3.2.0-1-ghash" becomes [ 3, 2, 1, -100 ]. In startup_log.js, we should decrement versionArray[2] if versionArray[3] is equal to -100.



 Comments   
Comment by Githook User [ 09/Dec/15 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-21796 fix startup_log.js for new versioning scheme

(cherry picked from commit 8aaaa8fe56cd4ffe7642ceaf4c45453b7431a18b)
Branch: v3.2
https://github.com/mongodb/mongo/commit/886453786cf9a4a0289e5d8f49e47a1368da8720

Comment by Jonathan Reams [ 09/Dec/15 ]

ramon.fernandez, is this okay to backport? It's breaking jsCore in 3.2.

Comment by David Storch [ 09/Dec/15 ]

jonathan.reams, startup_log.js is also failing on the 3.2 branch, so we need to backport a fix as well.

Comment by Githook User [ 08/Dec/15 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-21796 fix startup_log.js for new versioning scheme
Branch: master
https://github.com/mongodb/mongo/commit/8aaaa8fe56cd4ffe7642ceaf4c45453b7431a18b

Generated at Thu Feb 08 03:58:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.