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

Feature/proxy attribute forwarding #215

Merged
merged 12 commits into from
Jan 12, 2023

Conversation

sebclrsn
Copy link
Contributor

This PR implements the cchannel API forwarding mechanism discussed as partial solution 2 for complex connectors.

It also fixes the activate_log functionality so that when loggers are activated by one auxiliary, they aren't deactivated by the following ones

@sebclrsn sebclrsn requested review from sebastianpfischer, TedRio and BKaDamien and removed request for TedRio December 21, 2022 16:08
@codecov
Copy link

codecov bot commented Dec 21, 2022

Codecov Report

Merging #215 (d62c63d) into master (91345aa) will increase coverage by 0.03%.
The diff coverage is 96.00%.

❗ Current head d62c63d differs from pull request most recent head 1ad202d. Consider uploading reports for the commit 1ad202d to get more accurate results

@@            Coverage Diff             @@
##           master     #215      +/-   ##
==========================================
+ Coverage   95.37%   95.40%   +0.03%     
==========================================
  Files          72       72              
  Lines        5551     5577      +26     
==========================================
+ Hits         5294     5321      +27     
+ Misses        257      256       -1     
Impacted Files Coverage Δ
src/pykiso/lib/auxiliaries/mp_proxy_auxiliary.py 98.48% <83.33%> (-1.52%) ⬇️
src/pykiso/auxiliary.py 100.00% <100.00%> (ø)
src/pykiso/interfaces/dt_auxiliary.py 100.00% <100.00%> (+1.73%) ⬆️
src/pykiso/lib/auxiliaries/proxy_auxiliary.py 100.00% <100.00%> (ø)
src/pykiso/lib/connectors/cc_mp_proxy.py 100.00% <100.00%> (ø)
src/pykiso/lib/connectors/cc_proxy.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

each auxiliary that has to share it, ``pykiso`` will do the rest for you.


Remove reduncancy of activate_log configuration parameter
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Remove reduncancy of activate_log configuration parameter
Remove redundancy of activate_log configuration parameter

attached to the created :py:class:`~pykiso.lib.auxiliaries.proxy_auxiliary.ProxyAuxiliary`
is still possible, but keep in mind that if one auxiliary modifies one the communication
channel's attributes, every other auxiliary sharing this communication channel will be
affected by this change.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should illustrate that with a python snippet somewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To me it is sufficient to have this behaviour explained with text and then illustrated with the schema linked below, adding a code snippet here will add a lot of content for a side-note the user shouldn't usually have to care about

docs/whats_new/version_ongoing.rst Outdated Show resolved Hide resolved
src/pykiso/auxiliary.py Show resolved Hide resolved
@sebastianpfischer
Copy link
Contributor

Please separate the PR in 2 with clear descriptions for each and the feature you want to add. Thanks!

@sebclrsn
Copy link
Contributor Author

Please separate the PR in 2 with clear descriptions for each and the feature you want to add. Thanks!

See #223

@sebclrsn sebclrsn merged commit 15bf26d into eclipse:master Jan 12, 2023
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.

feat: implement automatic proxy instantiation in the dynamic loader
4 participants