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

Share protocol instance between main loop and remote access #1749

Merged
merged 2 commits into from
Jan 10, 2020

Conversation

narrieta
Copy link
Member

@narrieta narrieta commented Jan 9, 2020

Just a simple refactoring: passing the protocol instance from the main loop to remote access.


This change is Reviewable

@codecov
Copy link

codecov bot commented Jan 9, 2020

Codecov Report

Merging #1749 into develop will increase coverage by 0.05%.
The diff coverage is 86.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1749      +/-   ##
===========================================
+ Coverage    68.51%   68.56%   +0.05%     
===========================================
  Files           81       82       +1     
  Lines        11737    11740       +3     
  Branches      1645     1646       +1     
===========================================
+ Hits          8042     8050       +8     
+ Misses        3353     3346       -7     
- Partials       342      344       +2
Impacted Files Coverage Δ
azurelinuxagent/ga/monitor.py 89.24% <100%> (+1.93%) ⬆️
azurelinuxagent/common/singletonperthread.py 100% <100%> (ø)
azurelinuxagent/common/protocol/wire.py 76.69% <80%> (-0.05%) ⬇️
azurelinuxagent/common/protocol/util.py 83.41% <85.1%> (-0.9%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 331fe29...4d353d1. Read the comment docs.

import azurelinuxagent.ga.update as update


class TestImportHandler(AgentTestCase):
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious what was this file for?

Copy link
Member Author

Choose a reason for hiding this comment

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

Beats me :) I see no use for it and needs to be update when changing those methods. Since it provides no useful tests I decided to delete it instead of keeping it up to date

larohra
larohra previously approved these changes Jan 10, 2020
Copy link
Contributor

@larohra larohra left a comment

Choose a reason for hiding this comment

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

LGTM

pgombar
pgombar previously approved these changes Jan 10, 2020
@narrieta narrieta dismissed stale reviews from pgombar and larohra via 4d353d1 January 10, 2020 19:32
@pgombar pgombar self-requested a review January 10, 2020 19:37
@narrieta narrieta merged commit 5b60264 into Azure:develop Jan 10, 2020
@narrieta narrieta deleted the remote-access branch January 10, 2020 19:48
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.

3 participants