refactor: retire external vector deployment
This commit is contained in:
@@ -1122,8 +1122,8 @@ verify_local_installation_example() {
|
||||
node - "$rendered" <<'NODE'
|
||||
const fs = require("fs");
|
||||
const config = JSON.parse(fs.readFileSync(process.argv[2], "utf8"));
|
||||
if (Object.keys(config.services).sort().join(",") !== "core,frontend") {
|
||||
throw new Error("local installation example must render exactly core,frontend");
|
||||
if (Object.keys(config.services).sort().join(",") !== "core,embedding,embedding-model-init,frontend,qdrant") {
|
||||
throw new Error("local installation example must render the internal semantic stack");
|
||||
}
|
||||
const output = JSON.stringify(config);
|
||||
for (const secret of [
|
||||
@@ -1244,8 +1244,8 @@ verify_server_installation_example() {
|
||||
node - "$rendered" <<'NODE'
|
||||
const fs = require("fs");
|
||||
const config = JSON.parse(fs.readFileSync(process.argv[2], "utf8"));
|
||||
if (Object.keys(config.services).sort().join(",") !== "core,frontend") {
|
||||
throw new Error("server installation example must render exactly core,frontend");
|
||||
if (Object.keys(config.services).sort().join(",") !== "core,embedding,embedding-model-init,frontend,qdrant") {
|
||||
throw new Error("server installation example must render the internal semantic stack");
|
||||
}
|
||||
const core = config.services.core;
|
||||
const frontend = config.services.frontend;
|
||||
@@ -1346,7 +1346,6 @@ verify_compose_fixtures() {
|
||||
write_private "$fixture/git-ssh-key" 'fixture-git-ssh-key'
|
||||
write_private "$fixture/git-known-hosts" 'fixture-git-known-hosts'
|
||||
write_private "$fixture/dwh-password" 'fixture-dwh-password'
|
||||
write_private "$fixture/vector-api-key" 'fixture-vector-api-key'
|
||||
write_private "$fixture/session-runtime-password" 'fixture-session-runtime-password'
|
||||
write_private "$fixture/session-migrator-password" 'fixture-session-migrator-password'
|
||||
write_private "$fixture/session-ca.pem" 'fixture-session-ca'
|
||||
@@ -1355,8 +1354,6 @@ verify_compose_fixtures() {
|
||||
printf '%s\n' \
|
||||
'THT_WS_NORTH_STAR_RESEARCH_DWH_TRANSPORT=postgres_direct' \
|
||||
'THT_WS_NORTH_STAR_RESEARCH_DWH_PASSWORD_FILE=/run/secrets/north-star-research-dwh-password' \
|
||||
'THT_WS_NORTH_STAR_RESEARCH_VECTOR_TRANSPORT=rest_api' \
|
||||
'THT_WS_NORTH_STAR_RESEARCH_VECTOR_API_KEY_FILE=/run/secrets/north-star-research-vector-api-key' \
|
||||
>"$fixture/workspace-bindings.env"
|
||||
|
||||
printf '%s\n' \
|
||||
@@ -1367,7 +1364,6 @@ verify_compose_fixtures() {
|
||||
"THT_WORKSPACE_GIT_SSH_KEY_FILE=$fixture/git-ssh-key" \
|
||||
"THT_WORKSPACE_GIT_KNOWN_HOSTS_FILE=$fixture/git-known-hosts" \
|
||||
"THT_WS_NORTH_STAR_RESEARCH_DWH_PASSWORD_SOURCE=$fixture/dwh-password" \
|
||||
"THT_WS_NORTH_STAR_RESEARCH_VECTOR_API_KEY_SOURCE=$fixture/vector-api-key" \
|
||||
"THT_DATA_ROOT=$fixture/data" \
|
||||
"THT_PI_STATE_ROOT=$fixture/pi-state" \
|
||||
"THT_WORKSPACE_REGISTRY_ROOT=$fixture/workspace-registry" \
|
||||
@@ -1407,8 +1403,8 @@ verify_compose_fixtures() {
|
||||
const fs = require("fs");
|
||||
const [path, profile] = process.argv.slice(2);
|
||||
const config = JSON.parse(fs.readFileSync(path, "utf8"));
|
||||
if (Object.keys(config.services).sort().join(",") !== "core,frontend") {
|
||||
throw new Error(profile + ": mandatory stack must be exactly core,frontend");
|
||||
if (Object.keys(config.services).sort().join(",") !== "core,embedding,embedding-model-init,frontend,qdrant") {
|
||||
throw new Error(profile + ": mandatory stack must include the internal semantic services");
|
||||
}
|
||||
const core = config.services.core;
|
||||
for (const target of [
|
||||
@@ -1422,7 +1418,6 @@ for (const target of [
|
||||
}
|
||||
for (const [name, value] of Object.entries({
|
||||
THT_WS_NORTH_STAR_RESEARCH_DWH_PASSWORD_FILE: "/run/secrets/north-star-research-dwh-password",
|
||||
THT_WS_NORTH_STAR_RESEARCH_VECTOR_API_KEY_FILE: "/run/secrets/north-star-research-vector-api-key",
|
||||
})) {
|
||||
if (core.environment?.[name] !== value) throw new Error(profile + ": missing binding " + name);
|
||||
}
|
||||
@@ -1430,7 +1425,6 @@ const secretTargets = new Set((core.secrets || []).map((secret) => secret.target
|
||||
for (const target of [
|
||||
"thothii.secrets",
|
||||
"north-star-research-dwh-password",
|
||||
"north-star-research-vector-api-key",
|
||||
]) {
|
||||
if (!secretTargets.has(target)) throw new Error(profile + ": missing secret target " + target);
|
||||
}
|
||||
@@ -1445,7 +1439,7 @@ if ((config.services.frontend.secrets || []).length !== 0) {
|
||||
const rendered = JSON.stringify(config);
|
||||
for (const value of [
|
||||
"fixture-native-auth-key", "fixture-model-api-key", "fixture-git-ssh-key",
|
||||
"fixture-git-known-hosts", "fixture-dwh-password", "fixture-vector-api-key",
|
||||
"fixture-git-known-hosts", "fixture-dwh-password",
|
||||
"fixture-session-runtime-password", "fixture-session-migrator-password", "fixture-session-ca",
|
||||
]) {
|
||||
if (rendered.includes(value)) throw new Error(profile + ": rendered Compose leaked " + value);
|
||||
|
||||
Reference in New Issue
Block a user