Skip to content

Commit d2730cb

Browse files
committed
Adjust test suite according to update
1 parent 8dec903 commit d2730cb

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

registry/coder/modules/aider/main.test.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,19 @@ const setup = async (props?: SetupProps): Promise<{ id: string }> => {
6666
return { id };
6767
};
6868

69-
setDefaultTimeout(60 * 5000);
69+
setDefaultTimeout(60 * 1000);
7070

7171
describe("Aider", async () => {
7272
beforeAll(async () => {
7373
await runTerraformInit(import.meta.dir);
7474
});
7575

7676
test("happy-path", async () => {
77-
const { id } = await setup();
77+
const { id } = await setup({
78+
moduleVariables: {
79+
ai_model: "gemini",
80+
},
81+
});
7882
await execModuleScript(id);
7983
await expectAgentAPIStarted(id);
8084
});
@@ -84,6 +88,7 @@ describe("Aider", async () => {
8488
const { id } = await setup({
8589
moduleVariables: {
8690
ai_api_key: apiKey,
91+
ai_model: "gemini",
8792
},
8893
});
8994
await execModuleScript(id);
@@ -99,6 +104,7 @@ describe("Aider", async () => {
99104
const { id } = await setup({
100105
moduleVariables: {
101106
folder,
107+
ai_model: "gemini",
102108
},
103109
});
104110
await execModuleScript(id);
@@ -115,6 +121,7 @@ describe("Aider", async () => {
115121
experiment_pre_install_script: "#!/bin/bash\necho 'pre-install-script'",
116122
experiment_post_install_script:
117123
"#!/bin/bash\necho 'post-install-script'",
124+
ai_model: "gemini",
118125
},
119126
});
120127
await execModuleScript(id);
@@ -135,6 +142,7 @@ describe("Aider", async () => {
135142
const { id } = await setup({
136143
moduleVariables: {
137144
system_prompt,
145+
ai_model: "gemini",
138146
},
139147
});
140148
await execModuleScript(id);
@@ -151,10 +159,12 @@ describe("Aider", async () => {
151159
const { id } = await setup({
152160
moduleVariables: {
153161
ai_api_key: apiKey,
154-
task_prompt: prompt,
162+
ai_model: "gemini",
155163
},
156164
});
157-
await execModuleScript(id);
165+
await execModuleScript(id, {
166+
ARG_TASK_PROMPT: `${prompt}`,
167+
});
158168
const resp = await readFileContainer(
159169
id,
160170
"/home/coder/.aider-module/agentapi-start.log",

registry/coder/modules/aider/scripts/start.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ echo "Provider: $ARG_AI_PROVIDER"
99
echo "Module: $ARG_AI_MODULE"
1010
echo "--------------------------------"
1111

12-
ARG_TASK_PROMPT=$(echo -n "${ARG_TASK_PROMPT:-}" | base64 -d)
13-
1412
if [ -n "$ARG_API_KEY" ]; then
1513
printf "API key provided !\n"
1614
export $ARG_ENV_API_NAME_HOLDER=$ARG_API_KEY

0 commit comments

Comments
 (0)