Add a machine-readable state printer for bot monitoring


This enables the bot to be monitored by a monitoring system,
providing the full state of the bot in a machine-readable format.

This patch also contains a number of previously in-production
hotfixes.

Task-number: QTQAINFRA-5489
Change-Id: I7647935d79c1f7d184f60bfac1bba1e0ab2526b7
Reviewed-by: Daniel Smith <daniel.smith@qt.io>
commitd36b21509650c193349d8e6a0269c433cfa8dfa2
parentd18cc13199ecb8ad833f759006fdf68b7703878c
authorDaniel Smith <daniel.smith@qt.io>
committerDaniel Smith <daniel.smith@qt.io>
commit timeWed, 20 Mar 2024 12:41:48 +0000