Skip to content

[BUG] Test failure: Azure.Mcp.Tools.Workbooks.LiveTests.WorkbooksCommandTests.Should_show_workbook_details #1144

@fanyang-mono

Description

@fanyang-mono

Describe the bug

Link to build: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5558527&view=logs&j=3062cd78-3dd8-5cfa-d581-ea116ba27da8&t=4af6f21e-660e-510f-93cf-69d2fde1f5df

Error message:

  Failed Azure.Mcp.Tools.Workbooks.LiveTests.WorkbooksCommandTests.Should_show_workbook_details [5 s]
  Error Message:
   Property 'Workbook' not found. Full element: '{"message":"Failed to get workbook: The Resource \u0027Microsoft.Insights/workbooks/39a27c93-d82b-42e4-b22a-a2c0e81577ce\u0027 under resource group \u0027SSS3PT_rg-t2dec7fb2d0864601\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\nStatus: 404 (Not Found)\nErrorCode: ResourceNotFound\n\nContent:\n{\u0022error\u0022:{\u0022code\u0022:\u0022ResourceNotFound\u0022,\u0022message\u0022:\u0022The Resource \u0027Microsoft.Insights/workbooks/39a27c93-d82b-42e4-b22a-a2c0e81577ce\u0027 under resource group \u0027SSS3PT_rg-t2dec7fb2d0864601\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\u0022}}\n\nHeaders:\nCache-Control: no-cache\nPragma: no-cache\nx-ms-failure-cause: REDACTED\nx-ms-request-id: f41de918-92d4-4cb1-9223-c393be14714f\nx-ms-correlation-request-id: REDACTED\nx-ms-routing-request-id: REDACTED\nStrict-Transport-Security: REDACTED\nX-Content-Type-Options: REDACTED\nX-Cache: REDACTED\nX-MSEdge-Ref: REDACTED\nDate: Tue, 11 Nov 2025 17:15:31 GMT\nContent-Length: 264\nContent-Type: application/json; charset=utf-8\nExpires: -1\n","stackTrace":"   at Azure.Mcp.Tools.Workbooks.Services.WorkbooksService.GetWorkbook(String workbookId, RetryPolicyOptions retryPolicy, String tenant) in /mnt/vss/_work/1/s/tools/Azure.Mcp.Tools.Workbooks/src/Services/WorkbooksService.cs:line 132\n   at Azure.Mcp.Tools.Workbooks.Commands.Workbooks.ShowWorkbooksCommand.ExecuteAsync(CommandContext context, ParseResult parseResult, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/tools/Azure.Mcp.Tools.Workbooks/src/Commands/Workbooks/ShowWorkbooksCommand.cs:line 65","type":"Exception"}'
  Stack Trace:
     at Azure.Mcp.Tests.TestExtensions.AssertProperty(JsonElement element, String propertyName) in /mnt/vss/_work/1/s/core/Azure.Mcp.Core/tests/Azure.Mcp.Tests/TestExtensions.cs:line 37
   at Azure.Mcp.Tests.TestExtensions.AssertProperty(Nullable`1 element, String propertyName) in /mnt/vss/_work/1/s/core/Azure.Mcp.Core/tests/Azure.Mcp.Tests/TestExtensions.cs:line 33
   at Azure.Mcp.Tools.Workbooks.LiveTests.WorkbooksCommandTests.Should_show_workbook_details() in /mnt/vss/_work/1/s/tools/Azure.Mcp.Tools.Workbooks/tests/Azure.Mcp.Tools.Workbooks.LiveTests/WorkbooksCommandTests.cs:line 84

Expected behavior

Test failed on CI

Actual behavior

Test should pass.

Reproduction Steps

It seems to be flaky.

Environment

No response

Metadata

Metadata

Assignees

Labels

onboardingNew service or MCP child server to onboardserver-Azure.McpAzure.Mcp.Server

Type

No type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions