openqa-force-result #134873
open[qe-core][tools]test fails in update_install, 'query_smelt' - wrong response code returned auto_review:"Unexpected response code from SMELT":force_result:softfailed
Description
Observation¶
openQA test in scenario sle-15-SP2-Server-DVD-Incidents-Install-aarch64-qam-incidentinstall@aarch64-virtio fails in
update_install
Test suite description¶
Testsuite maintained at https://gitlab.suse.de/qa-maintenance/qam-openqa-yml. Incident Installation TEST
MAX_JOB_TIME=9000 due to long texlive update
Reproducible¶
Fails since (at least) Build :30387:amazon-ecs-init
Expected result¶
Last good: :30381:MozillaFirefox (or more recent)
Further details¶
Always latest result in this scenario: latest
Updated by rfan1 8 months ago
From the log, we can't see right code prints there. So the url may not be able to return the right response code.
However, at the same time, we may need to revise our test code:
Here comes the current output:
testapi::record_info(title="Response: Mojo::Transaction::HTTP=HASH(0xaaaada2a14f8)->res->code
[it only prints the string "->res->code" rather than the code ]
There might be some issue with line record_info "Response: $transaction->res->code", "Unexpected response code from SMELT";
sub query_smelt {
my $graphql = $_[0];
my $transaction = Mojo::UserAgent->new->post("https://smelt.suse.de/graphql/" => json => {query => "$graphql"});
if ($transaction->res->code != 200) {
die "Unexpected response code from SMELT: $transaction->res->code";
}
return $transaction->res->body;
}
Updated by rfan1 8 months ago
- Subject changed from [qe-core]test fails in update_install, wrong response code returned to [qe-core][tools]test fails in update_install, wrong response code returned
I can't reproduce the issue on my local setup, So I am wondering something wrong with openQA workers.
#cat abc.pl
use strict;
use warnings;
use Mojo::UserAgent;
sub query_smelt {
my $graphql = $_[0];
my $transaction = Mojo::UserAgent->new->post("https://smelt.suse.de/graphql/" => json => {query => "$graphql"});
my $resp_code = $transaction->res->code;
if ($ resp_code!= 200) {
die "Unexpected response code from SMELT: $resp_code";
}
print $transaction->res->code;
}
query_smelt "{incidents(incidentId: 30389){edges{node{incidentpackagesSet{edges{node{package{name}}}}}}}}";
# perl abc.pl
200
Updated by szarate 8 months ago
- Subject changed from [qe-core][tools]test fails in update_install, 'query_smelt' - wrong response code returned to [qe-core][tools]test fails in update_install, 'query_smelt' - wrong response code returned auto_review:"Unexpected response code from SMELT":force_result:softfailed
Updated by szarate 7 months ago
- Related to action #135896: [qe-core] test fails in update_install added
Updated by amanzini 7 months ago
it's difficult to reproduce, but PR https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/17795 try to address also this