Skip to content

Conversation

@danieljurek
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds the infrastructure to support running tests for azd extensions via a ci-test.ps1 script in the CI/CD pipeline. The change introduces a SkipTests parameter to allow extensions without tests to bypass test execution, and updates the build pipeline to execute the test script.

Changes:

  • Added SkipTests boolean parameter to the extension release pipeline template
  • Modified the build job to execute ci-test.ps1 instead of a placeholder message
  • Removed conditional logic from Go setup step that was tied to Skip.LiveTest variable
  • Added SkipTests: true to all existing extension pipelines except the demo extension
  • Created a template ci-test.ps1 file for the demo extension

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
eng/pipelines/templates/stages/release-azd-extension.yml Adds SkipTests parameter to the extension release stage template
eng/pipelines/templates/jobs/build-azd-extension.yml Replaces placeholder test step with actual ci-test.ps1 execution and removes conditional Go setup
eng/pipelines/release-ext-microsoft-azd-extensions.yml Sets SkipTests to true for the extensions bundle
eng/pipelines/release-ext-microsoft-azd-concurx.yml Sets SkipTests to true for the concurx extension
eng/pipelines/release-ext-microsoft-azd-ai-builder.yml Sets SkipTests to true for the AI builder extension
eng/pipelines/release-ext-azure-coding-agent.yml Sets SkipTests to true for the coding agent extension
eng/pipelines/release-ext-azure-ai-finetune.yml Sets SkipTests to true for the AI finetune extension
eng/pipelines/release-ext-azure-ai-agents.yml Sets SkipTests to true for the AI agents extension
cli/azd/extensions/microsoft.azd.demo/ci-test.ps1 Creates template test script for the demo extension
Comments suppressed due to low confidence (2)

eng/pipelines/templates/stages/release-azd-extension.yml:16

  • The SkipTests parameter is defined but never passed down to the nested template. The parameter should be passed to the build-and-test-azd-extension.yml template so it can be used in the build job. Without this, all extensions will run tests regardless of the SkipTests setting.
  - template: /eng/pipelines/templates/stages/build-and-test-azd-extension.yml
    parameters:
      AzdExtensionId: ${{ parameters.AzdExtensionId }}
      AzdExtensionDirectory: ${{ parameters.AzdExtensionDirectory }}

eng/pipelines/templates/jobs/build-azd-extension.yml:77

  • The PublishTestResults task will execute even when tests are skipped or when no tests exist. Consider adding a condition that checks if the test results file exists before attempting to publish, or condition it on whether tests were actually run.
      - task: PublishTestResults@2
        inputs:
          testResultsFormat: JUnit
          testResultsFiles: "**/junitTestReport.xml"
          testRunTitle: $(Agent.JobName)
          searchFolder: ${{ parameters.AzdExtensionDirectory }}
          publishRunAttachments: true
        displayName: Publish test results
        condition: succeededOrFailed()

@danieljurek danieljurek marked this pull request as ready for review January 21, 2026 18:05
@danieljurek danieljurek moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 📆🎇 Jan 21, 2026
@danieljurek danieljurek merged commit 6db9cd2 into main Jan 21, 2026
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔬 Dev in PR

Development

Successfully merging this pull request may close these issues.

3 participants