-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add information to logs with a custom runner #205
base: main
Are you sure you want to change the base?
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.