Skip to content

migrates foundry catalog api to v2 and removes regional download/fallback#870

Open
prathikr wants to merge 2 commits into
mainfrom
prathikrao/catalog-v2-migration
Open

migrates foundry catalog api to v2 and removes regional download/fallback#870
prathikr wants to merge 2 commits into
mainfrom
prathikrao/catalog-v2-migration

Conversation

@prathikr

@prathikr prathikr commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Based on the following design doc.

Known Errors:

[ FAILED ] AzureCatalogClientTest.RequestFormatMatchesKnownGood
[ FAILED ] AzureCatalogClientTest.ParsesTagsCaseInsensitively

What is happening:

In azure_catalog_client.cc:162, BuildSearchFilters has the full logic commented out and the active path only adds one filter: VariantInformation/VariantMetadata/Device = cpu

  • It returns a single filter set (one request), not one per device.

AzureCatalogClientTest.RequestFormatMatchesKnownGood expects:

  • 3 requests (CPU/GPU/NPU) at azure_catalog_test.cc:100
  • 3 filters in the CPU request including DeploymentOptions and ExecutionProvider at azure_catalog_test.cc:115

AzureCatalogClientTest.ParsesTagsCaseInsensitively expects:

  • 3 total model infos (one from each device request) at azure_catalog_test.cc:739, but CPU-only mode produces 1.

Resolution:

Will switch base to the full filter set once catalog models are updated with new metadata

Copilot AI review requested due to automatic review settings July 9, 2026 20:07
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview, Comment Jul 14, 2026 10:44pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the C++ SDK’s Azure Foundry catalog integration from the legacy ai.azure.com cross-region entities API to the V2 asset-gallery/v1.0/models endpoint, updating request/response modeling and associated tests.

Changes:

  • Switch default catalog endpoint and filter semantics to V2 asset-gallery (DeploymentOptions=foundryLocalDevices).
  • Expand catalog response modeling to include V2 fields (limits, modalities, capabilities, quantization, VRAM footprint) and map them into ModelInfo.
  • Update internal API tests to validate the new request shape and response parsing behavior.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk_v2/cpp/test/internal_api/azure_catalog_test.cc Updates request/response tests for the V2 asset-gallery schema and routing behavior.
sdk_v2/cpp/src/catalog/catalog_client.h Updates docs to reflect new filter semantics (deploymentOptions override).
sdk_v2/cpp/src/catalog/azure_model_catalog.h Updates default catalog URL and default filter for V2 asset-gallery.
sdk_v2/cpp/src/catalog/azure_catalog_models.h Updates request/response type definitions for V2 schema (limits/capabilities/modalities/etc.).
sdk_v2/cpp/src/catalog/azure_catalog_models.cc Implements V2 JSON parsing and maps new fields into ModelInfo.
sdk_v2/cpp/src/catalog/azure_catalog_client.h Updates client docs/comments and region-routing expectations for V2 endpoint.
sdk_v2/cpp/src/catalog/azure_catalog_client.cc Switches request URL/body shaping to V2 and updates filter/pagination handling.

Comment thread sdk_v2/cpp/src/catalog/azure_catalog_client.cc
Comment thread sdk_v2/cpp/src/catalog/azure_catalog_client.cc
@prathikr prathikr changed the title migrates foundry catalog api to v2 migrates foundry catalog api to v2 and removes regional download/fallback Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants