Skip to content

Calls to loadtesting_testrun_create always end with a timeout, but typically succeed #1142

@charris-msft

Description

@charris-msft

Describe the bug

Calls to loadtesting_testrun_create tend to succeed, 8 of 8 I've seen have ended with a timeout.

It looks like the call is synchronous and will not respond until the test is complete, but Copilot Coding Agent won't wait that long, and doesn't expect it to be a synchronous call.

Expected behavior

Expect the call to return quickly, while leaving the test to take however long is required to complete.

Actual behavior

Call to Azure Load Testing

Input
{
  "command": "loadtesting_testrun_create",
  "intent": "Create and run a new load test execution",
  "parameters": {
    "description": "Load test run triggered by GitHub Copilot using Azure MCP tools",
    "display-name": "GitHub Copilot Load Test Run - 2025-11-11",
    "resource-group": "rg-ignite-github-agentic-azure",
    "subscription": "cda6aeab-6dec-4567-a4d8-3770583a13f0",
    "test-id": "octocat-api-github-copilot-test",
    "test-resource-name": "octocat-supply-loadtest",
    "testrun-id": "run-20251111-180957"
  }
}
Tool call failed: MCP error -32001: Request timed out

The test run creation timed out, but it might have been initiated. Let me check the status of the test run:

Call to Azure Load Testing

Input
{
  "command": "loadtesting_testrun_get",
  "intent": "Get status of the test run that was just created",
  "parameters": {
    "resource-group": "rg-ignite-github-agentic-azure",
    "subscription": "cda6aeab-6dec-4567-a4d8-3770583a13f0",
    "test-resource-name": "octocat-supply-loadtest",
    "testrun-id": "run-20251111-180957"
  }
}
{
  "status": 200,
  "message": "Success",
  "results": {
    "TestRun": {
      "testId": "octocat-api-github-copilot-test",
      "testRunId": "run-20251111-180957",
      "displayName": "GitHub Copilot Load Test Run - 2025-11-11",
      "virtualUsers": 0,
      "status": "EXECUTING",
      "startDateTime": "2025-11-11T18:10:17.689+00:00",
      "endDateTime": null,
      "executedDateTime": "2025-11-11T18:10:12.669+00:00",
      "portalUrl": "https://portal.azure.com/#blade/Microsoft_Azure_CloudNativeTesting/TestRunReport.ReactView//resourceId/%2fsubscriptions%2fcda6aeab-6dec-4567-a4d8-3770583a13f0%2fresourcegroups%2frg-ignite-github-agentic-azure%2fproviders%2fmicrosoft.loadtestservice%2floadtests%2foctocat-supply-loadtest/testId/octocat-api-github-copilot-test/testRunId/run-20251111-180957",
      "duration": 0,
      "createdDateTime": "2025-11-11T18:10:15.192+00:00",
      "createdBy": "",
      "lastModifiedDateTime": "2025-11-11T18:10:43.173+00:00",
      "lastModifiedBy": "",
      "description": "Load test run triggered by GitHub Copilot using Azure MCP tools",
      "testResult": "NOT_APPLICABLE"
    }
  },
  "duration": 0
}
Image

Reproduction Steps

run the azure load testing tool 'loadtesting_testrun_create' to kick off a test run for the existing test

Environment

VS Code Insiders or Copilot Coding Agent (now Copilot Cloud Agent)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions