Operational Defect Database

BugZero found this defect 51 days ago.

MongoDB | 2626664

Make multiversion constants generation work on Windows 2022

Last update date:

3/29/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

This piece of resmoke code doesn't work as expected on Windows 2022 distro: https://github.com/10gen/mongo/blob/503c02cb557d6d1f815f04e809b6b3e176eed080/buildscripts/resmokelib/multiversionconstants.py#L83-L86 This patch shows that `git rev-parse --show-toplevel` and pythons `os.getcwd()` return different values (link to logs): [2024/03/29 16:43:02.805] Z:/data/mci/1fcbb7aa067e3b9f83c7d85a627324df/src [2024/03/29 16:43:02.805] C:/data/mci/1fcbb7aa067e3b9f83c7d85a627324df/src The output above are from these statements: print(check_output("git rev-parse --show-toplevel", shell=True, text=True).strip()) print(os.getcwd().replace("\\", "/"))

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...