From e533b530444c66a80728abe452f87d680daccaf2 Mon Sep 17 00:00:00 2001 From: Jian Wu Date: Wed, 1 Jul 2026 15:47:41 +0800 Subject: [PATCH 1/2] fix(ci): build azure.ai.inspector from source in test workflow The azure.ai.inspector extension was bumped to 1.0.0-beta.1 in source (#8896) but not yet published to the registry. The CI workflow was installing it from the registry, getting the old 0.0.1-preview version which doesn't satisfy azure.ai.agents' dependency constraint ~1.0.0-beta.1. Fix by building and installing azure.ai.inspector from source (same approach used for azure.ai.agents itself). Also add cli/azd/extensions/azure.ai.inspector/** to the workflow path trigger so inspector changes are tested. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/test-ext-azure-ai-agents.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-ext-azure-ai-agents.yml b/.github/workflows/test-ext-azure-ai-agents.yml index 7f4bde79ec7..90ef8870153 100644 --- a/.github/workflows/test-ext-azure-ai-agents.yml +++ b/.github/workflows/test-ext-azure-ai-agents.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - "cli/azd/extensions/azure.ai.agents/**" + - "cli/azd/extensions/azure.ai.inspector/**" - "cli/azd/test/functional/ai_agents/**" - ".github/workflows/test-ext-azure-ai-agents.yml" branches: [main] @@ -40,8 +41,18 @@ jobs: # Install the developer extension (provides 'azd x' commands). # The built-in 'azd' source is auto-registered, so no source-add needed. azd extension install microsoft.azd.extensions --no-prompt - # Pre-install the inspector dependency so the local install can resolve it. - azd extension install azure.ai.inspector --no-prompt + + - name: Build & install inspector dependency from source + working-directory: cli/azd/extensions/azure.ai.inspector + run: | + # The azure.ai.inspector extension has not been published to the registry + # at 1.0.0-beta.1+ yet — build from source to satisfy the dependency. + pwsh -File ci-build.ps1 -OutputFileName azure-ai-inspector-linux-amd64 -Version $(cat version.txt | tr -d '\r\n') + mkdir -p bin + mv azure-ai-inspector-linux-amd64 bin/ + azd x pack + azd x publish + azd extension install azure.ai.inspector --source local --force --no-prompt - name: Build extension (ci-build.ps1) working-directory: cli/azd/extensions/azure.ai.agents From c95c1b549b23523d9e9e8ce2a72b657725858b71 Mon Sep 17 00:00:00 2001 From: Jian Wu Date: Thu, 2 Jul 2026 16:26:49 +0800 Subject: [PATCH 2/2] refactor: reword inspector build comment as intentional, not stopgap Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/test-ext-azure-ai-agents.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-ext-azure-ai-agents.yml b/.github/workflows/test-ext-azure-ai-agents.yml index 90ef8870153..336f43dfa6b 100644 --- a/.github/workflows/test-ext-azure-ai-agents.yml +++ b/.github/workflows/test-ext-azure-ai-agents.yml @@ -45,8 +45,9 @@ jobs: - name: Build & install inspector dependency from source working-directory: cli/azd/extensions/azure.ai.inspector run: | - # The azure.ai.inspector extension has not been published to the registry - # at 1.0.0-beta.1+ yet — build from source to satisfy the dependency. + # Build azure.ai.inspector from source to ensure PR CI always has a + # compatible version — dependency releases are post-merge, but PRs may + # include inspector changes from this same repo. pwsh -File ci-build.ps1 -OutputFileName azure-ai-inspector-linux-amd64 -Version $(cat version.txt | tr -d '\r\n') mkdir -p bin mv azure-ai-inspector-linux-amd64 bin/