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

Merge CGroups into Develop #1555

Merged
merged 50 commits into from
Jun 14, 2019
Merged

Merge CGroups into Develop #1555

merged 50 commits into from
Jun 14, 2019

Conversation

vrdmr
Copy link
Member

@vrdmr vrdmr commented Jun 14, 2019

Description

Merging the changes from CGroups branch into develop.

Issue #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and Travis.CI is passing.

Quality of Code and Contribution Guidelines


This change is Reviewable

narrieta and others added 30 commits May 13, 2019 11:39
* API for extension cgroups

* add systemd implemented methods for extensions

* fix and improve tests

* add comments

* add daemon-reload after removing units

* code refactoring

* fix tests

* change how we check systemd

* fix updated check for systemd

* fix systemd check again

* update comment for systemd check

* address most CR comments

* add unit test for API resolution

* address CR comments and add unit tests

* revert is_systemd method
* Added unit tests fror CGroupApi

* Remove comments
Making cgroup telemetry work end to end, with new spec for metrics
* Added unit tests for CGroupConfigurator

* Added test for start_extension_command

* Do not mount cgroups
…-cgroups-enabled

Adding more unittests to enable cgroup telemetry tests and fixing nit bugs in CGT class.
narrieta and others added 20 commits June 10, 2019 16:50
Create unique scopes for extensions
Also, added a test for empty_cgroup.
Changed the implementation and the unittests for the is_tracked check.
 Also scope name is now not created in this PR
Bug fixes for duplicate copies and scope name
Exposed the cgroups.collect exceptions to distinguish difference between incorrect configuration and 0 value.
Preventing incorrect metrics to be sent on telemetry
@vrdmr vrdmr requested review from narrieta and pgombar June 14, 2019 00:55
@codecov
Copy link

codecov bot commented Jun 14, 2019

Codecov Report

Merging #1555 into develop will increase coverage by 2.34%.
The diff coverage is 77.9%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1555      +/-   ##
===========================================
+ Coverage    60.89%   63.23%   +2.34%     
===========================================
  Files           75       78       +3     
  Lines        10888    11035     +147     
  Branches      1562     1552      -10     
===========================================
+ Hits          6630     6978     +348     
+ Misses        3943     3719     -224     
- Partials       315      338      +23
Impacted Files Coverage Δ
azurelinuxagent/common/protocol/wire.py 69.2% <ø> (ø) ⬆️
azurelinuxagent/common/exception.py 91.35% <100%> (+0.33%) ⬆️
azurelinuxagent/common/logger.py 88.59% <100%> (+1.18%) ⬆️
azurelinuxagent/daemon/main.py 72.91% <100%> (ø) ⬆️
azurelinuxagent/ga/exthandlers.py 81.48% <100%> (+0.07%) ⬆️
azurelinuxagent/ga/update.py 88.31% <100%> (+0.11%) ⬆️
azurelinuxagent/common/event.py 82.69% <100%> (+2.38%) ⬆️
azurelinuxagent/common/cgroupapi.py 63.76% <63.76%> (ø)
azurelinuxagent/common/osutil/default.py 55.55% <66.66%> (+1.77%) ⬆️
azurelinuxagent/common/cgroup.py 69.64% <69.64%> (ø)
... and 9 more

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 3323a88...ab9cffe. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 14, 2019

Codecov Report

Merging #1555 into develop will increase coverage by 2.52%.
The diff coverage is 77.9%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1555      +/-   ##
===========================================
+ Coverage    60.89%   63.41%   +2.52%     
===========================================
  Files           75       78       +3     
  Lines        10888    11084     +196     
  Branches      1562     1568       +6     
===========================================
+ Hits          6630     7029     +399     
+ Misses        3943     3718     -225     
- Partials       315      337      +22
Impacted Files Coverage Δ
azurelinuxagent/common/protocol/wire.py 70.73% <ø> (+1.53%) ⬆️
azurelinuxagent/common/exception.py 91.35% <100%> (+0.33%) ⬆️
azurelinuxagent/common/logger.py 88.59% <100%> (+1.18%) ⬆️
azurelinuxagent/daemon/main.py 72.91% <100%> (ø) ⬆️
azurelinuxagent/ga/exthandlers.py 81.48% <100%> (+0.07%) ⬆️
azurelinuxagent/ga/update.py 88.31% <100%> (+0.11%) ⬆️
azurelinuxagent/common/event.py 82.69% <100%> (+2.38%) ⬆️
azurelinuxagent/common/cgroupapi.py 63.76% <63.76%> (ø)
azurelinuxagent/common/osutil/default.py 55.55% <66.66%> (+1.77%) ⬆️
azurelinuxagent/common/cgroup.py 69.64% <69.64%> (ø)
... and 10 more

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 3323a88...ab9cffe. Read the comment docs.

Copy link
Contributor

@pgombar pgombar left a comment

Choose a reason for hiding this comment

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

LGTM

@vrdmr vrdmr merged commit 3816e53 into develop Jun 14, 2019
@vrdmr vrdmr deleted the cgroups branch June 14, 2019 18:11
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