• 
      

    Add log timers around all communication over Celery.

    Review Request #14373 — Created March 18, 2025 and submitted

    Information

    ReviewBot
    release-4.x

    Reviewers

    In order to help debug networking-related problems, we now include log
    timers around all outgoing requests to Celery. This includes task runs
    and tool refreshes. These are DEBUG-logged unless timing exceeds a
    threshold, helping to catch delayed requests.

    As this utilizes new functionality in Djblets 5.3 / Review Board 7.0.1,
    we're including a backport of the modern log_timed(). This will be
    removed when we can depend on newer releases.

    Tested worker status refreshes, tool refreshes, automatic tool runs,
    and manual tool runs. All provided the correct logging information.

    Unit tests pass.

    Summary ID
    Add log timers around all communication over Celery.
    In order to help debug networking-related problems, we now include log timers around all outgoing requests to Celery. This includes task runs and tool refreshes. These are DEBUG-logged unless timing exceeds a threshold, helping to catch delayed requests. As this utilizes new functionality in Djblets 5.3 / Review Board 7.0.1, we're including a backport of the modern `log_timed()`. This will be removed when we can depend on newer releases.
    839f20a186152d9427d7e714af409a3fa7e921cf
    Description From Last Updated

    f-string is missing placeholders Column: 24 Error code: F541

    reviewbotreviewbot

    f-string is missing placeholders Column: 32 Error code: F541

    reviewbotreviewbot

    Shouldn't this be 4.0.1? Same elsewhere in this change.

    daviddavid

    These look like they were copy/pasted from djblets. I don't think we need the version info here at all.

    daviddavid
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    chipx86
    david
    1. 
        
    2. Show all issues

      Shouldn't this be 4.0.1? Same elsewhere in this change.

    3. 
        
    chipx86
    david
    1. 
        
    2. extension/reviewbotext/compat/logs.py (Diff revision 3)
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      Show all issues

      These look like they were copy/pasted from djblets. I don't think we need the version info here at all.

      1. It's exactly copy/pasted from Djblets. It's a backwards-compat version of what we're shipping there.

    3. 
        
    david
    1. Ship It!
    2. 
        
    maubin
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.x (750f695)