test: Change color of skipped functional tests #24793

pull jacobpfickes wants to merge 1 commits into bitcoin:master from jacobpfickes:change_skipped_test_color changing 1 files +5 −5
  1. jacobpfickes commented at 10:02 pm on April 6, 2022: contributor

    changes the color of skipped functional tests (currently grey and can be hard to read/invisible on dark backgrounds) to yellow.

    resolves #24791

  2. DrahtBot added the label Tests on Apr 6, 2022
  3. jacobpfickes force-pushed on Apr 6, 2022
  4. 0xB10C commented at 7:38 am on April 7, 2022: member

    Thanks Jacob for picking this up!

    Reviewers should also read #24791. As mentioned there, we want to avoid having PRs changing the color every other month. Maybe removing the coloring of the skipped tests altogether is a alternative if this is too controversial or there are users for which this doesn’t work.

    For me, this change makes the output visible and readable.

    before: image

    with this PR: image

  5. laanwj renamed this:
    test: changes color of skipped functional tests
    test: Change color of skipped functional tests
    on Apr 7, 2022
  6. laanwj commented at 9:48 am on April 7, 2022: member

    look at the pretty colors !!!

    20220407_11h32m13s_grim

    No, I was skeptical but have to admit this is better. It’s a similar argument as with code comments, you don’t want an editor style that hides them. Black/grey is always a subdued color (at least on a dark-ish background). ACK 230e945cd029640a465b7c12371d732c18d6628d

  7. jacobpfickes force-pushed on Apr 7, 2022
  8. theStack commented at 3:56 pm on April 7, 2022: member

    Concept ACK

    And warm welcome as a new contributor! 🎉

  9. jacobpfickes force-pushed on Apr 7, 2022
  10. changes color of skipped functional tests
    Changes the color of skipped functional tests to the default text color of the terminal. This will make skipped tests easy to read on the majority of background colors rather than the original grey color (hard to read on dark backgrounds) and the proposed yellow change (hard to read on white backgrounds)
    3258bad996
  11. jacobpfickes force-pushed on Apr 7, 2022
  12. jacobpfickes commented at 4:19 pm on April 7, 2022: contributor
    As discussed in #24791 I pushed and squashed some new changes to use the default text color for skipped tests instead. The original color of grey was hard to view on dark backgrounds and the proposed change to yellow would be hard to view on light backgrounds but the default color should support most use cases.
  13. kristapsk commented at 6:51 pm on April 7, 2022: contributor

    With my terminal settings, before: image After: image

    Personally prefer old one, but, OTOH, NBD.

  14. brunoerg commented at 6:57 pm on April 7, 2022: member

    Results on my terminal:

    I think the white color stands out more than the others ones, I prefer the old one because that ‘color’ doesn’t stand out so much compared to the other colors (which is good since these tests were skipped).

  15. ayush933 commented at 12:36 pm on April 10, 2022: contributor

    Before: image

    After: image

    With the new colour scheme the skipped tests stand out more than the passed ones on my terminal so I prefer the old settings, but NBD.

  16. in test/functional/test_runner.py:65 in 3258bad996
    58@@ -59,10 +59,10 @@
    59         kernel32.SetConsoleMode(stderr, stderr_mode.value | ENABLE_VIRTUAL_TERMINAL_PROCESSING)
    60     # primitive formatting on supported
    61     # terminal via ANSI escape sequences:
    62+    DEFAULT = ('\033[0m', '\033[0m')
    63     BOLD = ('\033[0m', '\033[1m')
    64     GREEN = ('\033[0m', '\033[0;32m')
    65     RED = ('\033[0m', '\033[0;31m')
    66-    GREY = ('\033[0m', '\033[1;30m')
    


    laanwj commented at 6:29 pm on April 13, 2022:
    As said here, if we want to keep using dark grey, let’s at least use \033[0;90m instead of bold black, which doesn’t actually render as grey on many terminals.

    laanwj commented at 11:13 am on May 10, 2022:
    Merging this because it’s an improvement in at least this regard.
  17. laanwj commented at 6:30 pm on April 13, 2022: member
    I’m also fine with using the default color. That said, this is becoming a bikeshed-fest just as I expected.
  18. theStack approved
  19. theStack commented at 3:27 pm on April 18, 2022: member

    Tested ACK 3258bad996262792ba77573d6080dafa3952929c

    Personally I never had problems as on my terminal the original grey color is clearly visible, but considering that for some it isn’t (as seen in some of the screenshots posted) I think it makes sense to change to default color.

  20. jarolrod commented at 4:58 am on April 21, 2022: member

    Tested ACK https://github.com/bitcoin/bitcoin/commit/3258bad996262792ba77573d6080dafa3952929c

    To me, this is an improvement. Thanks for working on this, and welcome as a new contributor :)

  21. laanwj merged this on May 10, 2022
  22. laanwj closed this on May 10, 2022

  23. jacobpfickes deleted the branch on May 10, 2022
  24. sidhujag referenced this in commit f5556dd9bd on May 10, 2022
  25. DrahtBot locked this on May 10, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-29 01:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me