Add a trailing line break to console reports#782
Add a trailing line break to console reports#782tstarling wants to merge 2 commits intoergebnis:mainfrom
Conversation
So that subsequent output appears on a new line.
|
What could be the reason for the output looking like this when it should look like this instead? Note the order of sections: the output of the extension in https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php83/47798/console looks like it comes after and not before the summary rendered by What would be the reason for that? Is there a place I can inspect the configuration to reproduce the issue? |
|
Probably related to #762. |
Yes, confirmed, our phpunit.xml has |
|
This may be a limitation with I have no idea, but maybe you can help me out here: why use |
You could configure it in the extension separately, as I'm suggesting in #788.
So that header can be called without triggering a "headers already sent" warning. There is |
|
https://phabricator.wikimedia.org/T420791 is the same issue (we're all from the same downstream)... Locally running tests I end up with the next command on the same line as the last output, which is more obvious than in our CI logs from above too: Whereas this would be more desired: |
|
@reedy My PR #788 to solve this issue was merged, and I assume this one is not going to be merged. ergebnis is deliberately omitting the line break because the PHPUnit report summary which is supposed to follow it includes an empty line. The slow test report appears at the end of our output because it's sent to the stdout output buffer and flushed on termination, it's not written to stderr like everything else. PHPUnit 10 provides a method for detecting where output should be sent, but in PHPUnit 9 you would probably have to reparse the command line and phpunit.xml. So my solution in #788 is to add a stderr parameter to the extension. This parameter needs to be added to MW's Simply merging this PR is not going to be acceptable because the top-level stderr parameter is not on by default, MediaWiki is being weird by enabling that. Merging this PR would add an unwanted empty line in the default configuration. |
So that subsequent output appears on a new line.
For example, at https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php83/47798/console we see