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

Merging release 2.2.41 into master #1585

Merged
merged 91 commits into from
Jul 17, 2019
Merged

Merging release 2.2.41 into master #1585

merged 91 commits into from
Jul 17, 2019

Conversation

vrdmr
Copy link
Member

@vrdmr vrdmr commented Jul 16, 2019

Description

Merging release 2.2.41 into master


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

vrdmr and others added 30 commits March 4, 2019 13:24
Merging Release 2.2.37 into develop
18.04 changed the method of managing resolv.conf vs. 16.04; the new method involves letting systemd-networkd manage that file. A previous fix corrected waagent behavior for 18.04 but did not do so for subsequent releases. Now that Ubuntu's direction is clear, this commit makes the correction in all versions of Ubuntu from 18.04 onwards. Other distros are unaffected by this bug and by this fix.
* Added description for Extension Error Codes

* Correcting the test - to send the correct CRP Extension Error code

* Adding docstring to describe ExtensionErrorCodes
…is not Pkcs7BlobWithPfxContents (#1474)

* Certificates parser gracefully exits if format of package is not Pkcs7BlobWithPfxContents

* Add missing files

* change message to warning
* add fixes for cgroup setup and PID tracking

* cleanup code comments

* disable cgroups test if not supported by environment

* remove wrapper cgroup tracking and other nits

* fix whitespace

* nit fixes; addressing CR comments
…s - when it was downloaded directly or through HostGA
* Suppress 'Errno 2' messages when deleting extensions

* Added unit tests

* Fixes for unit tests
…de; Also modified test to follow AAA pattern for unit-tests
Fix for sending wrong header to HostGA /extensionManifest calls
* Release 2.2.39 (#1494)

* Fix header

* Update agent version to 2.2.40
* 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
vrdmr and others added 24 commits June 11, 2019 09:39
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
Merge CGroups into Develop
* Preventing empty extensions to be sent into telemetry
* nit; adding comment
* add failure checks for systemd-run

* add unit tests

* disable systemd-run tests if not root

* refactor systemd-run check to use stdout/err instead of journalctl
* Prevent logging for ERRNO-2 cases
@vrdmr vrdmr requested a review from narrieta July 16, 2019 18:57
@vrdmr vrdmr mentioned this pull request Jul 16, 2019
6 tasks
@codecov
Copy link

codecov bot commented Jul 16, 2019

Codecov Report

Merging #1585 into master will increase coverage by 2.55%.
The diff coverage is 80.7%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1585      +/-   ##
==========================================
+ Coverage   60.82%   63.38%   +2.55%     
==========================================
  Files          75       78       +3     
  Lines       10878    11056     +178     
  Branches     1559     1559              
==========================================
+ Hits         6617     7008     +391     
+ Misses       3946     3709     -237     
- Partials      315      339      +24
Impacted Files Coverage Δ
azurelinuxagent/common/exception.py 91.35% <100%> (+0.33%) ⬆️
azurelinuxagent/common/version.py 68.96% <100%> (ø) ⬆️
azurelinuxagent/common/utils/shellutil.py 47.16% <100%> (ø) ⬆️
azurelinuxagent/ga/update.py 88.31% <100%> (+0.11%) ⬆️
azurelinuxagent/daemon/main.py 72.91% <100%> (ø) ⬆️
azurelinuxagent/ga/exthandlers.py 81.29% <100%> (+0.4%) ⬆️
azurelinuxagent/common/utils/processutil.py 100% <100%> (ø) ⬆️
azurelinuxagent/common/event.py 82.75% <100%> (+2.44%) ⬆️
azurelinuxagent/common/logger.py 88.59% <100%> (+1.18%) ⬆️
azurelinuxagent/common/cgroupapi.py 62.77% <62.77%> (ø)
... and 13 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 5d3757a...bc4b721. Read the comment docs.

@vrdmr vrdmr merged commit a0bb361 into Azure:master Jul 17, 2019
This pull request was closed.
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.

7 participants