Skip to content

Update FoundryStorage read validation expectation - #48386

Draft
Shivakishore14 wants to merge 1 commit into
mainfrom
shiva/fix-foundry-storage-hosting-core-1-3-main
Draft

Update FoundryStorage read validation expectation#48386
Shivakishore14 wants to merge 1 commit into
mainfrom
shiva/fix-foundry-storage-hosting-core-1-3-main

Conversation

@Shivakishore14

@Shivakishore14 Shivakishore14 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Description

Updates the FoundryStorage validation test for microsoft-agents-hosting-core==1.3.0. AsyncStorageBase.read now requires target_cls as a keyword-only argument, so omitting it raises TypeError at the base API boundary instead of the previous ValueError validation path.

This keeps FoundryStorage using the upstream AsyncStorageBase read/write/delete implementations. Valid runtime callers already pass target_cls.

Validation

  • PYTHONPATH=sdk/agentserver/azure-ai-agentserver-core:sdk/agentserver/azure-ai-agentserver-activity uv run --with pytest --with pytest-asyncio --with isodate --with azure-core --with azure-identity --with aiohttp --with starlette --with hypercorn --with opentelemetry-api --with opentelemetry-sdk --with microsoft-opentelemetry --with microsoft-agents-hosting-core==1.3.0 --with microsoft-agents-activity==1.3.0 --with microsoft-agents-authentication-msal==1.3.0 --with httpx python -m pytest sdk/agentserver/azure-ai-agentserver-activity/tests/test_foundry_storage.py -q

@github-actions github-actions Bot added the Hosted Agents sdk/agentserver/* label Jul 31, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@Shivakishore14
Shivakishore14 force-pushed the shiva/fix-foundry-storage-hosting-core-1-3-main branch from 1208a3b to 4fa2d3d Compare July 31, 2026 09:45
@Shivakishore14 Shivakishore14 changed the title Fix FoundryStorage compatibility with hosting-core 1.3 Fix FoundryStorage read compatibility with hosting-core 1.3 Jul 31, 2026
Reflect microsoft-agents-hosting-core 1.3.0 behavior: target_cls is now a required keyword-only argument on AsyncStorageBase.read, so omitting it raises TypeError before adapter validation runs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c4498c39-31d3-4502-ad7e-e3a0c6ecc97a
@Shivakishore14
Shivakishore14 force-pushed the shiva/fix-foundry-storage-hosting-core-1-3-main branch from 4fa2d3d to 2267259 Compare July 31, 2026 09:55
@Shivakishore14 Shivakishore14 changed the title Fix FoundryStorage read compatibility with hosting-core 1.3 Update FoundryStorage read validation expectation Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hosted Agents sdk/agentserver/*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant