-
Notifications
You must be signed in to change notification settings - Fork 372
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
update github hosted build runner for Unit tests #2755
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,6 +218,7 @@ def test_rejects_invalid_log_collector_mode(self, mock_exit, mock_stderr): # py | |
@patch("azurelinuxagent.agent.LogCollector") | ||
def test_calls_collect_logs_with_proper_mode(self, mock_log_collector, *args): # pylint: disable=unused-argument | ||
agent = Agent(False, conf_file_path=os.path.join(data_dir, "test_waagent.conf")) | ||
mock_log_collector.run = Mock() | ||
|
||
agent.collect_logs(is_full_mode=True) | ||
full_mode = mock_log_collector.call_args_list[0][0][0] | ||
|
@@ -231,6 +232,7 @@ def test_calls_collect_logs_with_proper_mode(self, mock_log_collector, *args): | |
def test_calls_collect_logs_on_valid_cgroups(self, mock_log_collector): | ||
try: | ||
CollectLogsHandler.enable_cgroups_validation() | ||
mock_log_collector.run = Mock() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. run method has protocol initialization and that is internally making network calls which ls happening in loop due to retry setup on failures. |
||
|
||
def mock_cgroup_paths(*args, **kwargs): | ||
if args and args[0] == "self": | ||
|
@@ -246,9 +248,11 @@ def mock_cgroup_paths(*args, **kwargs): | |
finally: | ||
CollectLogsHandler.disable_cgroups_validation() | ||
|
||
def test_doesnt_call_collect_logs_on_invalid_cgroups(self): | ||
@patch("azurelinuxagent.agent.LogCollector") | ||
def test_doesnt_call_collect_logs_on_invalid_cgroups(self, mock_log_collector): | ||
try: | ||
CollectLogsHandler.enable_cgroups_validation() | ||
mock_log_collector.run = Mock() | ||
|
||
def mock_cgroup_paths(*args, **kwargs): | ||
if args and args[0] == "self": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we keep python 3.4? we should check telemetry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are very low and around 2000 vms running on py 3.4. All of them are either ubuntu 14 or Debian 8