-
Notifications
You must be signed in to change notification settings - Fork 343
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
Revert Avocado Instrumented Tests Log Message Format to 92LTS Version #5732
Conversation
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.
Looks right to me:
[stdlog] 2023-07-17 20:35:22,585 test L0209 INFO | Avocado-VT '100.1-201-ge20d6', Branch 'master', SHA1 'e20d6f47c2198f423bbc8f420b2775e404322416'
[stdlog] 2023-07-17 20:35:22,585 utils L0161 DEBUG| Test parameters:
[stdlog] 2023-07-17 20:35:22,585 utils L0165 DEBUG| auto_cpu_model = yes
...
Hello @richtja , in debug.log, now it is fixed:
But in full.log, now it is still as before:
Could we make full.log fixed too? |
Sure, I will do that. Thank you for your review. |
This commit addresses compatibility concerns by reverting the log message format of Avocado instrumented tests back to the 92LTS (Long-Term Support) version. By doing so, we ensure compatibility with the upcoming LTS version. Reference: avocado-framework#5721 Signed-off-by: Jan Richter <[email protected]>
We use to re-log messages when avocado receives them from runner. For this feature we supported the `log_message` attribute which split the log message into two part, one with the real log and second log with metadata. Unfortunately, this solution has an issue. When avocado re-logs the message, it loses the logging metadata and logs shows wrong lines and modules. This commit removes this mechanism and keep the creation of log messages only to runners. before this change: 2023-07-25 10:33:52,781 messages L0378 INFO | 1-examples/tests/passtest.py:PassTest.test: INIT 1-examples/tests/passtest.py:PassTest.test 2023-07-25 10:33:52,781 messages L0378 DEBUG| 1-examples/tests/passtest.py:PassTest.test: PARAMS (key=timeout, path=*, default=None) => None after this change: 1-examples/tests/passtest.py:PassTest.test: 2023-07-25 14:00:50,323 test L0313 INFO | INIT 1-examples/tests/passtest.py:PassTest.test 1-examples/tests/passtest.py:PassTest.test: 2023-07-25 14:00:50,324 parameters L0141 DEBUG| PARAMS (key=timeout, path=*, default=None) => None Signed-off-by: Jan Richter <[email protected]>
Hi @dzhengfy and @clebergnu I updated the PR based on your reviews. I had to the change to how we propagate messages from runners to full.log. Please take a look. Thank you. |
@richtja , Test with master branch, and it looks fine to me and most consistent to the 92lts' format. Thanks.
|
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.
Tested and results LGTM
@clebergnu Could you help double review it? |
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, thanks!
/packit copr-build |
In avocado-framework#5665 we introduced the logging stream name in test logs, this added more possibilities for user how to post-process test logs. Unfortunately, this change also hided information about modules where the log has been created. This issue has been solved in avocado-framework#5732. This commit connects those two solutions by storing stream and module names. Referencei: avocado-framework#5665 avocado-framework#5732 Signed-off-by: Jan Richter <[email protected]>
In avocado-framework#5665 we introduced the logging stream name in test logs, this added more possibilities for user how to post-process test logs. Unfortunately, this change also hided information about modules where the log has been created. This issue has been solved in avocado-framework#5732. This commit connects those two solutions by storing stream and module names. Referencei: avocado-framework#5665 avocado-framework#5732 Signed-off-by: Jan Richter <[email protected]>
This commit addresses compatibility concerns by reverting the log message format of Avocado instrumented tests back to the 92LTS (Long-Term Support) version. By doing so, we ensure compatibility with the upcoming LTS version.
Reference: #5721
Signed-off-by: Jan Richter [email protected]