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

Colorize testy output for improved readability

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 2023-02-23 "Stoney Baloney"
    • 3

      The commands in the fabfile can produce a fair amount of output, for example, when performing GitHub actions or building WiredTiger. This output is of value to the user, so we don 't want to suppress it, but at the same time would like an easy way to distinguish the fab command output from other tasks.

      This ticket is to investigate updating the fabfile to colorize output, and implement it if it seems reasonable and beneficial to do so. There are several packages in python to do this, such as colorama and termcolor.

      Ideally, we would create a collection of wrapper functions for significant output messages, e.g.

      from colorama import Fore, Style
      
      def testy_success(msg):
        print(Fore.CYAN + msg)
        print(Style.RESET_ALL)
      
      def testy_failure(msg):
         print(Fore.RED + msg) 
         print(Style.RESET_ALL)
      
      def testy_exit(msg):
         print(Style.BRIGHT + Fore.MAGENTA + msg) 
         print(Style.RESET_ALL)
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            tammy.bailey@mongodb.com Tammy Bailey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: