mozilla / code-review

Automated static analysis & linting bot for Mozilla repositories
Mozilla Public License 2.0
56 stars 42 forks source link

Support autoland on Revision.__repr__ #2535

Closed La0 closed 5 days ago

La0 commented 5 days ago

Closes https://mozilla.sentry.io/issues/6064254923

Refs #2260

This prevents the bot from crashing when a revision has no diff set and the repr method is called on the revision.

This only happens in the main error handling case for autoland revisions, but it prevents the bot from reporting error state on both phabricator & lando.

Here is an example task where this happen.