PR #3776 #18065
13 errors, 36 fail, 40 skipped, 155 pass in 4m 22s
Annotations
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_bulk (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:71: in test_run_bulk
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_bulk_from_yaml (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_from_yaml.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_from_yaml.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:198: in test_run_bulk_from_yaml
run = pf.runs.create_or_update(run=run)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_from_yaml.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_telemetry.TestTelemetry
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_inner_function_call (tests.sdk_cli_azure_test.e2etests.test_telemetry.TestTelemetry)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_telemetry_TestTelemetry_test_inner_function_call.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_telemetry_TestTelemetry_test_inner_function_call.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_telemetry.py:308: in test_inner_function_call
pf.runs.create_or_update(run=run)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_telemetry_TestTelemetry_test_inner_function_call.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_basic_evaluation (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_basic_evaluation.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 4 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_basic_evaluation.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 4 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:204: in test_basic_evaluation
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_basic_evaluation.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 4 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_basic_evaluation_without_data (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_basic_evaluation_without_data.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 3 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_basic_evaluation_without_data.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 3 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:229: in test_basic_evaluation_without_data
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_basic_evaluation_without_data.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 3 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_run_bulk_with_remote_flow (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', Exception('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n")))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:162: in get
self._fetch_and_populate_secret(datastore_resource)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:171: in _fetch_and_populate_secret
secrets = self._list_secrets(name=datastore_resource.name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:461: in created_flow
result = pf.flows.create_or_update(
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_flow_operations.py:142: in create_or_update
file_share_flow_path = self._resolve_flow_code_and_upload_to_file_share(flow=azure_flow)
promptflow/azure/operations/_flow_operations.py:291: in _resolve_flow_code_and_upload_to_file_share
datastore_info = get_datastore_info(datastore_operation, datastore_name)
promptflow/azure/operations/_artifact_utilities.py:69: in get_datastore_info
datastore = operations.get(name, include_secrets=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', Exception('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n")))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_bulk_with_registry_flow (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_registry_flow.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_registry_flow.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:276: in test_run_bulk_with_registry_flow
run = create_registry_run(name=name, registry_name=registry_name, runtime=runtime, pf=pf)
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:52: in create_registry_run
return pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_registry_flow.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_bulk_with_registry_flow_automatic_runtime (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_registry_flow_automatic_runtime.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_registry_flow_automatic_runtime.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:295: in test_run_bulk_with_registry_flow_automatic_runtime
run = create_registry_run(name=name, registry_name=registry_name, runtime=None, pf=pf)
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:52: in create_registry_run
return pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_registry_flow_automatic_runtime.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_with_connection_overwrite (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_connection_overwrite.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_connection_overwrite.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:302: in test_run_with_connection_overwrite
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_connection_overwrite.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_with_env_overwrite (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_env_overwrite.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_env_overwrite.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:319: in test_run_with_env_overwrite
run = pf.runs.create_or_update(run=run)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_env_overwrite.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_display_name_with_macro (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_display_name_with_macro.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_display_name_with_macro.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:329: in test_run_display_name_with_macro
run = pf.runs.create_or_update(run=run)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_display_name_with_macro.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_default_run_display_name (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_default_run_display_name.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_default_run_display_name.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:340: in test_default_run_display_name
run = pf.runs.create_or_update(run=run)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_default_run_display_name.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_with_remote_data (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_remote_data.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_remote_data.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:348: in test_run_with_remote_data
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:742: in _resolve_flow_and_session_id
self._flow_operations._resolve_arm_id_or_upload_dependencies(
promptflow/azure/operations/_flow_operations.py:474: in _resolve_arm_id_or_upload_dependencies
self._try_resolve_code_for_flow(flow=flow, ops=ops, ignore_tools_json=ignore_tools_json)
promptflow/azure/operations/_flow_operations.py:534: in _try_resolve_code_for_flow
uploaded_code_asset, _ = _check_and_upload_path(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:506: in _check_and_upload_path
uploaded_artifact = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_with_remote_data.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_show_run (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_run.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 4 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_run.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 4 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:490: in created_batch_run_without_llm
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_run.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 4 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_show_run_details (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_run_details.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_run_details.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:490: in created_batch_run_without_llm
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_run_details.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_show_metrics (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_metrics.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 4 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_metrics.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 4 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:490: in created_batch_run_without_llm
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_show_metrics.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 4 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n3 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n4 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_stream_run_logs (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_stream_run_logs.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_stream_run_logs.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:490: in created_batch_run_without_llm
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_stream_run_logs.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_basic_flow_run_bulk_without_env (tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_basic_flow_run_bulk_without_env.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_basic_flow_run_bulk_without_env.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:70: in test_basic_flow_run_bulk_without_env
run_pf_command(
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:53: in run_pf_command
main()
promptflow/azure/_cli/entry.py:134: in main
entry(command_args)
promptflow/azure/_cli/entry.py:115: in entry
cli_exception_and_telemetry_handler(run_command, activity_name, custom_dimensions)(args)
../promptflow-devkit/promptflow/_cli/_utils.py:276: in wrapper
raise e
../promptflow-devkit/promptflow/_cli/_utils.py:264: in wrapper
return func(*args, **kwargs)
promptflow/azure/_cli/entry.py:60: in run_command
raise ex
promptflow/azure/_cli/entry.py:48: in run_command
dispatch_run_commands(args)
promptflow/azure/_cli/_run.py:410: in dispatch_run_commands
create_run(
../promptflow-devkit/promptflow/_cli/_pf/_run.py:659: in create_run
run = create_func(run=run_obj, stream=stream)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_basic_flow_run_bulk_without_env.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_stream_failed_run_logs (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_stream_failed_run_logs.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_stream_failed_run_logs.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:543: in created_failed_run
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_stream_failed_run_logs.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_failed_run_to_dict_exclude (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_failed_run_to_dict_exclude.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_failed_run_to_dict_exclude.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:543: in created_failed_run
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_failed_run_to_dict_exclude.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_with_remote_data (tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_run_with_remote_data.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_run_with_remote_data.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:108: in test_run_with_remote_data
run_pf_command(
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:53: in run_pf_command
main()
promptflow/azure/_cli/entry.py:134: in main
entry(command_args)
promptflow/azure/_cli/entry.py:115: in entry
cli_exception_and_telemetry_handler(run_command, activity_name, custom_dimensions)(args)
../promptflow-devkit/promptflow/_cli/_utils.py:276: in wrapper
raise e
../promptflow-devkit/promptflow/_cli/_utils.py:264: in wrapper
return func(*args, **kwargs)
promptflow/azure/_cli/entry.py:60: in run_command
raise ex
promptflow/azure/_cli/entry.py:48: in run_command
dispatch_run_commands(args)
promptflow/azure/_cli/_run.py:410: in dispatch_run_commands
create_run(
../promptflow-devkit/promptflow/_cli/_pf/_run.py:659: in create_run
run = create_func(run=run_obj, stream=stream)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:742: in _resolve_flow_and_session_id
self._flow_operations._resolve_arm_id_or_upload_dependencies(
promptflow/azure/operations/_flow_operations.py:474: in _resolve_arm_id_or_upload_dependencies
self._try_resolve_code_for_flow(flow=flow, ops=ops, ignore_tools_json=ignore_tools_json)
promptflow/azure/operations/_flow_operations.py:534: in _try_resolve_code_for_flow
uploaded_code_asset, _ = _check_and_upload_path(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:506: in _check_and_upload_path
uploaded_artifact = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_run_with_remote_data.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check failure on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs with error: test_update_run (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
failed on setup with "Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_update_run.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))"
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_update_run.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/conftest.py:490: in created_batch_run_without_llm
run = pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_update_run.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_cancel_run (tests.sdk_cli_azure_test.e2etests.test_run_operations.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_cancel_run.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_cancel_run.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_run_operations.py:532: in test_cancel_run
pf.run(
promptflow/azure/_pf_client.py:305: in run
return self.runs.create_or_update(run=run, **kwargs)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_cancel_run.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_run_file_with_set (tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_run_file_with_set.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_run_file_with_set.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:144: in test_run_file_with_set
run_pf_command(
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:53: in run_pf_command
main()
promptflow/azure/_cli/entry.py:134: in main
entry(command_args)
promptflow/azure/_cli/entry.py:115: in entry
cli_exception_and_telemetry_handler(run_command, activity_name, custom_dimensions)(args)
../promptflow-devkit/promptflow/_cli/_utils.py:276: in wrapper
raise e
../promptflow-devkit/promptflow/_cli/_utils.py:264: in wrapper
return func(*args, **kwargs)
promptflow/azure/_cli/entry.py:60: in run_command
raise ex
promptflow/azure/_cli/entry.py:48: in run_command
dispatch_run_commands(args)
promptflow/azure/_cli/_run.py:410: in dispatch_run_commands
create_run(
../promptflow-devkit/promptflow/_cli/_pf/_run.py:659: in create_run
run = create_func(run=run_obj, stream=stream)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_run_file_with_set.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 1 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
Check warning on line 0 in tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure
github-actions / promptflow SDK CLI Azure E2E Test Result [release/promptflow/1.15.0.post1](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-azure-e2e-test.yml?query=branch:release/promptflow/1.15.0.post1++)
All 4 runs failed: test_cli_telemetry (tests.sdk_cli_azure_test.e2etests.test_cli_with_azure.TestCliWithAzure)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_cli_telemetry.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:199: in log_activity
yield activityLogger
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/operations/_datastore_operations.py:101: in _list_secrets
return self._operation.list_secrets(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer
return func(*args, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_restclient/v2024_07_01_preview/operations/_datastores_operations.py:664: in list_secrets
pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:229: in run
return first_node.send(pipeline_request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/mgmt/core/policies/_base.py:46: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py:197: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_retry.py:532: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py:147: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:86: in send
response = self.next.send(request)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/_base.py:118: in send
self._sender.send(request.http_request, **request.context.options),
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py:355: in send
response = self.session.request( # type: ignore
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/requests/adapters.py:667: in send
resp = conn.urlopen(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:716: in urlopen
httplib_response = self._make_request(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/urllib3/connectionpool.py:459: in _make_request
httplib_response = conn.getresponse(buffering=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/vcr/stubs/__init__.py:263: in getresponse
raise CannotOverwriteExistingCassetteException(
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_cli_telemetry.yaml') in your current record mode ('none').
E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
E
E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']
E Matchers failed :
E _custom_request_body_matcher - assertion failure :
E None
The above exception was the direct cause of the following exception:
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:195: in test_cli_telemetry
run_pf_command(
tests/sdk_cli_azure_test/e2etests/test_cli_with_azure.py:53: in run_pf_command
main()
promptflow/azure/_cli/entry.py:134: in main
entry(command_args)
promptflow/azure/_cli/entry.py:115: in entry
cli_exception_and_telemetry_handler(run_command, activity_name, custom_dimensions)(args)
../promptflow-devkit/promptflow/_cli/_utils.py:276: in wrapper
raise e
../promptflow-devkit/promptflow/_cli/_utils.py:264: in wrapper
return func(*args, **kwargs)
promptflow/azure/_cli/entry.py:60: in run_command
raise ex
promptflow/azure/_cli/entry.py:48: in run_command
dispatch_run_commands(args)
promptflow/azure/_cli/_run.py:410: in dispatch_run_commands
create_run(
../promptflow-devkit/promptflow/_cli/_pf/_run.py:659: in create_run
run = create_func(run=run_obj, stream=stream)
../promptflow-devkit/promptflow/_sdk/_telemetry/activity.py:265: in wrapper
return f(self, *args, **kwargs)
promptflow/azure/operations/_run_operations.py:176: in create_or_update
rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset)
promptflow/azure/operations/_run_operations.py:866: in _resolve_dependencies_in_parallel
task_results = [task.result() for task in tasks]
promptflow/azure/operations/_run_operations.py:866: in <listcomp>
task_results = [task.result() for task in tasks]
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:437: in result
return self.__get_result()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/_base.py:389: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/concurrent/futures/thread.py:57: in run
result = self.fn(*self.args, **self.kwargs)
promptflow/azure/operations/_run_operations.py:717: in _resolve_data_to_asset_id
test_data = _upload_and_generate_remote_uri(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:412: in _upload_and_generate_remote_uri
artifact_info = _upload_to_datastore(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:240: in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:109: in get_datastore_info
credential = operations._list_secrets(name=name, expirable_secret=True)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/contextlib.py:131: in __exit__
self.gen.throw(type, value, traceback)
/home/runner/.cache/pypoetry/virtualenvs/promptflow-azure--uht9Cw5-py3.8/lib/python3.8/site-packages/azure/ai/ml/_telemetry/activity.py:215: in log_activity
raise Exception("Got InternalSDKError", e) from e
E Exception: ('Got InternalSDKError', CannotOverwriteExistingCassetteException("Can't overwrite existing cassette ('/home/runner/work/promptflow/promptflow/src/promptflow-recording/recordings/azure/test_cli_with_azure_TestCliWithAzure_test_cli_telemetry.yaml') in your current record mode ('none').\nNo match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2024-07-01-preview>) was found.\nFound 2 similar requests with 1 different matcher(s) :\n\n1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n\n2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets>).\nMatchers succeeded : ['method', 'scheme', 'host', 'port', '_custom_request_path_matcher', 'query']\nMatchers failed :\n_custom_request_body_matcher - assertion failure :\nNone\n"))