test(extensions): verify provider manifests (part 2/2)#9122
Draft
JeffreyCA wants to merge 3 commits into
Draft
Conversation
Add registry and manifest checks for provider metadata, capabilities, and unique ownership. Verify runtime registrations match extension.yaml and run the checks in extension CI.
Co-authored-by: Copilot <[email protected]> Copilot-Session: 967bafa7-69d3-4c13-b596-83ca90c56e7f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8992
Summary
This PR rolls out provider-manifest verification across every provider-bearing Azure AI extension and adds CI enforcement so future registration drift is rejected before publication.
Issue
The extension SDK can verify runtime provider registrations against
extension.yaml, but the Azure AI extensions must adopt that helper for the protection to cover the extensions affected by #8992. Without consistent tests and CI wiring, a manifest can still claim a provider that its extension does not register.Azure AI extension coverage
The agents, connections, projects, routines, skills, and toolboxes extensions now consume azd SDK
v1.27.2and carry the canonicalTestConfigureExtensionHostMatchesManifesttest.configureExtensionHostcallback.Central coverage guard
A central manifest scan requires every provider-bearing first-party extension to carry the canonical test. It parses the test source and requires
require.NoErrorto assert the result ofazdext.VerifyProvidersMatchManifest, rejecting comments, discarded errors, or calls placed in another test.The reusable workflow also checks that the canonical test file and exact test name exist before executing it because
go test -runotherwise succeeds when no tests match.Behavior at a glance
Scope and follow-ups
This PR completes the focused first-party CI guard for #8992.
Testing
Testing covers the canonical provider-manifest check for the demo, agents, connections, projects, routines, skills, and toolboxes extensions. Coverage-guard tests verify that only an asserted helper call in the canonical test satisfies enforcement, including protection against discarded errors, comments, calls in another test, and assertions followed by later calls.