Skip to content

ci(azure.ai.agents): add live feature E2E pipeline - #11067

Open
Hui Miao (huimiu) wants to merge 4 commits into
mainfrom
ci/azure-ai-agents-live-tests
Open

Hui Miao (huimiu) wants to merge 4 commits into
mainfrom
ci/azure-ai-agents-live-tests

Conversation

@huimiu

@huimiu Hui Miao (huimiu) commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a standalone Azure DevOps live test pipeline (eng/pipelines/ext-azure-ai-feature-e2e.yml) to discover and run Go feature E2E tests under cli/azd/extensions/azure.ai.agents/tests/feature-e2e/... against live Azure resources. Push and pull request triggers (including PR comments) are disabled (trigger: none, pr: none), so the pipeline runs only on its daily 00:00 UTC schedule against main or when queued manually in Azure DevOps.

Changes

  • Add eng/pipelines/ext-azure-ai-feature-e2e.yml on /eng/pipelines/templates/stages/1es-redirect.yml, modeled on eng/pipelines/ext-azure-ai-agents-live.yml.
  • Build live azd (without -tags=record) and build azure.ai.agents along with its sibling Foundry extensions (azure.ai.projects, azure.ai.connections, azure.ai.toolboxes, azure.ai.inspector, azure.ai.skills, azure.ai.routines) from source into $HOME/.azd. Generate $HOME/.azd/config.json from each extension.yaml with yq, then verify locally with azd version and azd ai agent version.
  • Authenticate inside AzureCLI@2 (keepAzSessionActive: true, azd config set auth.useAzCliAuth true), discover runnable test packages under cli/azd/extensions/azure.ai.agents/tests/feature-e2e/..., and run them sequentially (go test -count=1) under a shared 145-minute wall-clock budget within the 150-minute step timeout.
  • Warn and skip when tests/feature-e2e does not exist yet or has no runnable test packages, and publish $(Build.ArtifactStagingDirectory)/logs/feature-e2e.log as a pipelineArtifact.

Notes

  • This PR adds only the pipeline definition; the tests under cli/azd/extensions/azure.ai.agents/tests/feature-e2e/ will land in a follow-up PR.
  • We will add an always() fallback cleanup step for resources left behind by a hard timeout or killed test binary (similar to eng/pipelines/ext-azure-ai-agents-live.yml) in that follow-up PR, once the test cases define their workspace directory and resource-group naming or tagging conventions.

@azure-pipelines

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

@github-actions github-actions Bot added ext-agents azure.ai.agents extension ext-connections azure.ai.connections extension ext-inspector azure.ai.inspector extension ext-projects azure.ai.projects extension ext-routines azure.ai.routines extension ext-skills azure.ai.skills extension ext-toolboxes azure.ai.toolboxes extension labels Dec 2, 2026
@huimiu
Hui Miao (huimiu) force-pushed the ci/azure-ai-agents-live-tests branch 3 times, most recently from 71e51e9 to f66d043 Compare December 2, 2026 12:37
Add a standalone Azure DevOps live test pipeline
(`eng/pipelines/ext-azure-ai-feature-e2e.yml`) that builds `azd` and
Foundry extensions from source, authenticates via OIDC, and discovers
and runs all Go test files under
`cli/azd/extensions/azure.ai.agents/tests/feature-e2e/...` on a daily
schedule or manual trigger.

Copilot-Session: 7926b51b-a03c-46ee-a52c-c5c02500d048

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.

🟡 Changes recommended

The pipeline can exceed its task limit when multiple packages run sequentially and lacks an always-run cleanup path for resources left after forced termination.

2 open issues
What changed in this PR

Adds a scheduled and manually triggered Azure DevOps pipeline for live Azure AI Agents feature E2E tests.

Changes:

  • Builds azd and Foundry extensions from source.
  • Authenticates through Azure CLI and runs discovered feature tests.
  • Publishes E2E logs as pipeline artifacts.
File Description
eng/​pipelines/​ext-azure-ai-feature-e2e.yml Defines the live feature E2E pipeline, including source builds, authentication, test execution, and log artifact publication.

Review effort: Lite

Copilot-Session: 7926b51b-a03c-46ee-a52c-c5c02500d048
Copilot AI lite review requested due to automatic review settings December 2, 2026 13:50
Copilot-Session: 7926b51b-a03c-46ee-a52c-c5c02500d048

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.

🟡 Changes recommended

The pipeline still exposes Azure and GitHub credentials to repository-controlled code without restricting manual runs to a protected ref, and it lacks unconditional cleanup for resources left after abrupt test termination.

2 open issues
1 resolved since last review

Review effort: Lite

Copilot AI lite review requested due to automatic review settings December 2, 2026 13:57

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.

🔵 Needs a closer look

A critical branch-restriction vulnerability and a moderate resource-leak risk remain unresolved in the pipeline.

No open issues 🎉

2 resolved since last review

Review effort: Lite

Copilot AI lite review requested due to automatic review settings December 3, 2026 00:12

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.

🔵 Needs a closer look

An active moderate issue remains because the scheduled Azure E2E job lacks an always-run authenticated cleanup safety net for resources left behind by killed or timed-out tests.

No open issues 🎉

Review effort: Lite

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-agents azure.ai.agents extension ext-connections azure.ai.connections extension ext-inspector azure.ai.inspector extension ext-projects azure.ai.projects extension ext-routines azure.ai.routines extension ext-skills azure.ai.skills extension ext-toolboxes azure.ai.toolboxes extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants