Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHELC-1133] Fix colors in the text-based analysis log being reversed from what it should be #903

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

abadger
Copy link
Member

@abadger abadger commented Sep 6, 2023

convert2rhel.logger uses a boolean to tell whether to turn colors off while we were using a boolean to turn colors on in the assessment log. Made it so both turn colors off now.

Jira Issues: RHELC-1133

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • GitHub label has been added to help with Release notes
  • PR title explains the change from the user's point of view
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending if relevant

@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5b720b9) 94.01% compared to head (f625ac7) 94.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #903   +/-   ##
=======================================
  Coverage   94.01%   94.01%           
=======================================
  Files          41       41           
  Lines        4142     4142           
  Branches      737      737           
=======================================
  Hits         3894     3894           
  Misses        177      177           
  Partials       71       71           
Flag Coverage Δ
centos-linux-7 89.37% <100.00%> (ø)
centos-linux-8 89.95% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
convert2rhel/main.py 87.65% <ø> (ø)
convert2rhel/actions/report.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abadger abadger changed the title Fix colors in the text-based assessment log being reversed from what it should be. [RHELC-1133] Fix colors in the text-based assessment log being reversed from what it should be. Sep 6, 2023
@abadger abadger added kind/bug-fix A bug has been fixed tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. labels Sep 6, 2023
@has-bot
Copy link
Member

has-bot commented Sep 6, 2023

/packit test --labels tier0


@oamg/conversions-qe please review results and provide ack.

…it should be.

convert2rhel.logger uses a boolean to tell whether to turn colors *off* while we were using
a boolean to turn colors *on* in the assessment log.  Made it so both turn colors off now.
@abadger
Copy link
Member Author

abadger commented Sep 14, 2023

/packit build

Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple and straightforward change to me!

@abadger
Copy link
Member Author

abadger commented Sep 14, 2023

/packit test --labels tier0

@abadger
Copy link
Member Author

abadger commented Sep 14, 2023

/packit build

@abadger
Copy link
Member Author

abadger commented Sep 14, 2023

/packit test --labels tier0

@r0x0d
Copy link
Member

r0x0d commented Sep 28, 2023

/packit test --labels tier0

@abadger
Copy link
Member Author

abadger commented Sep 28, 2023

@danmyway Is this okay to merge or do you think it needs QE verification and therefore we shouldn't merge it until 1.6 or 1.7?

This was not noticed by customers but it affects the output of the assessment report (whether ANSI escape sequences for colors appear in the report or not).

Copy link
Member

@danmyway danmyway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abadger I apologize for the delay, I don't see any reason for blocking the merge. Let's do it.

@r0x0d r0x0d self-assigned this Oct 5, 2023
@r0x0d r0x0d merged commit 36eace4 into oamg:main Oct 5, 2023
20 of 24 checks passed
@bocekm bocekm changed the title [RHELC-1133] Fix colors in the text-based assessment log being reversed from what it should be. [RHELC-1133] Fix colors in the text-based analysis log being reversed from what it should be Oct 30, 2023
@bocekm bocekm mentioned this pull request Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix A bug has been fixed tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants