PilzDE / pilz_github_ci_runner

ros package to run a CI for github pull requests with checks for certain requirements
1 stars 0 forks source link

Connection error #11

Open martiniil opened 3 years ago

martiniil commented 3 years ago

Is this something we have to worry about?

Commit

6a2c01bcd0c705e595b3e0531041fc689d9ac213

Steps to reproduce

rosrun pilz_github_ci_runner test_repository.py "PilzDE/psen_scan_v2" "rfeistenauer agutenkunst imartini cdoehn chenkel" --setup-cmd="usbrelay 1_1=0; sleep 2; usbrelay 1_1=1" --cleanup-cmd="usbrelay 1_1=0" CMAKE_ARGS="-DENABLE_HARDWARE_TESTING=ON" DOCKER_RUN_OPTS="-v /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro -p 55000-55020:55000-55020/udp -p 55116:55116/udp --env HOST_IP=192.168.0.50 --env SENSOR_IP=192.168.0.10" APT_PROXY=http://172.20.20.104:3142 VERBOSE_TESTS=true --no-keyring --loop-time 60

Observed behavior

Runner crashed

Logfiles

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>                                                                                                                                                       [109/1910]
Searching for PRs to test.                                                                                                                                                                                         

Traceback (most recent call last):                                                                                                                                                                                 
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen                                                                                                                            
    httplib_response = self._make_request(                                                                                                                                                                         
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request                                                                                                                      
    six.raise_from(e, None)                                                                              
  File "<string>", line 3, in raise_from                                                                 
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request      
    httplib_response = conn.getresponse()                                                                
  File "/usr/lib/python3.8/http/client.py", line 1344, in getresponse                                    
    response.begin()                                                                                     
  File "/usr/lib/python3.8/http/client.py", line 307, in begin                                           
    version, status, reason = self._read_status()                                                        
  File "/usr/lib/python3.8/http/client.py", line 276, in _read_status                                                                                                                                              
    raise RemoteDisconnected("Remote end closed connection without"                      
http.client.RemoteDisconnected: Remote end closed connection without response                      

During handling of the above exception, another exception occurred:                                      

Traceback (most recent call last):   
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send                          
    resp = conn.urlopen(                                                                                                                                                                                           
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen  
    retries = retries.increment(                                                                         
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment              
    raise six.reraise(type(error), error, _stacktrace)                                                   
  File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise                                     
    raise value.with_traceback(tb)       
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen                  
    httplib_response = self._make_request(                                                               
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request                                                                                                                      
    six.raise_from(e, None)                                                                                                                                                                                        
  File "<string>", line 3, in raise_from                                                                 
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request                                                                                                                      
    httplib_response = conn.getresponse()                                                                
  File "/usr/lib/python3.8/http/client.py", line 1344, in getresponse                                    
    response.begin()                                
  File "/usr/lib/python3.8/http/client.py", line 307, in begin                           
    version, status, reason = self._read_status()                                                        
  File "/usr/lib/python3.8/http/client.py", line 276, in _read_status                              
    raise RemoteDisconnected("Remote end closed connection without"                                
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))                                                                                     

During handling of the above exception, another exception occurred:                                      

Traceback (most recent call last):                                                                       
  File "/home/rfeistenauer/colcon_ws/install/Project/lib/pilz_github_ci_runner/test_repository.py", line 138, in <module>                                                                                          
    check_and_execute_loop(loop_time, rh)                                                                                                                                                                          
  File "/home/rfeistenauer/colcon_ws/install/Project/lib/pilz_github_ci_runner/test_repository.py", line 85, in check_and_execute_loop                                                                             
    test_prs(rh, manually=False)                  
  File "/home/rfeistenauer/colcon_ws/install/Project/lib/pilz_github_ci_runner/test_repository.py", line 94, in test_prs                                                                                           
    testable_prs = get_testable_pull_requests(rh)                                                                                                                                                                  
  File "/home/rfeistenauer/colcon_ws/install/Project/lib/python3/dist-packages/pilz_github_ci_runner/github_pr_analyzer.py", line 78, in get_testable_pull_requests                                                
    pr.validate(repo_handler.allowed_users, repo_handler.test_bot_account)                                                                                                                                         
  File "/home/rfeistenauer/colcon_ws/install/Project/lib/python3/dist-packages/pilz_github_ci_runner/github_pr_analyzer.py", line 30, in validate                                                                  
    self.head_is_untested = not self._tested(test_bot_account)                                                                                                                                                     
  File "/home/rfeistenauer/colcon_ws/install/Project/lib/python3/dist-packages/pilz_github_ci_runner/github_pr_analyzer.py", line 54, in _tested                                                                   
    for c in self.get_issue_comments():                                                                  
  File "/usr/lib/python3/dist-packages/github/PaginatedList.py", line 64, in __iter__                    
    newElements = self._grow()                                                                           
  File "/usr/lib/python3/dist-packages/github/PaginatedList.py", line 76, in _grow                       
    newElements = self._fetchNextPage()                                                                  
  File "/usr/lib/python3/dist-packages/github/PaginatedList.py", line 197, in _fetchNextPage             
    headers, data = self.__requester.requestJsonAndCheck(                                                
  File "/usr/lib/python3/dist-packages/github/Requester.py", line 275, in requestJsonAndCheck            
    return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url)))                                                                                                    
  File "/usr/lib/python3/dist-packages/github/Requester.py", line 335, in requestJson    
    return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode)                
  File "/usr/lib/python3/dist-packages/github/Requester.py", line 388, in __requestEncode                
    status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input)   
  File "/usr/lib/python3/dist-packages/github/Requester.py", line 412, in __requestRaw                   
    response = cnx.getresponse()     
  File "/usr/lib/python3/dist-packages/github/Requester.py", line 114, in getresponse                    
    r = verb(url, headers=self.headers, data=self.input, timeout=self.timeout, verify=self.verify, allow_redirects=False)                                                                                          
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get           
    return self.request('GET', url, **kwargs)                                                            
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request                 
    resp = self.send(prep, **send_kwargs)                                                                
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send                          
    r = adapter.send(request, **kwargs)  
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send                          
    raise ConnectionError(err, request=request)                                                          
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) 
martiniil commented 3 years ago

Should be resolved by c26d799fb69ab41f7f1cc97c926d5acbfbc5bed0

martiniil commented 3 years ago

Still happening