Skip to content
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-1169] Add a log message to check if the user has a back up of their system #1235

Merged
merged 29 commits into from
Oct 25, 2024

Conversation

Andrew-ang9
Copy link
Contributor

@Andrew-ang9 Andrew-ang9 commented May 21, 2024

Add this log message into the analysis because the system could not roll back completely. So we should warn the user.

Jira Issues:

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • GitHub label has been added to help with Release notes
  • PR title explains the change from the user's point of view
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending if relevant

Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.59%. Comparing base (d603f04) to head (fe6fc06).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1235   +/-   ##
=======================================
  Coverage   96.59%   96.59%           
=======================================
  Files          71       71           
  Lines        5113     5117    +4     
  Branches      883      883           
=======================================
+ Hits         4939     4943    +4     
  Misses         98       98           
  Partials       76       76           
Flag Coverage Δ
centos-linux-7 92.07% <100.00%> (+<0.01%) ⬆️
centos-linux-8 92.94% <100.00%> (+<0.01%) ⬆️
centos-linux-9 93.05% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

convert2rhel/breadcrumbs.py Outdated Show resolved Hide resolved
@Andrew-ang9 Andrew-ang9 marked this pull request as draft May 30, 2024 14:43
@Andrew-ang9 Andrew-ang9 marked this pull request as ready for review June 4, 2024 03:26
@Andrew-ang9 Andrew-ang9 changed the title [RHELC-1522] Added the log message for the user to back up their system [RHELC-1522] Added a log message to check if the user has an back up their system Jun 4, 2024
@Andrew-ang9 Andrew-ang9 requested a review from r0x0d June 19, 2024 17:13
convert2rhel/breadcrumbs.py Outdated Show resolved Hide resolved
@Andrew-ang9 Andrew-ang9 marked this pull request as draft June 24, 2024 19:58
convert2rhel/unit_tests/breadcrumbs_test.py Fixed Show resolved Hide resolved
convert2rhel/unit_tests/breadcrumbs_test.py Fixed Show resolved Hide resolved
convert2rhel/unit_tests/breadcrumbs_test.py Fixed Show resolved Hide resolved
Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now. @Venefilyn regarding the ask to continue, should we have just 1 at that perform_boilerplate function, or we keep with two?

We will ask to continue after the data collection message, and with the addition from @Andrew-ang9, we will have a second one after that to confirm the backup.

What do you think?

@r0x0d r0x0d added the kind/feature New feature or request label Jun 26, 2024
@r0x0d
Copy link
Member

r0x0d commented Jun 26, 2024

Also, @Andrew-ang9, I think you have linked the wrong jira issue in this PR.

@Andrew-ang9 Andrew-ang9 changed the title [RHELC-1522] Added a log message to check if the user has an back up their system [RHELC-1169] Added a log message to check if the user has an back up their system Jul 1, 2024
@Andrew-ang9 Andrew-ang9 changed the title [RHELC-1169] Added a log message to check if the user has an back up their system [RHELC-1169] Add a log message to check if the user has an back up their system Jul 1, 2024
@Andrew-ang9 Andrew-ang9 changed the title [RHELC-1169] Add a log message to check if the user has an back up their system [RHELC-1169] Add a log message to check if the user has a back up of their system Jul 1, 2024
@Andrew-ang9 Andrew-ang9 force-pushed the confirm_system_backup branch 2 times, most recently from 8a400ca to 781fb31 Compare July 8, 2024 16:42
@Andrew-ang9 Andrew-ang9 marked this pull request as ready for review July 8, 2024 17:13
@Andrew-ang9 Andrew-ang9 force-pushed the confirm_system_backup branch 2 times, most recently from 28665c4 to 9ee6204 Compare July 8, 2024 21:17
* In the intergration tests there where two more tests that needed
  the extra input value "y" so that it would account for the new
  prompt
* there are a few more intergration tests that needed another input
  for the new check that was added
* added the extra propmts in test_basic_sanity_checks.py
  and test_assessment_report.py
* There was an extra c2r.expect line in the
  pre_registered_systems_conversions intergration test
* Added the input for the intergration test pre_registered_system_conversion
@Andrew-ang9
Copy link
Contributor Author

/packit test --labels tier0

@Andrew-ang9
Copy link
Contributor Author

/packit test --labels tier0

* This is just a test to try and see whats going on with the test
  Just to make sure that this test needs two prompts
@Andrew-ang9
Copy link
Contributor Author

/packit test --labels tier0

@Andrew-ang9
Copy link
Contributor Author

/packit test --labels tier0

@kokesak
Copy link
Member

kokesak commented Oct 24, 2024

This should be hopefully last test that still needs fixing - https://github.com/oamg/convert2rhel/blob/main/tests/integration/tier0/non-destructive/system-release-backup/test_system_release_backup.py#L90.

@Andrew-ang9
Copy link
Contributor Author

/packit test --labels tier0

Copy link
Member

@kokesak kokesak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side. The remaining failing tests are expected to fail now.

@r0x0d r0x0d merged commit 67d2f41 into oamg:main Oct 25, 2024
35 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants