Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more of guards for 502 (or any 5xx error really) needed #145

Closed
yarikoptic opened this issue Apr 18, 2022 · 0 comments · Fixed by #146
Closed

more of guards for 502 (or any 5xx error really) needed #145

yarikoptic opened this issue Apr 18, 2022 · 0 comments · Fixed by #146
Assignees

Comments

@yarikoptic
Copy link
Member

a fresh run failed for /mnt/backup/dandi/tinuous-logs/dandi-api on drogon

2022-04-18T10:10:02-0400 [INFO    ] tinuous tinuous 0.5.1                                                                                                                                                            
2022-04-18T10:10:02-0400 [INFO    ] tinuous Fetching resources from github                                                                                                                                           
2022-04-18T10:10:02-0400 [INFO    ] tinuous Fetching runs newer than 2022-03-16 15:52:15+00:00                                                                                                                       
2022-04-18T10:10:02-0400 [INFO    ] tinuous Fetching runs for workflow .github/workflows/cli-integration.yml (Test Integration with dandi-cli)                                                                       
Traceback (most recent call last):                                                                                                                                                                                   
  File "/mnt/backup/dandi/tinuous-logs/venv/bin/tinuous", line 10, in <module>                                                                                                                                       
    sys.exit(main())                                                                                                                                                                                                 
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/click/core.py", line 1128, in __call__                                                                                                       
    return self.main(*args, **kwargs)                                                                                                                                                                                
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/click/core.py", line 1053, in main                                                                                                           
    rv = self.invoke(ctx)                                                                                                                                                                                            
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/click/core.py", line 1659, in invoke                                                                                                         
    return _process_result(sub_ctx.command.invoke(sub_ctx))                                                                                                                                                          
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/click/core.py", line 1395, in invoke                                                                                                         
    return ctx.invoke(self.callback, **ctx.params)                                                                                                                                                                   
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/click/core.py", line 754, in invoke                                                                                                          
    return __callback(*args, **kwargs)                                                                                                                                                                               
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/click/decorators.py", line 38, in new_func                                                                                                   
    return f(get_current_context().obj, *args, **kwargs)                                                                                                                                                             
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/tinuous/__main__.py", line 112, in fetch                                                                                                     
    for obj in ci.get_build_assets(                                                                                                                                                                                  
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/tinuous/github.py", line 125, in get_build_assets                                                                                            
    for run in self.get_runs(wf, self.since):                                                                                                                                                                        
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/tinuous/github.py", line 42, in wrapped                                                                                                      
    return func(gha, *args, **kwargs)                                                                                                                                                                                
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/tinuous/github.py", line 108, in get_runs                                                                                                    
    for r in wf.get_runs():                                                                                                                                                                                          
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/github/PaginatedList.py", line 56, in __iter__                                                                                               
    newElements = self._grow()                                                                                                                                                                                       
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/github/PaginatedList.py", line 67, in _grow                                                                                                  
    newElements = self._fetchNextPage()                                                                                                                                                                              
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/github/PaginatedList.py", line 199, in _fetchNextPage                                                                                        
    headers, data = self.__requester.requestJsonAndCheck(                                                                                                                                                            
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/github/Requester.py", line 353, in requestJsonAndCheck                                                                                       
    return self.__check(                                                                                                                                                                                             
  File "/mnt/backup/dandi/tinuous-logs/venv/lib/python3.8/site-packages/github/Requester.py", line 378, in __check                                                                                                   
    raise self.__createException(status, responseHeaders, output)                                                                                                                                                    
github.GithubException.GithubException: 502 {"message": "Server Error"}    
yarikoptic added a commit that referenced this issue Apr 19, 2022
Retry all GitHub requests that result in a 5xx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants