refactor: retire external vector deployment
This commit is contained in:
@@ -9,10 +9,12 @@ trap 'rm -rf "$fixture"' EXIT HUP INT TERM
|
||||
new_fixture() {
|
||||
rm -rf "$fixture/repository"
|
||||
mkdir -p \
|
||||
"$fixture/repository/backend/src/workspaces" \
|
||||
"$fixture/repository/deploy/env" \
|
||||
"$fixture/repository/deploy/workspaces" \
|
||||
"$fixture/repository/docker/smoke" \
|
||||
"$fixture/repository/docs/install" \
|
||||
"$fixture/repository/docs/superpowers/specs" \
|
||||
"$fixture/repository/docs/superpowers/plans" \
|
||||
"$fixture/repository/frontend" \
|
||||
"$fixture/repository/scripts"
|
||||
@@ -24,10 +26,14 @@ new_fixture() {
|
||||
printf '%s\n' 'THT_LLM_URL=https://llm.example.invalid' >"$fixture/repository/deploy/env/local.env.example"
|
||||
printf '%s\n' '# generic launcher' >"$fixture/repository/scripts/run-stack.sh"
|
||||
printf '%s\n' '// generic frontend configuration' >"$fixture/repository/frontend/vite.config.ts"
|
||||
printf '%s\n' '// explicit descriptor migration module may mention pgvector during conversion' \
|
||||
>"$fixture/repository/backend/src/workspaces/migrate-legacy.ts"
|
||||
|
||||
# These are the three intentionally allowed categories from the Task 10 boundary.
|
||||
printf '%s\n' 'historical omics_portal and Chirone record' \
|
||||
>"$fixture/repository/docs/superpowers/plans/legacy.md"
|
||||
printf '%s\n' 'historical pgvector rollout note' \
|
||||
>"$fixture/repository/docs/superpowers/specs/history.md"
|
||||
printf '%s\n' 'id: psd' >"$fixture/repository/deploy/workspaces/psd.yaml.example"
|
||||
printf '%s\n' '# migrate PSD sessions from /home/chirone' \
|
||||
>"$fixture/repository/docker/session-migrate.sh"
|
||||
@@ -65,6 +71,12 @@ assert_detected frontend/vite.config.ts 'const base = "/omics_portal";'
|
||||
assert_detected scripts/test-qwen-network-config.sh 'require localllm_default'
|
||||
assert_detected scripts/test-provider-network.sh 'if (!config.networks?.localllm_default?.external) exit 1'
|
||||
assert_detected deploy/compose.psd-local.yaml 'services: {}'
|
||||
assert_detected deploy/compose.local-vector.yaml 'services: {}'
|
||||
assert_detected deploy/compose.preprocess-local-vector.yaml 'services: {}'
|
||||
assert_detected scripts/run-stack.sh 'export THT_VECTOR_READER_PASSWORD_FILE=/run/secrets/vector-reader'
|
||||
assert_detected deploy/env/local.env.example 'THT_OLLAMA_URL=http://ollama.example.invalid:11434'
|
||||
assert_detected scripts/generate-override.sh 'THT_WS_NORTH_STAR_RESEARCH_VECTOR_API_KEY_SOURCE=/tmp/vector-key'
|
||||
assert_detected scripts/test-contract.sh 'docker compose -f deploy/compose.local-vector.yaml --profile local-vector config'
|
||||
|
||||
new_fixture
|
||||
mkdir -p "$fixture/bin"
|
||||
|
||||
Reference in New Issue
Block a user