Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12200

Ninja build output inappropriately colourised

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • WT11.3.0, 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Engines
    • 3

      WT-7834 was a big improvement, but there are still some situations where the build output is inappropriately colourised.

      The problem appears to be that Ninja runs GCC (or Clang) while doing some form of stdout redirection, so the usual check of "stdout is a tty" will always fail, and the compiler's "automatic colour" mode will never colourise output.

      So WT-7834's fix is appropriate until you need to copy/paste raw text from evergreen, when you get a bunch of ANSI escapes in the copied text.

      I think this can be worked around by checking whether stdout is a tty as part of our CMake configuration, and setting the colourisation flags there.

            Assignee:
            mariam.mojid@mongodb.com Mariam Mojid (Inactive)
            Reporter:
            will.korteland@mongodb.com Will Korteland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: