-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
twister: extend reason field in Twister reports #85393
twister: extend reason field in Twister reports #85393
Conversation
e5b73b1
to
d9c97b6
Compare
d9c97b6
to
80f2790
Compare
Extended the reason field in Twister report to include more detailed information for 'Build failure' and 'CMake build failure' Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
Updated test_report_summary to match new string with detailed reason of build failure. Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
After adding more detailed information to the reason field in Twister report, update twister_report_analyzer.py to group CMake and Build failures. Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
80f2790
to
46651b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just one remark. This introduces some code duplication: the same analysis is in twister and twister_report_analyzer.py script. I don't mind it for now since such functionality is very new and we don't know yet how it will be used later on. To remove code duplication in future twister could e.g. import the analysis method from the analyzer script.
Extended the reason field in Twister report to include more detailed information for 'Build failure' and
'CMake build failure'
Added parsing of specific error keys from logs to provide clearer context in the reports.
Requested here: https://discord.com/channels/720317445772017664/733037890514321419/1337400203019550786
To test you can modify hello_world sample, e.g.:
and run:
$ZEPHYR_BASE/scripts/twister -vv -T samples/hello_world -p native_sim -ll debug
then you will find more details in
reason
field in twister.json (and inmessage
field in junit reports).