fix: reset user agent for each requests in local pfs #10444
223 errors, 5 fail, 13 skipped, 131 pass in 2m 47s
Annotations
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: tests.sdk_cli_test.e2etests.test_connection
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
collection failure
collection failure
tests/sdk_cli_test/e2etests/test_connection.py:14: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
tests/sdk_cli_test/e2etests/test_connection.py:14: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: tests.sdk_cli_test.e2etests.test_custom_strong_type_connection
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
collection failure
collection failure
tests/sdk_cli_test/e2etests/test_custom_strong_type_connection.py:18: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
tests/sdk_cli_test/e2etests/test_custom_strong_type_connection.py:18: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: tests.sdk_cli_test.e2etests.test_flow_test
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
collection failure
collection failure
tests/sdk_cli_test/e2etests/test_flow_test.py:24: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
tests/sdk_cli_test/e2etests/test_flow_test.py:24: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: tests.sdk_cli_test.e2etests.test_tool
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
collection failure
collection failure
tests/sdk_cli_test/e2etests/test_tool.py:19: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
tests/sdk_cli_test/e2etests/test_tool.py:19: in <module>
_client = PFClient()
promptflow/_sdk/_pf_client.py:49: in __init__
self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_basic_flow_bulk_run (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_pf_version (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 2s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_basic_run_bulk (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f5826a9ad60>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_basic_flow_run (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_local_storage_delete (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_basic_flow_run_batch_and_eval (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_flow_run_delete (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_submit_run_with_yaml (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_flow_run_delete_fake_id_raise (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_submit_batch_variant (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_flow_run_delete_invalid_permission_raise (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_environment_variable_overwrite (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_visualize_run_with_referenced_run_deleted (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_basic_flow_with_variant (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f5826a9ad60>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_connection_overwrite (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_run_bulk_error (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_create_with_set (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_basic_evaluation (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f5826a9ad60>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_cli.TestCli
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_pf_flow_test (tests.sdk_cli_test.e2etests.test_cli.TestCli)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f2d8d910460>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_flow_demo (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def pf() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f584041c5e0>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError
Check failure on line 0 in tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun
github-actions / SDK CLI Test Result [zhangxingzhi/reset-user-agent-for-each-pfs-request](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:zhangxingzhi/reset-user-agent-for-each-pfs-request++)
All 4 runs with error: test_submit_run_from_yaml (tests.sdk_cli_test.e2etests.test_flow_run.TestFlowRun)
artifacts/Test Results (Python 3.10) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.11) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
artifacts/Test Results (Python 3.9) (OS ubuntu-latest)/test-results-sdk-cli.xml [took 0s]
Raw output
failed on setup with "AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'"
@pytest.fixture(scope="session")
def local_client() -> PFClient:
> yield PFClient()
tests/sdk_cli_test/conftest.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <promptflow._sdk._pf_client.PFClient object at 0x7f5826a9ad60>
kwargs = {}
def __init__(self, **kwargs):
logger.debug("PFClient init with kwargs: %s", kwargs)
# when this is set, telemetry from this client will use this user agent instead of the one from OperationContext
if isinstance(kwargs.get(BONDED_USER_AGENT_KEY), str):
self._bonded_user_agent = kwargs[BONDED_USER_AGENT_KEY]
self._connection_provider = kwargs.pop("connection_provider", None)
self._config = kwargs.get("config", None) or {}
# The credential is used as an option to override
# DefaultAzureCredential when using workspace connection provider
self._credential = kwargs.get("credential", None)
# bonded_user_agent will be applied to all TelemetryMixin operations
> self._runs = RunOperations(self, bonded_user_agent=self._bonded_user_agent)
E AttributeError: 'PFClient' object has no attribute '_bonded_user_agent'
promptflow/_sdk/_pf_client.py:49: AttributeError