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

app: boards: intel_adsp_ace15_mtpm: disable mock components #9410

Closed
wants to merge 1 commit into from

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Aug 27, 2024

Disable CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING. This was enabled with a mock implementation, which is useful for debug, but should not be part of upstream SOF releases for these boards.

Alternative to #9404

Disable CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING. This was enabled
with a mock implementation, which is useful for debug, but should
not be part of upstream SOF releases for these boards.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@cujomalainey
Copy link
Member

@sathya-nujella @RDharageswari FYI

@marc-hb
Copy link
Collaborator

marc-hb commented Aug 27, 2024

A reference to where and when @marcinszkudlinski added this cannot hurt. From #9404

CONFIG_COMP_STUBS=y was enabled in #8722 / commit 8e34109 ("AEC: Enable Google AEC with Mock compliation").

@marc-hb marc-hb mentioned this pull request Aug 27, 2024
@lgirdwood
Copy link
Member

@wszypelt good for you or do you need the mocks for testing reasons ?

@kv2019i
Copy link
Collaborator Author

kv2019i commented Sep 2, 2024

@lgirdwood @wszypelt @marcinszkudlinski It seems quickbuild is testing the RTC mock, so the failure is real. @marcinszkudlinski @wszypelt Is this still required or do we have other coverage for DP scheduling?

@marc-hb
Copy link
Collaborator

marc-hb commented Sep 2, 2024

Testing the RTC mock is fine: it just shouldn't be done with the default, sof-bin release .config. This should be done with some extra -DCONFIG_... like in commit 0061953

This is another, good example of:

@lgirdwood
Copy link
Member

@wszypelt @ssavati Can we have an overlay for our CI infra i.e.lnl-ci-jenkins.conf, mtl-ci-intel.conf and so on, we should be able to overlay this on top of the release conf to enable/disable certain features for PR testing.

@marcinszkudlinski
Copy link
Contributor

@lgirdwood @wszypelt @marcinszkudlinski It seems quickbuild is testing the RTC mock, so the failure is real. @marcinszkudlinski @wszypelt Is this still required or do we have other coverage for DP scheduling?

Even if we have other DP usage in tests, I recommend keeping the Google AEC Mock testing in CI. Google is the biggest user of SOF, so keeping the Google's components alive at all times is important.

@marc-hb
Copy link
Collaborator

marc-hb commented Sep 2, 2024

I recommend keeping the Google AEC Mock testing in CI.

Which "CI"? There are different test suites run in very different environments with different configurations. With the current lack of validation leadership, developers have to take an interest in what these various environments are, they unfortunately cannot just say "please someone test my code" and walk away. Otherwise we end up in situations like #9386 and worse.

@kv2019i
Copy link
Collaborator Author

kv2019i commented Sep 3, 2024

The mock is used to test DP scheduling and this is only coverage in PR CI currently, so we need to keep it until there is other ways to cover this functionality.

@kv2019i kv2019i closed this Sep 3, 2024
marc-hb added a commit to marc-hb/sof that referenced this pull request Sep 3, 2024
CONFIG_COMP_STUBS=y was enabled in thesofproject#8722 / commit 8e34109 ("AEC:
Enable Google AEC with Mock compliation").

CONFIG_COMP_STUBS indirectly enables
CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK which was the desired
effect. However it also automatically and silently "mocks" all other 3rd
party modules which is not desirable. So, replace it with the more
focused `CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK`. `src/audio/Kconfig`
says "CONFIG_STUBS: This should only be used in testing environments
like fuzzers or CI."

Official sof-bin releases include `google_rtc_audio_processing_mock.c`
because the CI that uses it can't use extra CONFIGS. That's another
topic for another day, see thesofproject#9410.

build-mtl/zephyr.strip is identical before versus after this commit.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
cujomalainey pushed a commit that referenced this pull request Sep 4, 2024
CONFIG_COMP_STUBS=y was enabled in #8722 / commit 8e34109 ("AEC:
Enable Google AEC with Mock compliation").

CONFIG_COMP_STUBS indirectly enables
CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK which was the desired
effect. However it also automatically and silently "mocks" all other 3rd
party modules which is not desirable. So, replace it with the more
focused `CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK`. `src/audio/Kconfig`
says "CONFIG_STUBS: This should only be used in testing environments
like fuzzers or CI."

Official sof-bin releases include `google_rtc_audio_processing_mock.c`
because the CI that uses it can't use extra CONFIGS. That's another
topic for another day, see #9410.

build-mtl/zephyr.strip is identical before versus after this commit.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
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.

6 participants