Skip to content

Comments

Fix CI pipeline tests failure#1090

Draft
achyuth-ms wants to merge 2 commits intomainfrom
testsfix
Draft

Fix CI pipeline tests failure#1090
achyuth-ms wants to merge 2 commits intomainfrom
testsfix

Conversation

@achyuth-ms
Copy link
Member

@achyuth-ms achyuth-ms commented Nov 6, 2025

What does this PR do?

Fix the following tests failure in CI pipeline:

Azure.Mcp.Tools.Sql.UnitTests.EntraAdmin.EntraAdminListCommandTests.ExecuteAsync_ValidatesInputCorrectly

Azure.Mcp.Tools.Sql.UnitTests.Database.DatabaseUpdateCommandTests.ExecuteAsync_ValidatesRequiredParameters

GitHub issue number?

#943
#1013

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Validate README.md changes using script at eng/scripts/Process-PackageReadMe.ps1. See Package README
    • Updated command list in /servers/Azure.Mcp.Server/docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • Run .\eng\scripts\Update-AzCommandsMetadata.ps1 to update tool metadata in azmcp-commands.md (required for CI)
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

@achyuth-ms
Copy link
Member Author

All pipelines passed:

image

@achyuth-ms
Copy link
Member Author

/azp run mcp - pullrequest - live

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@joshfree joshfree moved this from Untriaged to In Progress in Azure MCP Server Nov 7, 2025
@joshfree joshfree added this to the 2025-11 milestone Nov 7, 2025

### Bugs Fixed

- Fixed test failures in CI for SQL commands for `BaseSqlCommand` (--server option) and `BaseDatabaseCommand` (--database option) by using `.AsRequired()` extension method for consistent validation. [[#943](https://github.com/microsoft/mcp/issues/943), [#1013](https://github.com/microsoft/mcp/issues/1013)]
Copy link
Member

Choose a reason for hiding this comment

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

nit: if the changes end up being fixes to the tests themselves, and not to the product, maybe move these to the Other Changes section right below

@joshfree joshfree modified the milestones: 2025-11, 2026-01 Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants