Project

General

Profile

action #157540

Updated by okurz about 2 months ago

## Observation 

 https://app.circleci.com/pipelines/github/os-autoinst/openQA/13196/workflows/ddb935c7-31dd-4beb-877c-25ef1e703b4d/jobs/123231 
 ``` 
 [14:03:42] t/33-developer_mode.t .. 17/?       # Unexpected Javascript console errors, waiting for connection opened: [ 
     #     { 
     #       level       => "SEVERE", 
     #       message     => "http://localhost:9526/asset/3906633cf0/ws_console.js 8 WebSocket connection to 'ws://localhost:9528/liveviewhandler/tests/1/developer/ws-proxy' failed: Error during WebSocket handshake: Unexpected response code: 302", 
     #       source      => "network", 
     #       timestamp => 1710857067816, 
     #     }, 
     # ] 

     #     Failed test 'No unexpected js warnings' 
     #     at /home/squamata/project/t/lib/OpenQA/Test/FullstackUtils.pm line 123. 
     # Looks like you failed 1 test of 9. 
 [14:03:42] t/33-developer_mode.t .. 20/?  
 ``` 

 ## Suggestions 
 * While investigating the code in parallel try to reproduce locally with coverage enabled and multiple runs to get a statistically significant result, e.g. `make test KEEP_DB=1 RETRY=500 TESTS=t/33-developer.t` and go for lunch or continue coding :) 
 * If it's not reproducible consider the same with coverage enabled and/or in circleCI, e.g. a temporary branch in your github repo fork 
 * Identify where in https://github.com/os-autoinst/openQA/blob/master/t/33-developer_mode.t the redirection "302" could happen 
 * Even though the test is not technically a UI test in the t/ui/ folder it might still be necessary to apply UI test related synchronisation means to fix the sporadic failure as a selenium instance is used 
 * Might be a similar issue: #102578

Back