Add information to logs with a custom runner#205
Add information to logs with a custom runner#205shym wants to merge 1 commit intoocaml-multicore:mainfrom
Conversation
Add a bash script to use as runner for our test suite This script adds information to the logs: - explicit names of the test run when they start - some explicit messages for crashes (SIGSEGV, SIGBUS, ...) - and, maybe most importantly, anchors in CI logs, so that the main webpage contains the most important information and direct links to precise points of interest in the log It is written as a bash script but making sure it can be used as a runner also on Windows CI (notably by commenting all ends of lines, without which it fails with errors about '\r's that don't exist...)
|
I'm a bit hesitant about this one. On the negative side,
I'm wondering if this is something
I've been thinking of the latter to avoid printing counterexamples twice (with and without return values)... |
|
I do agree it’d be nicer to go without |
|
Now, to plead the case for that PR:
|
|
For the record, I thought using the |
|
Overall, I can see benefit to the CI log anchors and would like to salvage them! I'm wondering whether a good solution would be to extend QCheck to output the right format when running under a suitable environment variable, e.g., What do you think? How different an output should be printed to achieve that, e.g., for the below? (I see some " |
|
The documentation explains here the syntax to report an error and create the anchor; tldr: |
|
Ah, this old brain is finally starting to understand 😅 For the weird Windows signalling, I think we should report it along with test case if possible to the |
|
BTW, thanks for the documentation link - much appreciated! 🙏 |
Add a bash script to use as runner for our test suite
This script adds information to the logs:
It is written as a bash script but making sure it can be used as a runner also on Windows CI (notably by commenting all ends of lines, without which it fails with errors about '\r's that don't exist...)
Example of result of the changes: the webpage for this run shows directly that we got a SEGV in Ephemeron on trunk (windows). Or this run with SIGABRT in buffers on trunk on macos.