Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14396

Investigate changes in SERVER-56362: Add macOS version to build info

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: manual, Server
    • Labels:
      None

      Description

      Description

      Downstream Change Summary

      This change adds additional info about the current running version of macOS (when on that platform) to the output of getBuildInfo()

      Description of Linked Ticket

      getBuildInfo() on a mac currently returns only `macOS` without specifics about the version. It would be able to detect quirks (such as TLS handling on 10.15+) during jstests, so add the version to the build info output.

       

      It appears we can use sysctlbyname to pull this information, something like:
       

      char buffer[64];
      size_t buffer_len = sizeof(buffer) - 1;
      sysctlbyname("kern.osproductversion", buffer, &buffer_len, nullptr, 0);
      buffer[buffer_len] = 0;
      

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrew.feierabend Andrew Feierabend
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Last commenter:
              Andrew Feierabend Andrew Feierabend
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                13 weeks ago
                Date of 1st Reply: