-
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
add external links to the leapp-report.txt #842
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.
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. |
/packit build |
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.
Works as expected. tested on several scenarios, IPU 7 -> 8 & 8 -> 9, including multiple external links in a report:
Risk Factor: high (inhibitor)
Title: Cannot perform the VDO check of block devices
Summary: [snip]
Related links:
- Importing existing VDO volumes to LVM: https://red.ht/import-existing-vdo-volumes-to-lvm
- yahuoo: https://red.ht/import-existing-vdo-volumes-to-lvm
- bungabungbainkaaa: https://red.ht/import-existing-vdo-volumes-to-lvmKey: 429a99e13b19a7eebadbb8cb35233d8119bcf255
Also tried behaviour with non-ascii characters, which in such a case it's broken on RHEL 7, but we do not have handled non-ascii characters correctly anyway in other fields (e.g. title). The only handled part of the report for non-ascii characters is now the remediation text. regarding that I am merging this anyway. As this is going to be the last RHEL 7 release, it is not worthy to spent time on that and the problem is not present on RHEL 8+.
if isinstance(remediation_text, six.binary_type): | ||
# This will be true for py2 where repr returns an encoded string | ||
remediation_text = remediation_text.decode('utf-8') | ||
detail += remediation_text |
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.
@PeterMocary this is wrong. shame on me I missed that
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.
Should be fixed by #844
The external links were only included in the
leapp-report.json
and its.txt
version was lacking this essential information. I didn't find any other problems regarding the information that is not included in one or the other format. Although the OAMG-9665 seems to be related to this. Do you think that it should be fixed in this PR as well?Jira: OAMG-8553