Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-88763

Make multiversion constants generation work on Windows 2022

    • Correctness
    • Fully Compatible
    • ALL
    • v8.0

      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("\\", "/"))
      

            Assignee:
            trevor.guidry@mongodb.com Trevor Guidry
            Reporter:
            mikhail.shchatko@mongodb.com Mikhail Shchatko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: