Skip to content

Commit b86b94b

Browse files
shantanu patilclaude
authored andcommitted
Fix env var mismatches and update repos for Phase 7 ingestion
- WIKI_STORAGE_BACKEND → WIKI_STORAGE_TYPE (matches api/storage.py) - GCS_BUCKET_NAME → GCS_BUCKET (matches api/storage.py) - Add DEEPWIKI_EMBEDDER_TYPE=google to deploy pipeline - Fix ingest.py Supabase column: github_stars → star_count, add gcs_cache_path - Update repos.json with new showcase repos (claude-code, gemini-cli, etc.) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d03b801 commit b86b94b

6 files changed

Lines changed: 27 additions & 25 deletions

File tree

.github/workflows/deploy-api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
--min-instances=0
7474
--max-instances=3
7575
--service-account=runtime-sa@gitunderstand.iam.gserviceaccount.com
76-
--set-env-vars=ENVIRONMENT=production,WIKI_STORAGE_BACKEND=gcs,GCS_BUCKET_NAME=gitunderstand-wikicache
76+
--set-env-vars=ENVIRONMENT=production,WIKI_STORAGE_TYPE=gcs,GCS_BUCKET=gitunderstand-wikicache,DEEPWIKI_EMBEDDER_TYPE=google
7777
--set-secrets=GOOGLE_API_KEY=google-api-key:latest,OPENAI_API_KEY=openai-api-key:latest,CLERK_SECRET_KEY=clerk-secret-key:latest,SUPABASE_URL=supabase-url:latest,SUPABASE_SERVICE_ROLE_KEY=supabase-service-role-key:latest
7878
7979
- name: Verify deployment health

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ deploy-api: ## Deploy API to Cloud Run (uses latest GAR image)
6161
--port 8001 \
6262
--cpu 1 --memory 2Gi \
6363
--min-instances 0 --max-instances 3 \
64-
--set-env-vars "ENVIRONMENT=production,WIKI_STORAGE_BACKEND=gcs,GCS_BUCKET_NAME=gitunderstand-wikicache" \
64+
--set-env-vars "ENVIRONMENT=production,WIKI_STORAGE_TYPE=gcs,GCS_BUCKET=gitunderstand-wikicache,DEEPWIKI_EMBEDDER_TYPE=google" \
6565
--set-secrets "GOOGLE_API_KEY=google-api-key:latest,OPENAI_API_KEY=openai-api-key:latest,CLERK_SECRET_KEY=clerk-secret-key:latest,SUPABASE_URL=supabase-url:latest,SUPABASE_SERVICE_ROLE_KEY=supabase-service-role-key:latest"
6666

6767
deploy-web: ## Deploy Web to Cloud Run (uses latest GAR image)

docker/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ services:
3737
- PORT=8001
3838
- NODE_ENV=development
3939
- LOG_LEVEL=${LOG_LEVEL:-INFO}
40-
- WIKI_STORAGE_BACKEND=${WIKI_STORAGE_BACKEND:-local}
41-
- GCS_BUCKET_NAME=${GCS_BUCKET_NAME:-gitunderstand-wikicache}
40+
- WIKI_STORAGE_TYPE=${WIKI_STORAGE_TYPE:-local}
41+
- GCS_BUCKET=${GCS_BUCKET:-gitunderstand-wikicache}
4242
env_file:
4343
- ../.env
4444
volumes:

infra/environments/prod/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ module "api" {
8585

8686
env_vars = {
8787
ENVIRONMENT = "production"
88-
WIKI_STORAGE_BACKEND = "gcs"
89-
GCS_BUCKET_NAME = "gitunderstand-wikicache"
88+
WIKI_STORAGE_TYPE = "gcs"
89+
GCS_BUCKET = "gitunderstand-wikicache"
90+
DEEPWIKI_EMBEDDER_TYPE = "google"
9091
}
9192

9293
secret_env_vars = {

scripts/ingest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ def upsert_supabase(
824824
try:
825825
from api.supabase_client import db
826826

827+
cache_key = f"deepwiki_cache_github_{owner}_{repo}_{language}.json"
827828
result = db.upsert_wiki_project(
828829
owner=owner,
829830
repo=repo,
@@ -834,9 +835,9 @@ def upsert_supabase(
834835
tags=tags,
835836
is_published=True,
836837
is_featured=is_featured,
837-
github_stars=stars,
838-
github_url=github_url,
838+
star_count=stars,
839839
page_count=page_count,
840+
gcs_cache_path=cache_key,
840841
)
841842
return result
842843
except RuntimeError as exc:

scripts/repos.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
[
22
{
3-
"owner": "facebook",
4-
"repo": "react",
3+
"owner": "anthropics",
4+
"repo": "claude-code",
55
"platform": "github",
6-
"tags": ["javascript", "ui", "frontend", "library"],
6+
"tags": ["typescript", "ai", "cli", "agent", "coding"],
77
"featured": true
88
},
99
{
10-
"owner": "pallets",
11-
"repo": "flask",
10+
"owner": "google-gemini",
11+
"repo": "gemini-cli",
1212
"platform": "github",
13-
"tags": ["python", "web", "backend", "microframework"],
14-
"featured": true
15-
},
16-
{
17-
"owner": "expressjs",
18-
"repo": "express",
19-
"platform": "github",
20-
"tags": ["javascript", "node", "backend", "web"],
13+
"tags": ["typescript", "ai", "cli", "terminal", "agent"],
2114
"featured": true
2215
},
2316
{
@@ -31,14 +24,21 @@
3124
"owner": "vercel",
3225
"repo": "next.js",
3326
"platform": "github",
34-
"tags": ["javascript", "react", "fullstack", "framework"],
27+
"tags": ["typescript", "react", "fullstack", "framework"],
28+
"featured": true
29+
},
30+
{
31+
"owner": "openclaw",
32+
"repo": "openclaw",
33+
"platform": "github",
34+
"tags": ["typescript", "ai", "assistant", "open-source"],
3535
"featured": true
3636
},
3737
{
38-
"owner": "rust-lang",
39-
"repo": "rust-analyzer",
38+
"owner": "REDFOX1899",
39+
"repo": "vigilant-sanderson",
4040
"platform": "github",
41-
"tags": ["rust", "tooling", "ide", "language-server"],
41+
"tags": ["go", "cli", "shell", "ai", "safety"],
4242
"featured": true
4343
}
4444
]

0 commit comments

Comments
 (0)