[RHELC-1761] Format messages for consistency#1438
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1438 +/- ##
==========================================
+ Coverage 96.17% 96.35% +0.17%
==========================================
Files 73 73
Lines 5309 5317 +8
Branches 922 923 +1
==========================================
+ Hits 5106 5123 +17
+ Misses 120 116 -4
+ Partials 83 78 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5457d34 to
1fd0e5b
Compare
|
Lots of merge conflicts now 😬 |
hosekadam
left a comment
There was a problem hiding this comment.
Some minor comments, but overall looks good
e5b5f5c to
c2c5673
Compare
|
Conflicts resolved. |
adc6f72 to
6bd4220
Compare
6bd4220 to
dbce386
Compare
|
@hosekadam, @Venefilyn, @danmyway, ready for review. |
dbce386 to
d0fd418
Compare
60e471d to
4846937
Compare
|
/packit test |
| loggerinst.task("List remaining non-Red Hat packages") | ||
|
|
||
| loggerinst.info("Listing packages not signed by Red Hat") | ||
| loggerinst.info("Listing packages not signed by Red Hat.") |
There was a problem hiding this comment.
This will be unique as most don't have a dot in them, but definitely more valid with a dot than without. Just an FYI
There was a problem hiding this comment.
Most info messages had a full stop. For consistency I've added the full stop to all of them (and to other levels such as debug or critical as well).
| level="INFO", | ||
| id="SKIPPED_MODIFIED_RPM_FILES_DIFF", | ||
| title="Skipped comparison of 'rpm -Va' output from before and after the conversion.", | ||
| title="Skipped comparison of 'rpm -Va' output from before and after the conversion", |
There was a problem hiding this comment.
This is intentional. It's one of the goals of the PR - to remove full stops from message titles for consistency. Most titles didn't have it, so I opted for removing them from all.
The message titles are printed this way:
(INFO) MODIFIED_RPM_FILES_DIFF::FOUND_MODIFIED_RPM_FILES - Modified rpm files from before and after the conversion were found
Description: ...
In Insights they are displayed in this fashion:

In both cases (CLI, Insights) it's more suitable to have the titles without full stops.
| """Back up redhat release file before starting conversion process""" | ||
| logger.task("Back up redhat-release files") | ||
|
|
There was a problem hiding this comment.
I would say Backup instead of back up. What is the Red Hat preferred word?
There was a problem hiding this comment.
Backup is a noun, back up is a verb.
"You are backing up a file and then you have a file backup."
4846937 to
97b635d
Compare
|
/packit test |
97b635d to
1d1061b
Compare
|
/packit test |
1d1061b to
63f5bbb
Compare
|
/packit test |
Venefilyn
left a comment
There was a problem hiding this comment.
LGTM! One small comment but fine to merge
dddca52 to
d1ead6c
Compare
|
/packit test |
2 similar comments
|
/packit test |
|
/packit test |
- no full stop at the end of a report message title - no word please (technical writers' rule) - boot loader => bootloader - fix typos - add missing context where messages are too short and vague - make TASK tense consistent - ensure each Action has a TASK level log message - ensure every Action prints what it's done - add unit tests to lines reported by caplog as uncovered
d1ead6c to
657a354
Compare
|
/packit test |
unique report message idsJira Issues:
Checklist
[RHELC-]or[HMS-]is part of the PR titleRelease Pendingif relevant