From 40b60552b9e2d743e21da4a6c84c3eb37cbc5b75 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 18:03:40 +0000 Subject: [PATCH 1/3] Initial plan From e943261c39f469c9b2759de2c04a3d355e92e7eb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 18:10:09 +0000 Subject: [PATCH 2/3] Initial investigation - JS tests failing due to timing issues Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/stale-repo-identifier.lock.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale-repo-identifier.lock.yml b/.github/workflows/stale-repo-identifier.lock.yml index 43fd4b85437..7c61db0566e 100644 --- a/.github/workflows/stale-repo-identifier.lock.yml +++ b/.github/workflows/stale-repo-identifier.lock.yml @@ -31,6 +31,7 @@ name: "Stale Repository Identifier" "on": schedule: - cron: "0 9 1 * *" + # Friendly format: daily (scattered) workflow_dispatch: inputs: organization: From 51cfa51b72530bfe5af784526fb735f960ba1e9f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 18:22:07 +0000 Subject: [PATCH 3/3] Fix JS test timing issues by increasing wait times for MCP server responses Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .../workflows/stale-repo-identifier.lock.yml | 1 - .../safe_outputs_mcp_server_defaults.test.cjs | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/stale-repo-identifier.lock.yml b/.github/workflows/stale-repo-identifier.lock.yml index 7c61db0566e..43fd4b85437 100644 --- a/.github/workflows/stale-repo-identifier.lock.yml +++ b/.github/workflows/stale-repo-identifier.lock.yml @@ -31,7 +31,6 @@ name: "Stale Repository Identifier" "on": schedule: - cron: "0 9 1 * *" - # Friendly format: daily (scattered) workflow_dispatch: inputs: organization: diff --git a/actions/setup/js/safe_outputs_mcp_server_defaults.test.cjs b/actions/setup/js/safe_outputs_mcp_server_defaults.test.cjs index f00919196d6..dbd548a13c0 100644 --- a/actions/setup/js/safe_outputs_mcp_server_defaults.test.cjs +++ b/actions/setup/js/safe_outputs_mcp_server_defaults.test.cjs @@ -168,11 +168,11 @@ import { spawn } from "child_process"; setTimeout(() => { const initMessage = JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: { protocolVersion: "2024-11-05", capabilities: {}, clientInfo: { name: "test-client", version: "1.0.0" } } }) + "\n"; child.stdin.write(initMessage); - }, 100), + }, 300), setTimeout(() => { const listToolsMessage = JSON.stringify({ jsonrpc: "2.0", id: 2, method: "tools/list", params: {} }) + "\n"; child.stdin.write(listToolsMessage); - }, 200), + }, 600), setTimeout(() => { (clearTimeout(timeout), child.kill()); const listResponse = receivedMessages.find(m => 2 === m.id); @@ -185,7 +185,7 @@ import { spawn } from "child_process"; expect(createPrTool.inputSchema.properties.branch.description).toContain("If omitted"), expect(createPrTool.inputSchema.properties.branch.description).toContain("current"), resolve()); - }, 500)); + }, 1500)); }); }), it("should have optional branch parameter for push_to_pull_request_branch", async () => { @@ -216,11 +216,11 @@ import { spawn } from "child_process"; setTimeout(() => { const initMessage = JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: { protocolVersion: "2024-11-05", capabilities: {}, clientInfo: { name: "test-client", version: "1.0.0" } } }) + "\n"; child.stdin.write(initMessage); - }, 100), + }, 300), setTimeout(() => { const listToolsMessage = JSON.stringify({ jsonrpc: "2.0", id: 2, method: "tools/list", params: {} }) + "\n"; child.stdin.write(listToolsMessage); - }, 200), + }, 600), setTimeout(() => { (clearTimeout(timeout), child.kill()); const listResponse = receivedMessages.find(m => 2 === m.id); @@ -233,7 +233,7 @@ import { spawn } from "child_process"; expect(pushTool.inputSchema.properties.branch.description).toContain("If omitted"), expect(pushTool.inputSchema.properties.branch.description).toContain("current"), resolve()); - }, 500)); + }, 1500)); }); })); }), @@ -312,11 +312,11 @@ import { spawn } from "child_process"; setTimeout(() => { const initMessage = JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: { protocolVersion: "2024-11-05", capabilities: {}, clientInfo: { name: "test-client", version: "1.0.0" } } }) + "\n"; child.stdin.write(initMessage); - }, 100), + }, 300), setTimeout(() => { const toolCallMessage = JSON.stringify({ jsonrpc: "2.0", id: 2, method: "tools/call", params: { name: "create_issue", arguments: { title: "Test Issue", body: "Test body" } } }) + "\n"; child.stdin.write(toolCallMessage); - }, 200), + }, 600), setTimeout(() => { (clearTimeout(timeout), child.kill()); const toolCallResponse = receivedMessages.find(m => 2 === m.id); @@ -329,7 +329,7 @@ import { spawn } from "child_process"; (expect(firstContent.type).toBe("text"), expect(firstContent.text).toBeDefined(), expect(() => JSON.parse(firstContent.text)).not.toThrow()); const parsedResult = JSON.parse(firstContent.text); (expect(parsedResult).toHaveProperty("result"), expect(parsedResult.result).toBe("success"), resolve()); - }, 500)); + }, 1500)); }); })); }));