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

2nd release of messaging refactor #407

Open
wants to merge 206 commits into
base: main
Choose a base branch
from

Merge branch 'main' into messaging_refactor_release2nd

9ea929e
Select commit
Loading
Failed to load commit list.
Open

2nd release of messaging refactor #407

Merge branch 'main' into messaging_refactor_release2nd
9ea929e
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Oct 25, 2023 in 0s

1 new security issue (0 max.).

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 3
- Added 21
           

Complexity increasing per file
==============================
- tests/lava/magma/runtime/message_infrastructure/test_selector.py  4
- src/lava/magma/runtime/_c_message_infrastructure/examples/c_pingpong/p.py  6
- tests/lava/magma/compiler/channels/test_channel.py  5
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/test_cyclonedds_to_ros.py  2
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/ros_talk_with_dds_py/ros_talk_with_dds_py/utils/np_mdata_trans.py  3
- src/lava/magma/runtime/message_infrastructure/__init__.py  5
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/test_fastdds_from_ros.py  2
- tests/lava/magma/runtime/message_infrastructure/test_all_delivery.py  3
- src/lava/magma/runtime/message_infrastructure/pypychannel.py  10
- src/lava/magma/runtime/message_infrastructure/py_multiprocessing.py  4
- tests/lava/magma/runtime/message_infrastructure/test_exception.py  2
- src/lava/magma/runtime/message_infrastructure/message_interface_enum.py  1
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/ros_talk_with_dds_py/ros_talk_with_dds_py/publisher.py  1
- tests/lava/magma/runtime/message_infrastructure/test_multiprocessing.py  2
- tests/lava/magma/runtime/message_infrastructure/test_channel_block.py  3
- src/lava/magma/runtime/message_infrastructure/py_ports.py  1
- prebuild.py  8
- tests/lava/magma/runtime/message_infrastructure/test_temp_channel.py  3
- src/lava/magma/runtime/message_infrastructure/interfaces.py  1
- tests/lava/magma/runtime/test_file_descriptors.py  2
- src/lava/magma/runtime/message_infrastructure/ports.py  4
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/test_fastdds_to_ros.py  2
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/ros_talk_with_dds_py/ros_talk_with_dds_py/subscriber.py  1
- tests/lava/magma/runtime/message_infrastructure/test_channel.py  3
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/test_cyclonedds_from_ros.py  2
- src/lava/magma/core/process/variable.py  1
- src/lava/magma/runtime/runtime_services/runtime_service.py  1
- src/lava/magma/runtime/runtime.py  4
- src/lava/magma/runtime/message_infrastructure/factory.py  2
- src/lava/magma/core/model/py/model.py  7
         

Complexity decreasing per file
==============================
+ tests/lava/tutorials/test_tutorials.py  -2
+ tests/lava/magma/compiler/test_channel_builder.py  -3
         

Clones added
============
- src/lava/proc/io/extractor.py  1
- tests/lava/proc/io/test_extractor.py  1
- src/lava/proc/io/injector.py  1
- tests/lava/magma/runtime/message_infrastructure/test_selector.py  1
- tests/lava/proc/io/test_injector.py  1
- src/lava/magma/runtime/_c_message_infrastructure/csrc/port_proxy.cc  2
- src/lava/magma/runtime/_c_message_infrastructure/csrc/channel/dds/fast_dds.cc  2
- src/lava/magma/runtime/_c_message_infrastructure/test/test_fastdds_from_ros.cc  1
- tests/lava/magma/compiler/channels/test_channel.py  6
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/test_cyclonedds_to_ros.py  1
- src/lava/magma/runtime/_c_message_infrastructure/test/test_shm_delivery.cc  7
- src/lava/magma/runtime/_c_message_infrastructure/csrc/channel/dds/cyclone_dds.cc  4
- src/lava/magma/runtime/_c_message_infrastructure/test/test_socket_delivery.cc  7
- tests/lava/magma/runtime/message_infrastructure/test_all_delivery.py  22
- src/lava/magma/runtime/message_infrastructure/pypychannel.py  4
- src/lava/magma/runtime/message_infrastructure/py_multiprocessing.py  2
- tests/lava/magma/runtime/message_infrastructure/test_exception.py  11
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/ros_talk_with_dds_cpp/src/publisher.cc  1
- src/lava/magma/runtime/_c_message_infrastructure/test/test_cyclonedds_from_ros.cc  1
- src/lava/magma/runtime/_c_message_infrastructure/csrc/channel/dds/protos/fast_dds/DDSMetaData.cc  8
- src/lava/magma/runtime/_c_message_infrastructure/test/test_multiprocessing.cc  2
- src/lava/magma/runtime/_c_message_infrastructure/test/test_grpc_delivery.cc  7
- src/lava/magma/runtime/_c_message_infrastructure/csrc/channel/dds/fast_dds.h  2
- src/lava/magma/runtime/_c_message_infrastructure/examples/ros2/test_fastdds_to_ros.py  1
- src/lava/magma/runtime/_c_message_infrastructure/test/test_cyclonedds_to_ros.cc  1
- tests/lava/magma/runtime/message_infrastructure/test_channel.py  11
- src/lava/magma/runtime/_c_message_infrastructure/test/test_channel.cc  1
- src/lava/magma/runtime/_c_message_infrastructure/test/test_ddschannel.cc  5
- src/lava/magma/runtime/_c_message_infrastructure/test/test_fastdds_to_ros.cc  3
- src/lava/proc/sparse/models.py  1
- src/lava/magma/compiler/utils.py  2
- src/lava/magma/runtime/runtime_services/runtime_service.py  2
- tests/lava/magma/runtime/test_exception_handling.py  5
- tests/lava/proc/dense/test_stdp_sim.py  1
- src/lava/magma/runtime/message_infrastructure/multiprocessing.py  2
- tests/lava/magma/compiler/builders/test_builder.py  1
- src/lava/magma/core/model/py/model.py  4
- tests/lava/magma/compiler/test_channel_builder.py  1
- src/lava/proc/dense/models.py  14
         

Clones removed
==============
+ tests/lava/proc/sparse/test_models.py  -7
+ tests/lava/magma/compiler/subcompilers/test_channel_builders_factory.py  -1
+ src/lava/magma/runtime/runtime.py  -2
         

See the complete overview on Codacy

Annotations

Check warning on line 52 in prebuild.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

prebuild.py#L52

subprocess call - check for execution of untrusted input.

Check warning on line 24 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L24

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 30 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L30

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 31 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L31

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 48 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L48

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 52 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L52

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 54 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L54

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 59 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L59

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 63 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L63

[list-item-bullet-indent] Incorrect indentation before bullet: remove 2 spaces

Check warning on line 63 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L63

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check warning on line 72 in src/lava/magma/runtime/_c_message_infrastructure/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/README.md#L72

[list-item-indent] Incorrect list-item indent: add 2 spaces

Check notice on line 27 in src/lava/magma/runtime/_c_message_infrastructure/csrc/channel/socket/socket_port.cc

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/_c_message_infrastructure/csrc/channel/socket/socket_port.cc#L27

Condition 'length==-1' is always false

Check notice on line 83 in src/lava/magma/runtime/message_infrastructure/__init__.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/message_infrastructure/__init__.py#L83

'lava.magma.runtime.message_infrastructure.MessageInfrastructurePywrapper.AbstractTransferPort' imported but unused (F401)

Check failure on line 388 in src/lava/magma/runtime/message_infrastructure/pypychannel.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/message_infrastructure/pypychannel.py#L388

No value for argument 'io_watchdog' in constructor call

Check failure on line 389 in src/lava/magma/runtime/message_infrastructure/pypychannel.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/magma/runtime/message_infrastructure/pypychannel.py#L389

No value for argument 'io_watchdog' in constructor call

Check notice on line 26 in src/lava/proc/io/extractor.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/proc/io/extractor.py#L26

'lava.magma.runtime.message_infrastructure.MessageInfrastructurePywrapper.ChannelType' imported but unused (F401)

Check warning on line 26 in src/lava/proc/io/extractor.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/proc/io/extractor.py#L26

Unused ChannelType imported from lava.magma.runtime.message_infrastructure.MessageInfrastructurePywrapper

Check notice on line 26 in src/lava/proc/io/injector.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/proc/io/injector.py#L26

'lava.magma.runtime.message_infrastructure.MessageInfrastructurePywrapper.ChannelType' imported but unused (F401)

Check warning on line 26 in src/lava/proc/io/injector.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/lava/proc/io/injector.py#L26

Unused ChannelType imported from lava.magma.runtime.message_infrastructure.MessageInfrastructurePywrapper

Check warning on line 32 in tests/lava/magma/compiler/builders/test_builder.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/lava/magma/compiler/builders/test_builder.py#L32

Unused NoOPWatchdogManager imported from lava.magma.runtime.message_infrastructure.watchdog

Check warning on line 23 in tests/lava/magma/compiler/test_channel_builder.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/lava/magma/compiler/test_channel_builder.py#L23

Unused NoOPWatchdogManager imported from lava.magma.runtime.message_infrastructure.watchdog