The CI Jenkins has the Collapsing Console Sections Plugin. It can be used to collapse sections of the console output. For example:
To do so, the plugin relies on regular expressions we fill to detect the start and end of a section (via /ci/configure. A gotcha is that when no end of section is filled, the next section would be made a child. We thus have to terminate a section based on the output of an unrelated command that comes after which is not that reliable.
Some recently added rule was for Fresnel run (T220561). Example rules:
Name | fresnel record ({1}) |
Start | .*fresnel record\s*"?([^"]*).* |
End | .*conductor/record-end.* |
Which is probably fine.
Name | Fresnel result |
Start | .*fresnel compare.* |
Ends | .*INFO:.* |
INFO: comes from Quibble output, not Fresnel and might change. Another example:
Name | setup quibble mw-install | |
Start | `.*(HHVM | PHP).+ is installed.*` |
Ends | `.*INFO:quibble.cmd:(PHPUnit | User).*` |
Maybe we could define a standard format to start/end section which can then be optionally inserted in the output of Quibble and testing tools?
It is probably rather trivial to implement it with a python decorator added to relevant Quibble methods.