From ba5bddaaca679160f6cd210b5cf350264b6e46dc Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 31 Oct 2023 09:44:55 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20testing=20ci=20server=20start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/activation/environmentSetup.ts | 2 +- extensions/vscode/src/test-suite/environmentSetup.test.ts | 6 ++++-- server/continuedev/libs/llm/prompts/chat.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/extensions/vscode/src/activation/environmentSetup.ts b/extensions/vscode/src/activation/environmentSetup.ts index 031f99746..f6f1c37ad 100644 --- a/extensions/vscode/src/activation/environmentSetup.ts +++ b/extensions/vscode/src/activation/environmentSetup.ts @@ -241,7 +241,7 @@ function runExecutable(path: string) { const child = spawn(path, settings); // Either unref to avoid zombie process, or listen to events because you can - if (os.platform() === "win32") { + if (os.platform() === "win32" || true) { child.stdout.on("data", (data: any) => { console.log(`stdout: ${data}`); }); diff --git a/extensions/vscode/src/test-suite/environmentSetup.test.ts b/extensions/vscode/src/test-suite/environmentSetup.test.ts index f4345915e..3fb5929bf 100644 --- a/extensions/vscode/src/test-suite/environmentSetup.test.ts +++ b/extensions/vscode/src/test-suite/environmentSetup.test.ts @@ -6,8 +6,8 @@ import { startContinuePythonServer } from "../activation/environmentSetup"; import fetch from "node-fetch"; describe("Can start python server", () => { - test("Can start python server in under 80 seconds", async function () { - const allowedTime = 120_000; + test("Can start python server in under 80 seconds", async function (done) { + const allowedTime = 80_000; this.timeout(allowedTime + 10_000); console.log("Starting server in test..."); @@ -22,5 +22,7 @@ describe("Can start python server", () => { console.log("Server URL: ", serverUrl); const response = await fetch(`${serverUrl}/health`); assert.equal(response.status, 200); + + done(); }); }); diff --git a/server/continuedev/libs/llm/prompts/chat.py b/server/continuedev/libs/llm/prompts/chat.py index 6de8772f6..068c2faf9 100644 --- a/server/continuedev/libs/llm/prompts/chat.py +++ b/server/continuedev/libs/llm/prompts/chat.py @@ -155,7 +155,7 @@ Based on your instructions, here is the SQL query I have generated to answer the def sqlcoder_template_messages(schema: str = SQL_CODER_DEFAULT_SCHEMA): - if schema == "" or schema == "": + if schema in {"", ""}: schema = SQL_CODER_DEFAULT_SCHEMA def fn(msgs):