Fix a crash when querying Review Bot worker status in error states.

Review Request #12093 — Created Feb. 28, 2022 and submitted

Information

ReviewBot
release-3.0.x

Reviewers

Review Bot expected that all workers would respond with a successful
state, and if that didn't occur, the extension would crash retrieving
status.

Now, the worker looks for error payloads and returns an error state if
any hosts reported an error or did not report a status.

Manually tested with a failed worker.

Unit tests pass.

Summary ID
Fix a crash when querying Review Bot worker status in error states.
Review Bot expected that all workers would respond with a successful state, and if that didn't occur, the extension would crash retrieving status. Now, the worker looks for error payloads and returns an error state if any hosts reported an error or did not report a status.
066722d68725de1ae4df8935d98c6d95f16e8bde
Description From Last Updated

F401 'reviewbotext.views.WorkerStatusView' imported but unused

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

flake8

chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (607f9c2)