postgresai 0.14.0-dev.61 → 0.14.0-dev.63
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/bin/postgres-ai.ts
CHANGED
|
@@ -1804,14 +1804,18 @@ mon
|
|
|
1804
1804
|
const orphanedVolumes = volumeList.filter(v => volumePatterns.includes(v));
|
|
1805
1805
|
|
|
1806
1806
|
if (orphanedVolumes.length > 0) {
|
|
1807
|
+
let removedCount = 0;
|
|
1807
1808
|
for (const vol of orphanedVolumes) {
|
|
1808
1809
|
try {
|
|
1809
1810
|
await execFilePromise("docker", ["volume", "rm", vol]);
|
|
1811
|
+
removedCount++;
|
|
1810
1812
|
} catch {
|
|
1811
|
-
// Volume might be in use, skip
|
|
1813
|
+
// Volume might be in use, skip silently
|
|
1812
1814
|
}
|
|
1813
1815
|
}
|
|
1814
|
-
|
|
1816
|
+
if (removedCount > 0) {
|
|
1817
|
+
console.log(`✓ Removed ${removedCount} orphaned volume(s) from previous installs`);
|
|
1818
|
+
}
|
|
1815
1819
|
}
|
|
1816
1820
|
}
|
|
1817
1821
|
|
package/bunfig.toml
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
# https://bun.sh/docs/runtime/bunfig
|
|
3
3
|
|
|
4
4
|
[test]
|
|
5
|
-
# Default timeout for all tests (
|
|
5
|
+
# Default timeout for all tests (60 seconds)
|
|
6
6
|
# Integration tests that connect to databases need longer timeouts
|
|
7
|
-
|
|
7
|
+
# PostgreSQL startup can take up to 30s in slow CI environments
|
|
8
|
+
timeout = 60000
|
|
8
9
|
|
|
9
10
|
# Coverage settings - enabled by default for test runs
|
|
10
11
|
coverage = true
|
package/dist/bin/postgres-ai.js
CHANGED
|
@@ -13064,7 +13064,7 @@ var {
|
|
|
13064
13064
|
// package.json
|
|
13065
13065
|
var package_default = {
|
|
13066
13066
|
name: "postgresai",
|
|
13067
|
-
version: "0.14.0-dev.
|
|
13067
|
+
version: "0.14.0-dev.63",
|
|
13068
13068
|
description: "postgres_ai CLI",
|
|
13069
13069
|
license: "Apache-2.0",
|
|
13070
13070
|
private: false,
|
|
@@ -15887,7 +15887,7 @@ var Result = import_lib.default.Result;
|
|
|
15887
15887
|
var TypeOverrides = import_lib.default.TypeOverrides;
|
|
15888
15888
|
var defaults = import_lib.default.defaults;
|
|
15889
15889
|
// package.json
|
|
15890
|
-
var version = "0.14.0-dev.
|
|
15890
|
+
var version = "0.14.0-dev.63";
|
|
15891
15891
|
var package_default2 = {
|
|
15892
15892
|
name: "postgresai",
|
|
15893
15893
|
version,
|
|
@@ -27778,12 +27778,16 @@ mon.command("clean").description("cleanup monitoring services artifacts (stops s
|
|
|
27778
27778
|
`).filter(Boolean);
|
|
27779
27779
|
const orphanedVolumes = volumeList.filter((v) => volumePatterns.includes(v));
|
|
27780
27780
|
if (orphanedVolumes.length > 0) {
|
|
27781
|
+
let removedCount = 0;
|
|
27781
27782
|
for (const vol of orphanedVolumes) {
|
|
27782
27783
|
try {
|
|
27783
27784
|
await execFilePromise("docker", ["volume", "rm", vol]);
|
|
27785
|
+
removedCount++;
|
|
27784
27786
|
} catch {}
|
|
27785
27787
|
}
|
|
27786
|
-
|
|
27788
|
+
if (removedCount > 0) {
|
|
27789
|
+
console.log(`\u2713 Removed ${removedCount} orphaned volume(s) from previous installs`);
|
|
27790
|
+
}
|
|
27787
27791
|
}
|
|
27788
27792
|
}
|
|
27789
27793
|
await execFilePromise("docker", ["network", "prune", "-f"]);
|
package/lib/metrics-embedded.ts
CHANGED
package/package.json
CHANGED
|
@@ -131,11 +131,11 @@ async function createTempPostgres(): Promise<TempPostgres> {
|
|
|
131
131
|
return c;
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
// Wait for Postgres to start
|
|
134
|
+
// Wait for Postgres to start (30s timeout for slower CI environments)
|
|
135
135
|
await waitFor(async () => {
|
|
136
136
|
const c = await connect();
|
|
137
137
|
await c.end();
|
|
138
|
-
});
|
|
138
|
+
}, { timeoutMs: 30000, intervalMs: 100 });
|
|
139
139
|
|
|
140
140
|
return { port, socketDir, cleanup, connect };
|
|
141
141
|
}
|
|
@@ -172,15 +172,16 @@ describe.skipIf(!!skipReason)("checkup integration: express mode schema compatib
|
|
|
172
172
|
let pg: TempPostgres;
|
|
173
173
|
let client: Client;
|
|
174
174
|
|
|
175
|
+
// 60s timeout for hooks - PostgreSQL startup can take 30s+ in slow CI
|
|
175
176
|
beforeAll(async () => {
|
|
176
177
|
pg = await createTempPostgres();
|
|
177
178
|
client = await pg.connect();
|
|
178
|
-
});
|
|
179
|
+
}, { timeout: 60000 });
|
|
179
180
|
|
|
180
181
|
afterAll(async () => {
|
|
181
182
|
if (client) await client.end();
|
|
182
183
|
if (pg) await pg.cleanup();
|
|
183
|
-
});
|
|
184
|
+
}, { timeout: 60000 });
|
|
184
185
|
|
|
185
186
|
// Test all checks supported by express mode
|
|
186
187
|
const expressChecks = Object.keys(checkup.CHECK_INFO);
|
|
@@ -137,10 +137,11 @@ async function createTempPostgres(): Promise<TempPostgres> {
|
|
|
137
137
|
return c;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
+
// Wait for Postgres to start (30s timeout for slower CI environments)
|
|
140
141
|
await waitFor(async () => {
|
|
141
142
|
const c = await connectLocal();
|
|
142
143
|
await c.end();
|
|
143
|
-
});
|
|
144
|
+
}, { timeoutMs: 30000, intervalMs: 100 });
|
|
144
145
|
|
|
145
146
|
const postgresPassword = "postgrespw";
|
|
146
147
|
{
|