connectedhomeip icon indicating copy to clipboard operation
connectedhomeip copied to clipboard

[Feature] Add ControllerTests to OIS unit-tests

Open ATmobica opened this issue 3 years ago • 4 comments

Feature description

Building ControllerTest fails for OIS unit tests. The python environment for generating the data model is wrong, not contain the required packages.

FAILED: gen/src/controller/data_model/app/PluginApplicationCallbacks.h gen/src/controller/data_model/app/callback-stub.cpp 
/workspaces/CHIP/.environment/pigweed-venv/bin/python3.9 ../../../../../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../../../../../ --current-path ../../../../../controller/data_model --default-toolchain=//config/openiotsdk/chip-gn/toolchain:openiotsdk --current-toolchain=//config/openiotsdk/chip-gn/toolchain:openiotsdk --capture-output --python-virtualenv-config python/gen/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/venv_metadata.json --python-dep-list-files gen/src/controller/data_model/data_model_codegen_metadata_path_list.txt -- ../../../../../../scripts/codegen.py --generator cpp-app --output-dir gen/src/controller/data_model --expected-outputs gen/src/controller/data_model/data_model_codegen.expected.outputs ../../../../../controller/data_model/controller-clusters.matter
Traceback (most recent call last):
  File "/workspaces/CHIP/src/test_driver/openiotsdk/unit-tests/build/chip_build/../../../../../../scripts/codegen.py", line 16, in <module>
    import click
ModuleNotFoundError: No module named 'click'

There are also issues with TestReadChunking and TestWriteChunking which fail in specific use cases. For now, the ControllerTest is skipped. We need to investigate and fix all issues.

ATmobica avatar Nov 24 '22 11:11 ATmobica

@pan- @andreilitvin Please, assign this issue to me. I'll deal with it soon.

ATmobica avatar Nov 24 '22 11:11 ATmobica

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar May 24 '23 00:05 stale[bot]

This stale issue has been automatically closed. Thank you for your contributions.

stale[bot] avatar Jun 10 '23 04:06 stale[bot]

This issue still exists.

andy31415 avatar May 08 '24 13:05 andy31415