Skip to content

Conversation

@nordic-piks
Copy link
Contributor

The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

nordic-piks added a commit to nordic-piks/sdk-zephyr that referenced this pull request Jul 30, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
nordicjm pushed a commit to nrfconnect/sdk-zephyr that referenced this pull request Jul 30, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
carlocaione
carlocaione previously approved these changes Jul 31, 2024
gmarull
gmarull previously approved these changes Aug 5, 2024
@fabiobaltieri
Copy link
Member

hey, this needs a rebase

The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
@nordic-piks nordic-piks dismissed stale reviews from gmarull and carlocaione via dea05e9 August 13, 2024 15:29
@nordic-piks nordic-piks force-pushed the enable_coverage_from_mbox_sample branch from 432ef5f to dea05e9 Compare August 13, 2024 15:29
@nordic-piks
Copy link
Contributor Author

hey, this needs a rebase

Done, thanks.

bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Aug 20, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 9, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 10, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
@kartben
Copy link
Contributor

kartben commented Sep 10, 2024

@nordic-piks I am confused by all the PRs recently that are "polluting" (for the last of a better word) the code samples with coverage boilerplate. Can you clarify what's your intent with this please?
As a reminder, code samples are not meant to be used as test cases.
Thanks!

Copy link
Contributor

@kartben kartben left a comment

Choose a reason for hiding this comment

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

Temporary NACK until question/concern above is addressed

Copy link
Member

@nashif nashif left a comment

Choose a reason for hiding this comment

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

samples are samples, not tests. Adding this type of code to samples just defeats the purpose of samples. If you want covoerage, introduce a test for this drivers or convert this into a test.

bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 11, 2024
The sample must end to dump coverage data.
Stop receiving to prevent callback from interrupting coverage dump.

Upstream PR: zephyrproject-rtos/zephyr#76415

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
@nordic-piks
Copy link
Contributor Author

I agree with your comments, will close this PR.
My justification was to get coverage stats base on existing code (tests/samples) to extend where that is needed later.
Most of the samples just produce coverage data, the infinite ones are problematic, thus my changes.

@nordic-piks nordic-piks deleted the enable_coverage_from_mbox_sample branch September 11, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants