Skip to content
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 HTML LAVA logs #274

Open
gctucker opened this issue Jun 8, 2023 · 0 comments
Open

Add HTML LAVA logs #274

gctucker opened this issue Jun 8, 2023 · 0 comments

Comments

@gctucker
Copy link
Contributor

gctucker commented Jun 8, 2023

The current callback handler parses the log data from LAVA and produces a plain text log with the serial console output from the device, then uploads it to storage. The legacy system also had an HTML variant of that log which included all the extra LAVA messages and colour highlighting, line numbers with links etc. The implementation can be found in this file:

https://github.com/kernelci/kernelci-backend/blob/main/app/utils/lava_log_parser.py

However, this needs to be entirely revisited for the new API & Pipeline implementation. The code was Python 2.7, and now we may consider using a Jinja2 template to produce the log rather than pure Python. The formatting and branding might also need to be reviewed to include extra details such as the node ID.

This is not a critical feature for the initial production roll-out, and as such can be done as an incremental update after the first production milestone has been reached.

@gctucker gctucker mentioned this issue Jun 8, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant