testeranto 0.219.2 → 0.219.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/src/server/runtimes/node/docker.js +3 -2
- package/dist/common/src/server/serverClasees/Server.js +1 -1
- package/dist/common/src/server/serverClasees/Server_Docker.js +14 -9
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/server/runtimes/node/docker.js +3 -2
- package/dist/module/src/server/serverClasees/Server.js +1 -1
- package/dist/module/src/server/serverClasees/Server_Docker.js +14 -9
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/testeranto.mjs +16 -12
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/server/runtimes/node/docker.ts +3 -2
- package/src/server/serverClasees/Server.ts +1 -1
- package/src/server/serverClasees/Server_Docker.ts +17 -9
- package/testeranto/runtimes/node/node.Dockerfile +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "testeranto",
|
|
3
3
|
"displayName": "Testeranto",
|
|
4
4
|
"description": "the Dockerized, AI powered, BDD test framework for polyglot projects",
|
|
5
|
-
"version": "0.219.
|
|
5
|
+
"version": "0.219.3",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.19.0",
|
|
8
8
|
"vscode": "^1.60.0"
|
|
@@ -414,4 +414,4 @@
|
|
|
414
414
|
"cucumber",
|
|
415
415
|
"ATDD"
|
|
416
416
|
]
|
|
417
|
-
}
|
|
417
|
+
}
|
|
@@ -27,9 +27,10 @@ const externalTests = true;
|
|
|
27
27
|
|
|
28
28
|
export const nodeBuildCommand = (fpath: string) => {
|
|
29
29
|
|
|
30
|
-
if (
|
|
30
|
+
if (externalTests) {
|
|
31
31
|
console.log("external tests")
|
|
32
|
-
return `
|
|
32
|
+
return `tsx /workspace/node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/${fpath}`;
|
|
33
|
+
// return `/workspace/node_modules/testeranto/src/server/runtimes/node/node.ts`
|
|
33
34
|
} else {
|
|
34
35
|
console.log("not external tests")
|
|
35
36
|
return `yarn tsx src/server/runtimes/node/node.ts /workspace/${fpath}`;
|
|
@@ -4,7 +4,7 @@ import { IBuiltConfig, IConfig } from "../../Types";
|
|
|
4
4
|
import { IMode } from "../types";
|
|
5
5
|
import { Server_Docker } from "./Server_Docker";
|
|
6
6
|
|
|
7
|
-
console.log("hello server")
|
|
7
|
+
console.log("hello server !?#")
|
|
8
8
|
|
|
9
9
|
readline.emitKeypressEvents(process.stdin);
|
|
10
10
|
if (process.stdin.isTTY) process.stdin.setRawMode(true);
|
|
@@ -359,7 +359,7 @@ ${x}
|
|
|
359
359
|
// return false;
|
|
360
360
|
// }
|
|
361
361
|
|
|
362
|
-
private async startServiceLogging(serviceName: string,
|
|
362
|
+
private async startServiceLogging(serviceName: string, runtime: string): Promise<void> {
|
|
363
363
|
// Create report directory
|
|
364
364
|
const reportDir = path.join(
|
|
365
365
|
process.cwd(),
|
|
@@ -530,6 +530,11 @@ ${x}
|
|
|
530
530
|
console.log(`[Server_Docker] Starting builder service: ${serviceName}`);
|
|
531
531
|
try {
|
|
532
532
|
await this.spawnPromise(`docker compose -f "testeranto/docker-compose.yml" up -d ${serviceName}`);
|
|
533
|
+
this.startServiceLogging(serviceName, runtime)
|
|
534
|
+
.catch(error => console.error(`[Server_Docker] Failed to start logging for ${serviceName}:`, error));
|
|
535
|
+
this.captureExistingLogs(serviceName, runtime)
|
|
536
|
+
|
|
537
|
+
|
|
533
538
|
} catch (error: any) {
|
|
534
539
|
console.error(`[Server_Docker] Failed to start ${serviceName}: ${error.message}`);
|
|
535
540
|
}
|
|
@@ -564,8 +569,11 @@ ${x}
|
|
|
564
569
|
try {
|
|
565
570
|
await this.spawnPromise(`docker compose -f "testeranto/docker-compose.yml" up -d ${aiderServiceName}`);
|
|
566
571
|
// Start logging for aider services
|
|
567
|
-
this.startServiceLogging(aiderServiceName,
|
|
572
|
+
this.startServiceLogging(aiderServiceName, runtime)
|
|
568
573
|
.catch(error => console.error(`[Server_Docker] Failed to start logging for ${aiderServiceName}:`, error));
|
|
574
|
+
|
|
575
|
+
this.captureExistingLogs(aiderServiceName, runtime)
|
|
576
|
+
.catch(error => console.error(`[Server_Docker] Failed to capture existing logs for ${aiderServiceName}:`, error));
|
|
569
577
|
} catch (error: any) {
|
|
570
578
|
console.error(`[Server_Docker] Failed to start ${aiderServiceName}: ${error.message}`);
|
|
571
579
|
}
|
|
@@ -590,16 +598,16 @@ ${x}
|
|
|
590
598
|
|
|
591
599
|
// Immediately start logging in the background
|
|
592
600
|
// Don't wait for it to complete
|
|
593
|
-
this.startServiceLogging(bddServiceName,
|
|
601
|
+
this.startServiceLogging(bddServiceName, runtime)
|
|
594
602
|
.catch(error => console.error(`[Server_Docker] Failed to start logging for ${bddServiceName}:`, error));
|
|
595
603
|
|
|
596
604
|
// Also capture any existing logs from the container (in case it already produced output)
|
|
597
|
-
this.captureExistingLogs(bddServiceName, runtime
|
|
605
|
+
this.captureExistingLogs(bddServiceName, runtime)
|
|
598
606
|
.catch(error => console.error(`[Server_Docker] Failed to capture existing logs for ${bddServiceName}:`, error));
|
|
599
607
|
} catch (error: any) {
|
|
600
608
|
console.error(`[Server_Docker] Failed to start ${bddServiceName}: ${error.message}`);
|
|
601
609
|
// Even if starting failed, try to capture any logs that might exist
|
|
602
|
-
this.captureExistingLogs(bddServiceName, runtime
|
|
610
|
+
this.captureExistingLogs(bddServiceName, runtime)
|
|
603
611
|
.catch(err => console.error(`[Server_Docker] Also failed to capture logs:`, err));
|
|
604
612
|
}
|
|
605
613
|
}
|
|
@@ -621,16 +629,16 @@ ${x}
|
|
|
621
629
|
try {
|
|
622
630
|
await this.spawnPromise(`docker compose -f "testeranto/docker-compose.yml" up -d ${staticServiceName}`);
|
|
623
631
|
// Start logging for this service
|
|
624
|
-
this.startServiceLogging(staticServiceName,
|
|
632
|
+
this.startServiceLogging(staticServiceName, runtime)
|
|
625
633
|
.catch(error => console.error(`[Server_Docker] Failed to start logging for ${staticServiceName}:`, error));
|
|
626
634
|
|
|
627
635
|
// Also capture any existing logs
|
|
628
|
-
this.captureExistingLogs(staticServiceName, runtime
|
|
636
|
+
this.captureExistingLogs(staticServiceName, runtime)
|
|
629
637
|
.catch(error => console.error(`[Server_Docker] Failed to capture existing logs for ${staticServiceName}:`, error));
|
|
630
638
|
} catch (error: any) {
|
|
631
639
|
console.error(`[Server_Docker] Failed to start ${staticServiceName}: ${error.message}`);
|
|
632
640
|
// Try to capture logs even if starting failed
|
|
633
|
-
this.captureExistingLogs(staticServiceName, runtime
|
|
641
|
+
this.captureExistingLogs(staticServiceName, runtime)
|
|
634
642
|
.catch(err => console.error(`[Server_Docker] Also failed to capture logs:`, err));
|
|
635
643
|
}
|
|
636
644
|
}
|
|
@@ -638,7 +646,7 @@ ${x}
|
|
|
638
646
|
}
|
|
639
647
|
}
|
|
640
648
|
|
|
641
|
-
private async captureExistingLogs(serviceName: string, runtime: string
|
|
649
|
+
private async captureExistingLogs(serviceName: string, runtime: string): Promise<void> {
|
|
642
650
|
// Create report directory
|
|
643
651
|
const reportDir = path.join(
|
|
644
652
|
process.cwd(),
|