[SERVER-58283] Add a new versioning file to set MONGO_VERSION and MONGO_GIT_HASH Created: 06/Jul/21  Updated: 29/Oct/23  Resolved: 09/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.16, 4.4.8, 5.0.2, 4.0.27, 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Xuerui Fa Assignee: Andrew Morrow (Inactive)
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
Backport Requested:
v5.0, v4.4, v4.2, v4.0
Sprint: Dev Platform 2021-07-12
Participants:

 Description   

Write a new variables file called "etc/scons/developer_versioning.vars" that sets MONGO_VERSION using the latest git tag and MONGO_GIT_HASH with some string constant. It may look something like this:

import os
import subprocess
 
def short_describe():
import os
import subprocess
with open(os.devnull, "r+") as devnull:
proc = subprocess.Popen("git describe --abbrev=0",
stdout=subprocess.PIPE,
stderr=devnull,
stdin=devnull,
shell=True)
return proc.communicate()[0].decode('utf-8').strip()[1:]
 
MONGO_GIT_HASH="unknown"
MONGO_VERSION=short_describe()



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 20/Jul/21 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-58283 Add a variables file for configuring developer style MONGO_VERSION values

(cherry picked from commit dc0b308cfc2014e4f3b655aca7d296263c0592c9)
(cherry picked from commit 522024f39b5bc1a4f5a7b49306d20b10bf87fe80)
(cherry picked from commit 58cb09ed37fdcbf55b405d8fb17742bdd901e99d)
(cherry picked from commit 5eb50768263b16d34768772b08e0d8641e83aa80)
Branch: v4.0
https://github.com/mongodb/mongo/commit/2ee3612cf4476a17ce78c05dc1adfcc9153d716a

Comment by Githook User [ 20/Jul/21 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-58283 Add a variables file for configuring developer style MONGO_VERSION values

(cherry picked from commit dc0b308cfc2014e4f3b655aca7d296263c0592c9)
(cherry picked from commit 522024f39b5bc1a4f5a7b49306d20b10bf87fe80)
(cherry picked from commit 58cb09ed37fdcbf55b405d8fb17742bdd901e99d)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5eb50768263b16d34768772b08e0d8641e83aa80

Comment by Githook User [ 20/Jul/21 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-58283 Add a variables file for configuring developer style MONGO_VERSION values

(cherry picked from commit dc0b308cfc2014e4f3b655aca7d296263c0592c9)
(cherry picked from commit 522024f39b5bc1a4f5a7b49306d20b10bf87fe80)
Branch: v4.4
https://github.com/mongodb/mongo/commit/58cb09ed37fdcbf55b405d8fb17742bdd901e99d

Comment by Githook User [ 20/Jul/21 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-58283 Add a variables file for configuring developer style MONGO_VERSION values

(cherry picked from commit dc0b308cfc2014e4f3b655aca7d296263c0592c9)
Branch: v5.0
https://github.com/mongodb/mongo/commit/522024f39b5bc1a4f5a7b49306d20b10bf87fe80

Comment by Githook User [ 09/Jul/21 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-58283 Add a variables file for configuring developer style MONGO_VERSION values
Branch: master
https://github.com/mongodb/mongo/commit/dc0b308cfc2014e4f3b655aca7d296263c0592c9

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