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

Automatically save a solver test case (related to bsc#1084248) #94

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

lslezak
Copy link
Member

@lslezak lslezak commented Mar 8, 2018

When the product summary contains a warning save the solver test case for easier debugging. It will be included in the logs collected by save_y2logs script.

...when the product summary contains a warning for easier debugging

- 4.0.10
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 15.657% when pulling e5b71de on more_logging into 2565bbd on master.

@@ -213,6 +213,8 @@ def main
@ret["warning"] = @warning_message
@ret["warning_level"] = product_warning["warning_level"] || :warning
end
# save the solver test case with details for later debugging
Pkg.CreateSolverTestCase("/var/log/YaST2/solver-upgrade-proposal") if @ret["warning"]
Copy link
Member

Choose a reason for hiding this comment

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

do you test if save_y2logs will include it and also that after upgrade it will be copied to system?

Copy link
Member Author

@lslezak lslezak Mar 8, 2018

Choose a reason for hiding this comment

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

Yes, save_y2logs saves that, I have verified that.

But I haven't checked whether it's copied to /mnt, but if you are able to finish the upgrade then that means you were somehow able to solve the dependency issues in the end.

I'll check it later when doing some real migration, we can fix that later if needed...

@lslezak lslezak merged commit 57159cc into master Mar 8, 2018
@lslezak lslezak deleted the more_logging branch March 8, 2018 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants