Skip to content

Add AI-driven LISA test case selection pipeline for Azure DevOps#4574

Open
LiliDeng wants to merge 2 commits into
microsoft:mainfrom
LiliDeng:main
Open

Add AI-driven LISA test case selection pipeline for Azure DevOps#4574
LiliDeng wants to merge 2 commits into
microsoft:mainfrom
LiliDeng:main

Conversation

@LiliDeng

@LiliDeng LiliDeng commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Use azure pipeline instead.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
PASSED / FAILED / SKIPPED

@LiliDeng LiliDeng requested a review from johnsongeorge-w as a code owner July 2, 2026 02:27
Copilot AI review requested due to automatic review settings July 2, 2026 02:27

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 AI-driven LISA “optional tests” selection flow from GitHub Actions to an Azure DevOps PR pipeline, while enhancing the selector script to support Azure OpenAI (in addition to GitHub Models) and to emit per-testcase runbook entries plus a selected Marketplace image.

Changes:

  • Removed the existing GitHub Actions workflows for AI test selection, execution, and cancel-cleanup.
  • Added an Azure DevOps PR pipeline that generates a PR diff, runs AI-based case selection, executes selected LISA tests on Azure, publishes artifacts/results, and comments back on the GitHub PR.
  • Extended .github/scripts/ai_select_cases.py with Azure OpenAI support and updated selection/runbook output behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/ai-test-selection.yml Removed GitHub Actions-based AI selection + Azure test execution + PR reporting workflow.
.github/workflows/ai-test-selection-cancel-cleanup.yml Removed GitHub Actions workflow_run-based cleanup for cancelled runs.
.github/scripts/ai_select_cases.py Added Azure OpenAI support, refactored model prompting, added comment-only shortcut, and updated runbook output format (per-case + marketplace_image variable).
.azuredevops/azure-pipelines.yml Added Azure DevOps PR pipeline implementing AI selection, Azure test execution, publishing, and GitHub PR commenting.

Comment thread .github/scripts/ai_select_cases.py
Comment thread .github/scripts/ai_select_cases.py
Comment thread .github/scripts/ai_select_cases.py
Copilot AI review requested due to automatic review settings July 7, 2026 03: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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

Comment thread .github/scripts/ai_select_cases.py
Comment thread .github/scripts/ai_select_cases.py
Comment thread .github/scripts/ai_select_cases.py
Comment thread .azuredevops/azure-pipelines.yml
Comment thread .azuredevops/azure-pipelines.yml
Comment thread .azuredevops/azure-pipelines.yml
Copilot AI review requested due to automatic review settings July 7, 2026 04:36

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

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

Comment thread .github/scripts/ai_select_cases.py
Comment thread .github/scripts/ai_select_cases.py
Comment thread .github/scripts/ai_select_cases.py
Comment thread .azuredevops/azure-pipelines.yml
Copilot AI review requested due to automatic review settings July 7, 2026 05:59

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread .github/scripts/ai_select_cases.py
Comment thread .azuredevops/azure-pipelines.yml
Comment thread .azuredevops/azure-pipelines.yml
@LiliDeng

LiliDeng commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

@johnsongeorge-w I have updated the code based on your feedback, please check, thanks!

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