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

Use ExtensionsGoalState.id when checking for changes in extensions #2499

Merged
merged 3 commits into from
Feb 11, 2022

Conversation

narrieta
Copy link
Member

@narrieta narrieta commented Feb 9, 2022

Once Fast Track is enabled we cannot use the incarnation to check for changes in the extensions goal state. Using 'id' instead (this abstracts the incarnation/etag used by WireServer/HostGAPlugin).

@@ -2482,6 +2483,17 @@ def __init__(self, return_value=0, side_effect=None):
self.wait = Mock(return_value=return_value, side_effect=side_effect)


class ExtensionsGoalStateMock(object):
Copy link
Member Author

Choose a reason for hiding this comment

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

These tests are using deep internals of the UpdateHandler object; I patched them for now, but eventually they should be updated to use the mock_protocol utilities.

@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #2499 (66b7b11) into develop (25c9b55) will increase coverage by 0.01%.
The diff coverage is 93.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2499      +/-   ##
===========================================
+ Coverage    71.80%   71.82%   +0.01%     
===========================================
  Files          101      101              
  Lines        15076    15080       +4     
  Branches      2391     2392       +1     
===========================================
+ Hits         10826    10831       +5     
+ Misses        3769     3766       -3     
- Partials       481      483       +2     
Impacted Files Coverage Δ
azurelinuxagent/common/protocol/wire.py 78.76% <ø> (-0.06%) ⬇️
azurelinuxagent/ga/update.py 88.77% <92.85%> (+0.16%) ⬆️
...ol/extensions_goal_state_from_extensions_config.py 91.97% <100.00%> (+0.36%) ⬆️
...protocol/extensions_goal_state_from_vm_settings.py 80.07% <100.00%> (ø)
azurelinuxagent/ga/exthandlers.py 85.82% <0.00%> (-0.08%) ⬇️

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 25c9b55...66b7b11. Read the comment docs.

@narrieta narrieta merged commit daad9fb into Azure:develop Feb 11, 2022
@narrieta narrieta deleted the incarnation branch February 11, 2022 20:27
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.

2 participants