Skip to content

Conversation

@jaenrig-ifx
Copy link
Member

  • Added run_test_plan.py supporting the split of test info as yml file and the different HIL tests enabled for PSOC6.
  • This enables as well the retries for failing tests.
  • Added test-plan.yml
  • Updated github actions workflow to use new script.
  • Removed former bash script.

Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
@github-actions
Copy link

Code size report:

  mpy-cross:    +0 +0.000% 
   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
@jaenrig-ifx
Copy link
Member Author

@ramya-subramanyam once merge here. In psoc edge I need to check if the get_devs.py script works. If that is the case, we can reuse this directly.
And then we can discuss if we should move all these things to a common place together with the ports/psoc6 tests to avoid duplications...

@ramya-subramanyam
Copy link

@ramya-subramanyam once merge here. In psoc edge I need to check if the get_devs.py script works. If that is the case, we can reuse this directly. And then we can discuss if we should move all these things to a common place together with the ports/psoc6 tests to avoid duplications...

get_devs.py is working already so we can reuse it.

Copy link

@ramya-subramanyam ramya-subramanyam left a comment

Choose a reason for hiding this comment

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

Looks very good! The logs are much clearer.
Yes we can next bring it to psoc-edge from common repo

This class takes care of running the different MicroPython test types.
It supports the following:
- single: single device tests
- single_post_delay: single device tests with a delay between tests
Copy link
Member

Choose a reason for hiding this comment

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

Which is this type?

Copy link
Member Author

@jaenrig-ifx jaenrig-ifx Oct 23, 2025

Choose a reason for hiding this comment

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

As discussed, i will add a README in the newly created repo with this basic info.

- board: CY8CKIT-062S2-AI

- name: vfs-flash-large
type: custom
Copy link
Member

Choose a reason for hiding this comment

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

type field is not mandatory for each test? If not then how would the script know what to run?

Copy link
Member Author

Choose a reason for hiding this comment

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

As discussed, only custom and multi need to be explicitly added. Also will be documented.


```
./run_psoc6_tests.sh --test-suite ci-tests --board CY8CPROTO-062-4343W --hil ifx-mpy-hil
python tools/psoc6/run_test_plan.py wifi --max-retries 1 --hil-devs local-devs.yml --board CY8CKIT-062S2-AI
Copy link
Member

Choose a reason for hiding this comment

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

So you can specifically have retries defined for specific tests.. Nice!

Copy link
Member Author

Choose a reason for hiding this comment

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

The retries will apply to all the listed tests (all if no list specified as positional argument after the run_test_plan.py).

@jaenrig-ifx jaenrig-ifx merged commit 9679486 into ports-psoc6-main Oct 23, 2025
58 of 63 checks passed
@jaenrig-ifx jaenrig-ifx deleted the run-test-py branch October 23, 2025 13:06
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.

4 participants