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

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

chipx86
ReviewBot
release-3.0.x
reviewbot

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
Fix a crash when querying Review Bot worker status in error states.
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: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (607f9c2)
Loading...