openqa-force-result #134873
closed
[qe-core][tools]test fails in update_install, 'query_smelt' - wrong response code returned auto_review:"Unexpected response code from SMELT":force_result:softfailed
Added by rfan1 over 1 year ago.
Updated 6 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;
}
- Subject changed from [qe-core]test fails in update_install to [qe-core]test fails in update_install, wrong response code returned
- 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
- Subject changed from [qe-core][tools]test fails in update_install, wrong response code returned to [qe-core][tools]test fails in update_install, 'query_smelt' - wrong response code returned
Hello, I see this issue is blocking a lot of approvals for qam-openqa review group and it is currently unassigned. Is there any progress on this?
I guess the connection from new PRG location (osd) to NUE (smelt.suse.de) is bad.
Maybe open ticket to infra or add retry ?
- 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
- Tracker changed from action to openqa-force-result
- Project changed from openQA Tests (public) to openQA auto review
- Category deleted (
Bugs in existing tests)
- Start date deleted (
2023-08-31)
- Related to action #135896: [qe-core] test fails in update_install added
- Status changed from New to Feedback
- Status changed from Feedback to Resolved
- Assignee set to rfan1
Also available in: Atom
PDF