-
Notifications
You must be signed in to change notification settings - Fork 70
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
Dialog creation fails for a Component without choices #826
Conversation
choices is not an attribute of Component only of some its subclasses Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
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.
To launch regression testing public members of oamg organization can leave the following comment:
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 consider rerunning the CI by commenting leapp-ci build (might require several comments). If the problem persists, contact leapp-infra. |
review please @oamg/developers |
@ygalblum thank you for the contribution! can you elaborate more on problems that the previous solution created? I mean, regarding the code it seems you hit some tracebacks, but I am curious what was the trigger actually as we haven't seen any so far. @fernflower can you take a look? |
You can see the dialog I created here: https://github.com/ygalblum/leapp-supplements/blob/veritas-infoscale/repos/system_upgrade_supplements/el7toel8/actors/veritasinstallerpathfinder/actor.py#L19 Since From a quick search I did, I couldn't find any actors that use the |
Yeah, this very well might be the case as we are not using TextComponents. Could you please cover the failure with a unit test? It would really give us some peace of mind :) |
Please see the second commit |
Add a multi component dialog to one of the tester actors Verify that the input is handled correctly Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
bce420b
to
f5e9371
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.
lgtm, thank you for the contribution!
Scheduling regression tests
/rerun |
Copr build succeeded: https://copr.fedorainfracloud.org/coprs/build/5900200 |
Testing Farm request for RHEL-8.6-rhui/5886104;5900200 regression testing has been created. |
Testing Farm request for RHEL-7.9-rhui/5886104;5900200 regression testing has been created. |
Testing Farm request for RHEL-8.6.0-Nightly/5886104;5900200 regression testing has been created. |
Testing Farm request for RHEL-8.8.0-Nightly/5886104;5900200 regression testing has been created. |
Testing Farm request for RHEL-7.9-ZStream/5886104;5900200 regression testing has been created. |
Testing Farm request for RHEL-7.9-ZStream/5886104;5900200 regression testing has been created. |
## Packaging - Provide leapp-framework 5.0 (oamg#818, oamg#840) ## Framework ### Fixes - Improve processing of reports with UTF-8 characters (oamg#821, oamg#828) - Fix info reporting with only one path to log (oamg#834) ### Enhancements - Include tracebacks of actors into the leapp.db (oamg#832) ## Leapp (tool) ### Fixes - Dialog creation fails not more for a component without choices (oamg#826) - Empty report is generated correctly (oamg#828) - Fix processing data in remediation instructions with non-ascii characters () ### Enhancements - Improve report summary output to make it more visible (oamg#818, oamg#840) ## stdlib ### Fixes - Fixed the call when the execute cannot be performed (oamg#836) ### Enhancements - changes related just to stdlib - under leapp/libraries/stdlib
## Packaging - Provide leapp-framework 5.0 (oamg#818, oamg#840) ## Framework ### Fixes - Improve processing of reports with UTF-8 characters (oamg#821, oamg#828) - Fix info reporting with only one path to log (oamg#834) ### Enhancements - Include tracebacks of actors into the leapp.db (oamg#832) ## Leapp (tool) ### Fixes - Dialog creation fails not more for a component without choices (oamg#826) - Empty report is generated correctly (oamg#828) - Fix processing data in remediation instructions with non-ascii characters () ### Enhancements - Improve report summary output to make it more visible (oamg#818, oamg#840) ## stdlib ### Fixes - Fixed the call when the execute cannot be performed (oamg#836) ### Enhancements - changes related just to stdlib - under leapp/libraries/stdlib
## Packaging - Provide leapp-framework 5.0 (#818, #840) ## Framework ### Fixes - Improve processing of reports with UTF-8 characters (#821, #828) - Fix info reporting with only one path to log (#834) ### Enhancements - Include tracebacks of actors into the leapp.db (#832) ## Leapp (tool) ### Fixes - Dialog creation fails not more for a component without choices (#826) - Empty report is generated correctly (#828) - Fix processing data in remediation instructions with non-ascii characters () ### Enhancements - Improve report summary output to make it more visible (#818, #840) ## stdlib ### Fixes - Fixed the call when the execute cannot be performed (#836) ### Enhancements - changes related just to stdlib - under leapp/libraries/stdlib
choices
is not an attribute ofComponent
only of some of its subclasses