Add log timers around all communication over Celery.

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

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
Review request changed
Change Summary:

Fixed the version to target 4.0.1.

Commits:
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.
954127f1816b68be0ea84eae612db4f8edbed2c5
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
Diff:

Revision 3 (+788 -90)

Show changes

extension/reviewbotext/extension.py
extension/reviewbotext/integration.py
extension/reviewbotext/views.py
extension/reviewbotext/compat/__init__.py
extension/reviewbotext/compat/logs.py

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
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.

  3. 
      
Loading...