-
Notifications
You must be signed in to change notification settings - Fork 152
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
Move crypto-policies actors to common to execute it also in el9toel10 workflow #1337
base: main
Are you sure you want to change the base?
Conversation
Thank you for contributing to the Leapp project!Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable.
Packit will automatically schedule regression tests for this PR's build and latest upstream leapp build.
Note that first time contributors cannot run tests automatically - they need to be started by a reviewer. It is possible to schedule specific on-demand tests as well. Currently 2 test sets are supported,
See other labels for particular jobs defined in the Please open ticket in case you experience technical problem with the CI. (RH internal only) Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please contact leapp-infra. |
@Jakuje, you are the original author of this actor, can you take a quick look if moving it to common (from el8toel9) is done right? Compared to the original version I only made two changes:
|
You need also the which produces the CryptoPolicyInfo message you need here. |
Thanks Jakub, there's also model that needs to be moved. However, neither cryptopoliciescheck nor scancryptopolicies are applicable to el7toel8 update path. Hence I would have to disable the tests somehow there and maybe the cleaner way would actually be moving both cryptopoliciescheck and scrancryptopolicies (and all other related stuff) to el8toel9. Once RHEL-7 will go out of support we can move it common, it would make more sense at that point. |
23055fe
to
0e7b2ca
Compare
I just did that - instead of moving to common, I duplicated both cryptopoliciescheck and scancryptopolicies actors and their corresponding model to el9toel10, the only difference between their el8toel9 and el9toel10 version is the removal of documentation reference from el9toel10 version. If there is some nice way how to have them in common while disabling them and their tests for el7toel8 upgrade path I'll be happy to move them there. |
0e7b2ca
to
1a7977d
Compare
I think copying code is never way to go as it will make the maintainer to fix the bugs in two places, which is very error prone. I would rather have them in common + disable test with something like
|
There are two actors related to crypto-policies in el8toel9 and their corresponing models. They are still relevant for el9toel10 upgrade so moving to common. JIRA: RHEL-77169 Signed-off-by: Ondrej Moris <[email protected]>
1a7977d
to
6447709
Compare
Perfect, thanks @Jakuje, I greatly appreciate that! |
6447709
to
2bc3a5c
Compare
Signed-off-by: Jakub Jelen <[email protected]>
Even though it will never run on RHEL 7. This can be safely reverted after we will drop support for Python2 Signed-off-by: Jakub Jelen <[email protected]>
2bc3a5c
to
3e2b2e9
Compare
It turns out that cryptopoliciescheck is not only useful for el8toel9 upgrade path but also for any upgrade path where crypto-policies is present.
RHEL-77169