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

Fix Travis special checks for distro and remove useless cgroup tests #1959

Merged
merged 6 commits into from
Jul 23, 2020

Conversation

pgombar
Copy link
Contributor

@pgombar pgombar commented Jul 22, 2020

Description

We had special checks for distro resolution in Travis since Ubuntu 14.04 (trusty) was resolving to something else (debian/stretch). Unit tests started failing since Travis updated their OS environment variables and also fixed the distro resolution, so our custom solution is not needed anymore.

os.environ['_system_name'] and os.environ['_system_version'] are deprecated, now it's just 'TRAVIS_DIST': 'xenial'


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

@codecov
Copy link

codecov bot commented Jul 22, 2020

Codecov Report

Merging #1959 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1959   +/-   ##
========================================
  Coverage    69.67%   69.67%           
========================================
  Files           85       85           
  Lines        11985    11985           
  Branches      1677     1677           
========================================
  Hits          8350     8350           
  Misses        3263     3263           
  Partials       372      372           

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 f215c98...8d89e0e. Read the comment docs.

return ret


def is_trusty_in_travis():
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This wasn't used anywhere.

return Ubuntu16OSUtil()


def mock_get_osutil(*args):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The whole method is obsolete since there is no need to do custom checks in Travis anymore.

ZhidongPeng
ZhidongPeng previously approved these changes Jul 22, 2020
larohra
larohra previously approved these changes Jul 22, 2020
kevinclark19a
kevinclark19a previously approved these changes Jul 23, 2020
@pgombar pgombar dismissed stale reviews from kevinclark19a, larohra, and ZhidongPeng via 8d89e0e July 23, 2020 00:22
@pgombar pgombar changed the title Fix Travis special checks for distro Fix Travis special checks for distro and remove useless cgroup tests Jul 23, 2020
@pgombar pgombar merged commit 6de8cf6 into Azure:develop Jul 23, 2020
@pgombar pgombar deleted the fix_travis branch July 23, 2020 00:26
pgombar added a commit to pgombar/WALinuxAgent that referenced this pull request Jul 23, 2020
pgombar added a commit to pgombar/WALinuxAgent that referenced this pull request Jul 23, 2020
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.

None yet

5 participants