Skip to content

{Container} Fix intermittent test failures; Issues #19835 and #19804#19848

Merged
zhoxing-ms merged 2 commits intoAzure:devfrom
joseph-porter:fixTestFailures
Oct 12, 2021
Merged

{Container} Fix intermittent test failures; Issues #19835 and #19804#19848
zhoxing-ms merged 2 commits intoAzure:devfrom
joseph-porter:fixTestFailures

Conversation

@joseph-porter
Copy link
Contributor

Description
CLI team reported intermittent test failures in container tests, these changes should address the issues.
#19804 - Changed Attach test to be live only
#19835 - Changed vnet create to not use polling

Testing Guide
Changes only made to test, no commands affected

History Notes

This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 11, 2021

Container

vnet_name,
VirtualNetwork(name=vnet_name,
location=location,
polling=False,
Copy link
Member

Choose a reason for hiding this comment

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

Be careful about the side-effect of polling=False (#17185 (comment)).

Copy link
Member

Choose a reason for hiding this comment

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

polling is added to the wrong place. It should be added to begin_create_or_update, not VirtualNetwork. Also, polling should be added to ALL begin_create_or_updates.

Actually, the preferred fix is to use .result().

Comment on lines +466 to +467
# Changing to live only because of intermittent test failures: https://github.com/Azure/azure-cli/issues/19804
@live_only()
Copy link
Member

Choose a reason for hiding this comment

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

Better to identify why exactly the test fails in CI.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so.
@joseph-porter We can merge this PR first to avoid the impact of this test in CI. Please find out the root cause of CI issue in the future and make this test support recording again

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.

4 participants