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

[AutoRelease] t2-compute-2024-08-02-89681(can only be merged by SDK owner) #36725

Closed
wants to merge 1 commit into from

code and test

db08418
Select commit
Loading
Failed to load commit list.
Closed

[AutoRelease] t2-compute-2024-08-02-89681(can only be merged by SDK owner) #36725

code and test
db08418
Select commit
Loading
Failed to load commit list.
Azure Pipelines / python - compute - ci failed Aug 2, 2024 in 1h 37m 56s

Build #20240802.1 had test failures

Details

Tests

  • Failed: 96 (1.38%)
  • Passed: 228 (3.28%)
  • Other: 6,624 (95.34%)
  • Total: 6,948

Annotations

Check failure on line 20 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

Build log #L20

ChangeLog[/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/CHANGELOG.md] does not have an entry for version 0.0.0.

Check failure on line 22 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

Build log #L22

PowerShell exited with code '1'.

Check failure on line 2844 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

Build log #L2844

The process '/opt/hostedtoolcache/Python/3.9.19/x64/bin/python' failed with exit code 1

Check failure on line 29397 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

Build log #L29397

PowerShell exited with code '1'.

Check failure on line 1 in test_compute_availability_sets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

test_compute_availability_sets

azure.core.exceptions.ResourceNotFoundError: Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse8d12c44?api-version=2024-07-01
Uri doesn't match:
    request <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse8d12c44?api-version=2024-07-01>
    record  <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse8d12c44?api-version=2024-03-01>
Header differences:
Body differences:

Content: {"Message":"Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse8d12c44?api-version=2024-07-01\nUri doesn\u0027t match:\n    request \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse8d12c44?api-version=2024-07-01\u003E\n    record  \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse8d12c44?api-version=2024-03-01\u003E\nHeader differences:\nBody differences:\n","Status":"NotFound"}
Raw output
args = (<test_mgmt_compute.TestMgmtCompute object at 0x7f9406c14e90>,)
kwargs = {'__aggregate_cache_key': ('ResourceGroupPreparer', 'resource_group', ''), 'location': 'eastus', 'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
trimmed_kwargs = {'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
test_id = 'sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.pyTestMgmtComputetest_compute_availability_sets'
variables = {}
combined_call = <function recorded_by_proxy.<locals>.record_wrap.<locals>.combined_call at 0x7f940442ea20>
test_variables = None, test_run = False, logger = <RootLogger root (INFO)>

    def record_wrap(*args, **kwargs):
        def transform_args(*args, **kwargs):
            copied_positional_args = list(args)
            request = copied_positional_args[1]
    
            transform_request(request, recording_id)
    
            return tuple(copied_positional_args), kwargs
    
        trimmed_kwargs = {k: v for k, v in kwargs.items()}
        trim_kwargs_from_test_function(test_func, trimmed_kwargs)
    
        if is_live_and_not_recording():
            return test_func(*args, **trimmed_kwargs)
    
        test_id = get_test_id()
        recording_id, variables = start_record_or_playback(test_id)
        original_transport_func = RequestsTransport.send
    
        def combined_call(*args, **kwargs):
            adjusted_args, adjusted_kwargs = transform_args(*args, **kwargs)
            result = original_transport_func(*adjusted_args, **adjusted_kwargs)
    
            # make the x-recording-upstream-base-uri the URL of the request
            # this makes the request look like it was made to the original endpoint instead of to the proxy
            # without this, things like LROPollers can get broken by polling the wrong endpoint
            parsed_result = url_parse.urlparse(result.request.url)
            upstream_uri = url_parse.urlparse(result.request.headers["x-recording-upstream-base-uri"])
            upstream_uri_dict = {
                "scheme": upstream_uri.scheme,
                "netloc": upstream_uri.netloc,
            }
            original_target = parsed_result._replace(**upstream_uri_dict).geturl()
    
            result.request.url = original_target
            return result
    
        RequestsTransport.send = combined_call
    
        # call the modified function
        # we define test_variables before invoking the test so the variable is defined in case of an exception
        test_variables = None
        # this tracks whether the test has been run yet; used when calling the test function with/without `variables`
        # running without `variables` in the `except` block leads to unnecessary exceptions in test execution output
        test_run = False
        try:
            try:
                test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
                test_run = True
            except TypeError as error:
                if "unexpected keyword argument" in str(error) and "variables" in str(error):
                    logger = logging.getLogger()
                    logger.info(
                        "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
                        "`variables` parameter to make use of recorded test variables."
                    )
                else:
                    raise error
            # if the test couldn't accept `variables`, run the test without passing them
            if not test_run:
>               test_variables = test_func(*args, **trimmed_kwargs)

.tox/mindependency/lib/python3.12/site-packages/devtools_testutils/proxy_testcase.py:238: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_mgmt_compute.TestMgmtCompute object at 0x7f9406c14e90

Check failure on line 1 in test_compute_proximity_placement_groups

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

test_compute_proximity_placement_groups

azure.core.exceptions.ResourceNotFoundError: Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroups973e3037?api-version=2024-07-01
Uri doesn't match:
    request <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroups973e3037?api-version=2024-07-01>
    record  <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroups973e3037?api-version=2024-03-01>
Header differences:
Body differences:

Content: {"Message":"Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroups973e3037?api-version=2024-07-01\nUri doesn\u0027t match:\n    request \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroups973e3037?api-version=2024-07-01\u003E\n    record  \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroups973e3037?api-version=2024-03-01\u003E\nHeader differences:\nBody differences:\n","Status":"NotFound"}
Raw output
args = (<test_mgmt_compute.TestMgmtCompute object at 0x7f9406c150a0>,)
kwargs = {'__aggregate_cache_key': ('ResourceGroupPreparer', 'resource_group', ''), 'location': 'eastus', 'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
trimmed_kwargs = {'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
test_id = 'sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.pyTestMgmtComputetest_compute_proximity_placement_groups'
variables = {}
combined_call = <function recorded_by_proxy.<locals>.record_wrap.<locals>.combined_call at 0x7f93ffd59a80>
test_variables = None, test_run = False, logger = <RootLogger root (INFO)>

    def record_wrap(*args, **kwargs):
        def transform_args(*args, **kwargs):
            copied_positional_args = list(args)
            request = copied_positional_args[1]
    
            transform_request(request, recording_id)
    
            return tuple(copied_positional_args), kwargs
    
        trimmed_kwargs = {k: v for k, v in kwargs.items()}
        trim_kwargs_from_test_function(test_func, trimmed_kwargs)
    
        if is_live_and_not_recording():
            return test_func(*args, **trimmed_kwargs)
    
        test_id = get_test_id()
        recording_id, variables = start_record_or_playback(test_id)
        original_transport_func = RequestsTransport.send
    
        def combined_call(*args, **kwargs):
            adjusted_args, adjusted_kwargs = transform_args(*args, **kwargs)
            result = original_transport_func(*adjusted_args, **adjusted_kwargs)
    
            # make the x-recording-upstream-base-uri the URL of the request
            # this makes the request look like it was made to the original endpoint instead of to the proxy
            # without this, things like LROPollers can get broken by polling the wrong endpoint
            parsed_result = url_parse.urlparse(result.request.url)
            upstream_uri = url_parse.urlparse(result.request.headers["x-recording-upstream-base-uri"])
            upstream_uri_dict = {
                "scheme": upstream_uri.scheme,
                "netloc": upstream_uri.netloc,
            }
            original_target = parsed_result._replace(**upstream_uri_dict).geturl()
    
            result.request.url = original_target
            return result
    
        RequestsTransport.send = combined_call
    
        # call the modified function
        # we define test_variables before invoking the test so the variable is defined in case of an exception
        test_variables = None
        # this tracks whether the test has been run yet; used when calling the test function with/without `variables`
        # running without `variables` in the `except` block leads to unnecessary exceptions in test execution output
        test_run = False
        try:
            try:
                test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
                test_run = True
            except TypeError as error:
                if "unexpected keyword argument" in str(error) and "variables" in str(error):
                    logger = logging.getLogger()
                    logger.info(
                        "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
                        "`variables` parameter to make use of recorded test variables."
                    )
                else:
                    raise error
            # if the test couldn't accept `variables`, run the test without passing them
            if not test_run:
>               test_variables = test_func(*args, **trimmed_kwargs)

.tox/mindependency/lib/python3.12/site-packages/devtools_testutils/proxy_testcase.py:238: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_mgmt_compute.TestMgmtCompute object at 0x7f9

Check failure on line 1 in test_compute_shot

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

test_compute_shot

azure.core.exceptions.ResourceNotFoundError: Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagexbc8e2966?api-version=2024-07-01
Uri doesn't match:
    request <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagexbc8e2966?api-version=2024-07-01>
    record  <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagexbc8e2966?api-version=2024-03-01>
Header differences:
Body differences:

Content: {"Message":"Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagexbc8e2966?api-version=2024-07-01\nUri doesn\u0027t match:\n    request \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagexbc8e2966?api-version=2024-07-01\u003E\n    record  \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagexbc8e2966?api-version=2024-03-01\u003E\nHeader differences:\nBody differences:\n","Status":"NotFound"}
Raw output
args = (<test_mgmt_compute_disks.TestMgmtCompute object at 0x7f9406c16990>,)
kwargs = {'__aggregate_cache_key': ('ResourceGroupPreparer', 'resource_group', ''), 'location': 'eastus', 'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
trimmed_kwargs = {'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
test_id = 'sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.pyTestMgmtComputetest_compute_shot'
variables = {}
combined_call = <function recorded_by_proxy.<locals>.record_wrap.<locals>.combined_call at 0x7f93ff9dc220>
test_variables = None, test_run = False, logger = <RootLogger root (INFO)>

    def record_wrap(*args, **kwargs):
        def transform_args(*args, **kwargs):
            copied_positional_args = list(args)
            request = copied_positional_args[1]
    
            transform_request(request, recording_id)
    
            return tuple(copied_positional_args), kwargs
    
        trimmed_kwargs = {k: v for k, v in kwargs.items()}
        trim_kwargs_from_test_function(test_func, trimmed_kwargs)
    
        if is_live_and_not_recording():
            return test_func(*args, **trimmed_kwargs)
    
        test_id = get_test_id()
        recording_id, variables = start_record_or_playback(test_id)
        original_transport_func = RequestsTransport.send
    
        def combined_call(*args, **kwargs):
            adjusted_args, adjusted_kwargs = transform_args(*args, **kwargs)
            result = original_transport_func(*adjusted_args, **adjusted_kwargs)
    
            # make the x-recording-upstream-base-uri the URL of the request
            # this makes the request look like it was made to the original endpoint instead of to the proxy
            # without this, things like LROPollers can get broken by polling the wrong endpoint
            parsed_result = url_parse.urlparse(result.request.url)
            upstream_uri = url_parse.urlparse(result.request.headers["x-recording-upstream-base-uri"])
            upstream_uri_dict = {
                "scheme": upstream_uri.scheme,
                "netloc": upstream_uri.netloc,
            }
            original_target = parsed_result._replace(**upstream_uri_dict).geturl()
    
            result.request.url = original_target
            return result
    
        RequestsTransport.send = combined_call
    
        # call the modified function
        # we define test_variables before invoking the test so the variable is defined in case of an exception
        test_variables = None
        # this tracks whether the test has been run yet; used when calling the test function with/without `variables`
        # running without `variables` in the `except` block leads to unnecessary exceptions in test execution output
        test_run = False
        try:
            try:
                test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
                test_run = True
            except TypeError as error:
                if "unexpected keyword argument" in str(error) and "variables" in str(error):
                    logger = logging.getLogger()
                    logger.info(
                        "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
                        "`variables` parameter to make use of recorded test variables."
                    )
                else:
                    raise error
            # if the test couldn't accept `variables`, run the test without passing them
            if not test_run:
>               test_variables = test_func(*args, **trimmed_kwargs)

.tox/mindependency/lib/python3.12/site-packages/devtools_testutils/proxy_testcase.py:238: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_mgmt_compute_disks.TestMgmtCompute object at 0x7f9406c

Check failure on line 1 in test_compute_vm

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python - compute - ci

test_compute_vm

azure.core.exceptions.ResourceNotFoundError: Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexeb772750?api-version=2024-07-01
Uri doesn't match:
    request <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexeb772750?api-version=2024-07-01>
    record  <https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexeb772750?api-version=2024-03-01>
Header differences:
Body differences:

Content: {"Message":"Unable to find a record for the request PUT https://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexeb772750?api-version=2024-07-01\nUri doesn\u0027t match:\n    request \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexeb772750?api-version=2024-07-01\u003E\n    record  \u003Chttps://Sanitized.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexeb772750?api-version=2024-03-01\u003E\nHeader differences:\nBody differences:\n","Status":"NotFound"}
Raw output
args = (<test_mgmt_compute_vm.TestMgmtCompute object at 0x7f9406c16d20>,)
kwargs = {'__aggregate_cache_key': ('ResourceGroupPreparer', 'resource_group', ''), 'location': 'eastus2', 'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
trimmed_kwargs = {'resource_group': FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')}
test_id = 'sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.pyTestMgmtComputetest_compute_vm'
variables = {}
combined_call = <function recorded_by_proxy.<locals>.record_wrap.<locals>.combined_call at 0x7f93ff9de020>
test_variables = None, test_run = False, logger = <RootLogger root (INFO)>

    def record_wrap(*args, **kwargs):
        def transform_args(*args, **kwargs):
            copied_positional_args = list(args)
            request = copied_positional_args[1]
    
            transform_request(request, recording_id)
    
            return tuple(copied_positional_args), kwargs
    
        trimmed_kwargs = {k: v for k, v in kwargs.items()}
        trim_kwargs_from_test_function(test_func, trimmed_kwargs)
    
        if is_live_and_not_recording():
            return test_func(*args, **trimmed_kwargs)
    
        test_id = get_test_id()
        recording_id, variables = start_record_or_playback(test_id)
        original_transport_func = RequestsTransport.send
    
        def combined_call(*args, **kwargs):
            adjusted_args, adjusted_kwargs = transform_args(*args, **kwargs)
            result = original_transport_func(*adjusted_args, **adjusted_kwargs)
    
            # make the x-recording-upstream-base-uri the URL of the request
            # this makes the request look like it was made to the original endpoint instead of to the proxy
            # without this, things like LROPollers can get broken by polling the wrong endpoint
            parsed_result = url_parse.urlparse(result.request.url)
            upstream_uri = url_parse.urlparse(result.request.headers["x-recording-upstream-base-uri"])
            upstream_uri_dict = {
                "scheme": upstream_uri.scheme,
                "netloc": upstream_uri.netloc,
            }
            original_target = parsed_result._replace(**upstream_uri_dict).geturl()
    
            result.request.url = original_target
            return result
    
        RequestsTransport.send = combined_call
    
        # call the modified function
        # we define test_variables before invoking the test so the variable is defined in case of an exception
        test_variables = None
        # this tracks whether the test has been run yet; used when calling the test function with/without `variables`
        # running without `variables` in the `except` block leads to unnecessary exceptions in test execution output
        test_run = False
        try:
            try:
                test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
                test_run = True
            except TypeError as error:
                if "unexpected keyword argument" in str(error) and "variables" in str(error):
                    logger = logging.getLogger()
                    logger.info(
                        "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
                        "`variables` parameter to make use of recorded test variables."
                    )
                else:
                    raise error
            # if the test couldn't accept `variables`, run the test without passing them
            if not test_run:
>               test_variables = test_func(*args, **trimmed_kwargs)

.tox/mindependency/lib/python3.12/site-packages/devtools_testutils/proxy_testcase.py:238: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_mgmt_compute_vm.TestMgmtCompute object at 0x7f9406c16d20>
res