-
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-1174] Update remediation key to match leapp report metadata #949
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #949 +/- ##
=======================================
Coverage 94.32% 94.32%
=======================================
Files 47 47
Lines 4549 4549
Branches 810 810
=======================================
Hits 4291 4291
Misses 182 182
Partials 76 76
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/packit test --labels sanity |
With the convert2rhel PR oamg/convert2rhel#949 to update their report to use the word "remediations" instead of "remediation", we had to update our script to match the same change, but in case that there is some legacy convert2rhel running that is still in the 1.4/1.5 release, we need to take care of the "remediation" keyword. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
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.
Changes look good to me
With the convert2rhel PR oamg/convert2rhel#949 to update their report to use the word "remediations" instead of "remediation", we had to update our script to match the same change, but in case that there is some legacy convert2rhel running that is still in the 1.4/1.5 release, we need to take care of the "remediation" keyword. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
aa2e6d5
to
621959a
Compare
With the convert2rhel PR oamg/convert2rhel#949 to update their report to use the word "remediations" instead of "remediation", we had to update our script to match the same change, but in case that there is some legacy convert2rhel running that is still in the 1.4/1.5 release, we need to take care of the "remediation" keyword. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
0df33e7
to
5fdda67
Compare
Needs a quick rebase, doesn't hurt to check if there are any leftover |
gotcha. doing it right now |
5fdda67
to
7a3ea70
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.
Needs another rebase due to PRs I merged today
Will do it today. |
7a3ea70
to
7d27818
Compare
Done the rebase, @SpyTec. |
7d27818
to
75128bb
Compare
75128bb
to
c944ae0
Compare
c944ae0
to
9f4f739
Compare
/packit test --labels sanity |
1 similar comment
/packit test --labels sanity |
Some leftovers
|
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.
We need a new schema version. The latest one (https://github.com/oamg/convert2rhel/blob/main/schemas/assessment-schema-1.1.json) has remediation
a it needs to have remediations
.
Will work on this as soon as possible! |
The remediation key was singular in our report, and leapp one is in plural. We are matching the key in our report to remove this workaround from the pre-conversion script that is executed with the rhc-worker-script. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> Update remediation key in actions and tests Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> Update more remediation keys Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> Update remaining remediation keys Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> Fix keys in leftover files after rebase Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
9f4f739
to
0fa9277
Compare
/packit test --labels sanity |
1 similar comment
/packit test --labels sanity |
@r0x0d changes look good, just made one suggestion |
Co-authored-by: Preston Watson <prwatson@redhat.com>
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.
Schema diff LGTM, just one change needed
92c92
< "remediation": {
---
> "remediations": {
105c105
< "required": ["title", "description", "diagnosis", "id", "remediation", "variables"]
---
> "required": ["title", "description", "diagnosis", "id", "remediations", "variables"]
Co-authored-by: E Gustavsson <eric@spytec.se>
/packit test --labels sanity |
Merging once sanity tests are green enough -- won't be for 7 or Alma 8 atm due to infra and Alma changes |
The remediation key was singular in our report, and leapp one is in plural. We are matching the key in our report to remove this workaround from the pre-conversion script that is executed with the rhc-worker-script.
Jira Issues: RHELC-1174
Checklist
[RHELC-]
is part of the PR titleRelease Pending
if relevant