-
Notifications
You must be signed in to change notification settings - Fork 86
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-1291, RHELC-1292] Skip versionlock file in backup system actions #1233
Conversation
Versionlock file has been backed up and cleared before we run the backup action via a prepare_system() call in main.py, thus we should exclude it, so that we do not overwrite it with empty data.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1233 +/- ##
=======================================
Coverage 95.42% 95.42%
=======================================
Files 54 54
Lines 4702 4703 +1
Branches 830 830
=======================================
+ Hits 4487 4488 +1
Misses 132 132
Partials 83 83
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* validate the versionlock is detected in a second subsequent run of convert2rhel * validate the first run inhibits with returncode 2 for inhibitor, not 1 for rollback failure Signed-off-by: Daniel Diblik <ddiblik@redhat.com>
/packit test --labels tier1 |
Since the scope of the variable has now changed, we need to rename it, so that it is not shown as private.
/packit test --labels tier1 |
Just if you want, you can add |
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.
Depends on if you want to add the unit test, I think it might be useful to have it. Otherwise, looks good.
Please run |
/packit test --labels tier1 |
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.
Looks good, I believe we can merge
Versionlock file has been backed up and cleared before we run the backup action via a prepare_system() call in main.py, thus we should exclude it, so that we do not overwrite it with empty data.
Jira Issues:
Checklist
[RHELC-]
is part of the PR titleRelease Pending
if relevant