- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
✅ 🔨 Maintenance: resolves tests hanging in CI #7077
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
Conversation
          Codecov ReportAttention: Patch coverage is  
 Additional details and impacted files@@            Coverage Diff             @@
##           master    #7077      +/-   ##
==========================================
+ Coverage   87.15%   87.69%   +0.53%     
==========================================
  Files        1634     1626       -8     
  Lines       64353    63619     -734     
  Branches     2053     2054       +1     
==========================================
- Hits        56089    55788     -301     
+ Misses       7927     7495     -432     
+ Partials      337      336       -1     
 
 Continue to review full report in Codecov by Sentry. 
  | 
    
89a4fb5    to
    eb41779      
    Compare
  
    eb41779    to
    4f3801d      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. Please check my comments and questions
        
          
                packages/service-library/tests/deferred_tasks/test_deferred_tasks.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. Thanks for the effort!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! looks good.
          
 | 
    



What do these changes do?
The primary goal of this PR was to resolve the issue of hanging CI tests. Initially, we suspected it was related to #7008. Although we implemented a fix in #7018, similar tests continued to hang.
Additionally, we identified that the Redis health check was repeatedly retrying indefinitely in
[int] webserver 02and[unit] service-library. To address this, I introduced a maximum cancellation time for the associated health check task, which appears to have resolved the issue.Overall, the primary cause of the hanging tests, as I noted in #7008, seems to be uncontrolled tasks persistently attempting to access services (e.g., database, Redis) that have already been shut down. This issue needs a follow up!!!
Some mode details of the changes
pytest-simcoreand testsforce_drop_all_tablesfor testing in a single call used everywhere ( this was the fix used in ♻️ web-server: preparation of trash plugin ⚠️ #7018)postgres-databaseservicelibRedisClientSDK.shutdownhas now a max time to cancel health-check taskconfigurations
.ruff.tomlremoving warnings due to new configurationRelated issue/s
How to test
Dev-ops
None