-
Notifications
You must be signed in to change notification settings - Fork 84
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-1331] Port post_ponr_set_efi_configuration() to Action framework #1256
[RHELC-1331] Port post_ponr_set_efi_configuration() to Action framework #1256
Conversation
eb501b7
to
0a90d52
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1256 +/- ##
==========================================
+ Coverage 96.19% 96.30% +0.11%
==========================================
Files 58 59 +1
Lines 4831 4872 +41
Branches 848 858 +10
==========================================
+ Hits 4647 4692 +45
+ Misses 106 103 -3
+ Partials 78 77 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments, otherwise, looks good.
convert2rhel/unit_tests/actions/conversion/set_efi_config_test.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/conversion/set_efi_config_test.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/conversion/set_efi_config_test.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/conversion/set_efi_config_test.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/conversion/set_efi_config_test.py
Outdated
Show resolved
Hide resolved
216487d
to
773197a
Compare
84b3f58
to
3599a04
Compare
convert2rhel/unit_tests/actions/conversion/set_efi_config_test.py
Outdated
Show resolved
Hide resolved
/packit test --labels sanity |
@pr-watson, please squash the commits |
8ad4537
to
d0bd3df
Compare
d0bd3df
to
1b10818
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the Message ID guidelines I setup in the docs, can you come up with something else for the message IDs? If it's difficult or you feel like there is a better way to do message IDs just suggest it in the chat or update the wiki (and let us know)
https://github.com/oamg/convert2rhel/wiki/Action-Framework#message-ids
I also didn't go through all the set_message()
actions as I'm just wondering now what the audience for it is.
@oamg/convert2rhel-developers is the intention for the action messages that are displayed in Insights and others to be for readability where novice developer or sysadmins can easily know what to do without prior knowledge or something else? If that is the case we should really be improving the titles, messages, diagnosis, and remediations to be more readable
974cf4b
to
d3a4d17
Compare
Without this dependency, the action can run before the package conversion in the system. Ideally, we want this to run after the `KERNEL_PACKAGES_INSTALLATION`, as it is no use to have this run before the package replacement. Pointed out by @hosekadam in oamg#1256 (comment)
/packit build |
2eb0b7d
to
a6a001e
Compare
/packit build |
1 similar comment
/packit build |
a6a001e
to
6b7b62c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look good from QE POV
logger.info("Moving '%s' to '%s'" % (src_file, dst_file)) | ||
|
||
try: | ||
shutil.move(src_file, dst_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking if we shouldn't go back to the copy2
, since it doesn't make a big difference (the /boot/efi/EFI/centos
won't be removed) and as we discussed here #1256 (comment) we can refactor this later and for now we should be closer to the original code.
If we decide to move, sorry Preston for an extra work you had with my ideas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will move tihs back to copy2 and rebaes the PR. Don't worry @pr-watson
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we're sticking with move
, it's a good addition
/packit build |
32faa2d
to
ea8cd1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge after the required actions passes
ea8cd1e
to
6fe3946
Compare
rhel 7 rpm not being built is not a PR problem. It is happening in other PRs as well. |
Without this dependency, the action can run before the package conversion in the system. Ideally, we want this to run after the `KERNEL_PACKAGES_INSTALLATION`, as it is no use to have this run before the package replacement. Pointed out by @hosekadam in #1256 (comment)
This PR ports the post_ponr_set_efi_configuration function to the action framework. Changing any relevant logger crictical, warning and info messages to Error results and Warning and Info messages respectively.
Jira Issues:
Checklist
[RHELC-]
or[HMS-]
is part of the PR titleRelease Pending
if relevant