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

case-lib: remove check for log ldc file #1215

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

kv2019i
Copy link
Contributor

@kv2019i kv2019i commented Jul 8, 2024

Checking for ldc (log dictionary) file existance as a way to decide whether to enable or disable logging during a test case, is no longer applicable as SOF supports multiple firmware logging solutions that do not use an ldc file.

Remove the check as it no longer makes sense.

Link: #1216

Checking for ldc (log dictionary) file existance as a way to
decide whether to enable or disable logging during a test case,
is no longer applicable as SOF supports multiple firmware logging
solutions that do not use an ldc file.

Remove the check as it no longer makes sense.

Link: https://github.com/thesofproject/sof/issues/9286
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i kv2019i requested a review from a team as a code owner July 8, 2024 15:53
@kv2019i
Copy link
Contributor Author

kv2019i commented Jul 8, 2024

FYI @marc-hb @lyakh @ssavati @andyross

Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is useful for stable-v2.2

Please change to:

is_firmware_file_zephyr || ldcFile=$(find_ldc_file) || {

@kv2019i
Copy link
Contributor Author

kv2019i commented Jul 8, 2024

@marc-hb wrote:

This code is useful for stable-v2.2

Please change to:

is_firmware_file_zephyr || ldcFile=$(find_ldc_file) || {

I had this at first, but then started questioning whether adding more conditions makes sense. "is_firmware_file_zephyr" is still heuristics as there's nothing stopping from using sof-logger with Zephyr. So to ease maintainance, why not reduce number of combinations we supprot. I.e. if you want to use sof-test with stable-v2.2 you should have a proper DUT setup with an ldc file to run tests. Period.

@kv2019i
Copy link
Contributor Author

kv2019i commented Jul 8, 2024

Btw, this doesn't yet fix the check-sof-logger test case, but this does get FW logs back in other tests.

Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok you convinced me, let's remove this. In fact we still have two other ways to disable logging: -s in most tests and some environment variable, see 982f92d and #811 where this was discussed.

I think it was IPC4 migration time with more configurations and transitions that we have now.

I see check-sof-logger is still failing but now we have FW logs back thanks to this.

Just for the record, the loss of firmware logs (and other regressions) came from the big UUID PR thesofproject/sof#9261 which was merged broken

thesofproject/sof#9287 (comment)

@marc-hb marc-hb merged commit 76711d3 into thesofproject:main Jul 8, 2024
4 of 7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants