Skip to content

Conversation

@katgiadla
Copy link
Contributor

If test plan is used, memory usage metrics are overridden. Result of this operation is missing memory footprint.

This change removes redundand metrics update and fixes described inconvenience.

@katgiadla katgiadla requested review from PerMac, gchwier and nashif May 14, 2025 13:50
@katgiadla katgiadla added the area: Twister Twister label May 14, 2025
@github-actions github-actions bot added the size: XS A PR changing only a single line of code label May 14, 2025
@sonarqubecloud
Copy link

@hakehuang
Copy link
Contributor

If test plan is used, memory usage metrics are overridden. Result of this operation is missing memory footprint.

This change removes redundand metrics update and fixes described inconvenience

can you specify how to reproduce the failure?

@katgiadla
Copy link
Contributor Author

katgiadla commented May 15, 2025

can you specify how to reproduce the failure?

Sure, below are atttached steps to reproduction:

  1. generate sample test plan
  2. run command: $ZEPHYR_BASE/scripts/twister -T tests/kernel/common/ -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id
  3. run command $ZEPHYR_BASE/scripts/twister --load-tests sample_testplan.json -T tests/kernel/common/ -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id (sample_testplan.json comes from previous step)
  4. compare twister report files (twister.json)

@katgiadla katgiadla force-pushed the instancies_footprint branch from 31d8425 to 0ae056b Compare June 18, 2025 11:39
If test plan is used, memory usage metrics are overridden.
Result of this operation is missing memory footprint.

This change removes redundand metrics update and fixes
described inconvenience.

Signed-off-by: Katarzyna Giądła <katarzyna.giadla@nordicsemi.no>
@katgiadla katgiadla force-pushed the instancies_footprint branch from 0ae056b to ab8ef8e Compare June 20, 2025 15:13
@sonarqubecloud
Copy link

@katgiadla katgiadla requested a review from hakehuang June 20, 2025 23:03
@katgiadla
Copy link
Contributor Author

@nashif, @golowanow, @LukaszMrugala please check the changes :)

@nashif
Copy link
Member

nashif commented Jun 24, 2025

Sure, below are atttached steps to reproduction:

  1. generate sample test plan
  2. run command $ZEPHYR_BASE/scripts/twister --load-tests sample_testplan.json -T tests/kernel/common/ -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id
  3. run command: $ZEPHYR_BASE/scripts/twister -T tests/kernel/common/ -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id
  4. compare twister report file (twister.json)

not able to reproduce the issue, can you please be more detailed, i..e how do you generate the test plan?

@katgiadla
Copy link
Contributor Author

katgiadla commented Jun 24, 2025

Sure, below are atttached steps to reproduction:

  1. generate sample test plan
  2. run command $ZEPHYR_BASE/scripts/twister --load-tests sample_testplan.json -T tests/kernel/common/ -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id
  3. run command: $ZEPHYR_BASE/scripts/twister -T tests/kernel/common/ -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id
  4. compare twister report file (twister.json)

not able to reproduce the issue, can you please be more detailed, i..e how do you generate the test plan?

@nashif I've used created test plan from case without test plan.

@PerMac
Copy link
Member

PerMac commented Jun 30, 2025

@nashif to reproduce:

  1. scripts/twister -T samples/hello_world/ -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id --save-tests testplan.json
  2. scripts/twister --load-tests testplan.json -p nrf52840dk/nrf52840 --enable-size-report --no-detailed-test-id
  3. Look at twister-out/twister.json for ram/rom footprints with and without the PR

@nashif nashif added this to the v4.2.0 milestone Jul 1, 2025
@danieldegrasse danieldegrasse merged commit bec789d into zephyrproject-rtos:main Jul 1, 2025
39 checks passed
@katgiadla katgiadla deleted the instancies_footprint branch July 3, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Twister Twister size: XS A PR changing only a single line of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants