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

Add the conflict message to display on the openQA page #18167

Merged
merged 1 commit into from Nov 29, 2023

Conversation

DeepthiYV
Copy link
Contributor

@DeepthiYV DeepthiYV commented Nov 20, 2023

Display the conflict message on the OpenQA web page whenever a conflict occurs during the installation.

Latest VRs:
https://openqa.suse.de/tests/12861755
https://openqa.suse.de/tests/12861756

@DeepthiYV DeepthiYV force-pushed the select_pattern_test branch 3 times, most recently from 65405e1 to 784b605 Compare November 21, 2023 09:13
my $file_tar = "/tmp/y2logs_select_patterns.tar.bz2";

select_console 'log-console';
script_run "save_y2logs $file_tar";
Copy link
Member

Choose a reason for hiding this comment

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

This should just be

sub post_fail_hook {
    my $self = shift;

    select_console 'log-console';
    my $ret = script_output('grep -E -m 1 "nothing provides" /var/log/YaST2/y2log', proceed_on_failure => 1);
    record_info("Conflict:", $ret, result => 'fail') if ($ret);
    $self->SUPER::post_fail_hook();
}

Or is there some other reason to first tar the logs and immediately extract them again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I missed it in this way of doing. Thanks for suggesting, and I have modified the code.

This should happen whenever a conflict occurs
sub post_fail_hook {
my $self = shift;

select_console 'log-console';
Copy link
Member

Choose a reason for hiding this comment

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

use serial console here instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Serial terminal isn't available during install. It will be available once installation/reboot done.

@foursixnine foursixnine merged commit a926953 into os-autoinst:master Nov 29, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants