-
Notifications
You must be signed in to change notification settings - Fork 283
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
Fail CI check if 'record_soft_failure' without valid reference #15615
Fail CI check if 'record_soft_failure' without valid reference #15615
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files |
aa65ca4
to
7e7f589
Compare
7e7f589
to
5a02a16
Compare
@@ -602,7 +602,7 @@ sub cypress_exec { | |||
$self->result("fail"); | |||
} | |||
if ($failok) { | |||
record_soft_failure("Cypress exit code:$ret at $log_prefix") if ($ret); | |||
record_info('Softfail', "Cypress exit code:$ret at $log_prefix", result => 'softfail') if ($ret); |
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.
ok
@@ -36,7 +36,7 @@ sub add_softfail { | |||
my ($module, $os_version, $bsc_number, @parameters) = @_; | |||
foreach my $parameter (@parameters) { | |||
if (check_var("VERSION", $os_version) && check_failure($module, $parameter)) { | |||
record_soft_failure "$bsc_number - Wrong value for $parameter"; | |||
record_info('Softfail', "$bsc_number - Wrong value for $parameter", result => 'softfail'); |
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 to use record_soft_failure
here to mark the whole job as soft failed and record_info
will not do that. As can be seen, the message to record_soft_failure
does include a bsc# (via a variable). Is there a way to include this again?
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.
hmm, I can add exception for this dedicated string "bsc_number"
In this particular case, we missed a variable that was should have been named reference in the first place should help with os-autoinst#18062
In this particular case, we missed a variable that was should have been named reference in the first place should help with os-autoinst#18062
In this particular case, we missed a variable that was should have been named reference in the first place should help with os-autoinst#18062
In this particular case, we missed a variable that was should have been named reference in the first place should help with os-autoinst#18062
In this particular case, we missed a variable that was should have been named reference in the first place should help with os-autoinst#18062
Fix rogue record_info introduced by #15615
This reverts commit 04dc22a.
poo#115343
https://openqa.suse.de/tests/9627721
https://openqa.opensuse.org/tests/2762755