Project

General

Profile

Actions

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 about 1 year ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Due date:

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


Related issues 1 (0 open1 closed)

Related to openQA Tests - action #135896: [qe-core] test fails in update_installClosedamanzini2023-09-18

Actions
Actions #1

Updated by rfan1 about 1 year 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;
}
Actions #2

Updated by rfan1 about 1 year ago

  • Subject changed from [qe-core]test fails in update_install to [qe-core]test fails in update_install, wrong response code returned
Actions #3

Updated by rfan1 about 1 year 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
Actions #4

Updated by rfan1 about 1 year ago

  • 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
Actions #5

Updated by vsvecova about 1 year ago

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?

Actions #6

Updated by dzedro about 1 year ago

I guess the connection from new PRG location (osd) to NUE (smelt.suse.de) is bad.
Maybe open ticket to infra or add retry ?

Actions #7

Updated by szarate about 1 year 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
Actions #8

Updated by szarate about 1 year ago

  • Tracker changed from action to openqa-force-result
  • Project changed from openQA Tests to openQA auto review
  • Category deleted (Bugs in existing tests)
  • Start date deleted (2023-08-31)
Actions #9

Updated by szarate about 1 year ago

  • Related to action #135896: [qe-core] test fails in update_install added
Actions #10

Updated by amanzini about 1 year ago

it's difficult to reproduce, but PR https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/17795 try to address also this

Actions #11

Updated by dzedro 5 months ago

  • Status changed from New to Feedback

Is this fixed @rfan1 ?

Actions #12

Updated by rfan1 5 months ago

  • Status changed from Feedback to Resolved
  • Assignee set to rfan1
Actions

Also available in: Atom PDF