From cb39af5c2415c5842621528c77f5f959baefa72d Mon Sep 17 00:00:00 2001 From: AsperforMias Date: Mon, 9 Nov 2026 20:21:36 -0800 Subject: [PATCH] ci: stop depending on the retired dev environment The dev environment (dev.ghfind.com, *-dev Workers) and per-PR previews were taken down on 2026-11-09. CI's Worker dry runs now build the production env, and the local Feed migration check names the database by binding (GHFIND_FEED_D1), so it works before and after ghfind-server drops its dev config. Docs no longer list a dev environment. Co-Authored-By: Claude Opus 5.5 --- .github/compose/d1-read.sh | 2 +- .github/workflows/ci.yml | 8 ++++---- docs/deployment.zh.md | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/compose/d1-read.sh b/.github/compose/d1-read.sh index 16b0f0fe..a580961a 100755 --- a/.github/compose/d1-read.sh +++ b/.github/compose/d1-read.sh @@ -5,7 +5,7 @@ # .github/compose/d1-read.sh core "SELECT name FROM d1_migrations ORDER BY id" # .github/compose/d1-read.sh feed "SELECT COUNT(*) FROM feed_items" # -# core = ghfind (shared by dev and production), feed = ghfind-feed. Schema changes go +# core = ghfind, feed = ghfind-feed (production is the only environment). Schema changes go # through migrations and ops/feed-production-schema-release.json in ghfind-server, # never through this script, so it accepts one SELECT / WITH / EXPLAIN / read-only # PRAGMA statement and rejects anything that writes. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2f1431c..bd5dc2c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,7 +120,7 @@ jobs: - name: Verify Cloudflare D1 migrations from an empty database run: | pnpm exec wrangler d1 migrations apply ghfind --local --persist-to "$RUNNER_TEMP/ghfind-d1-migrations" - pnpm exec wrangler d1 migrations apply ghfind-feed-dev --local --persist-to "$RUNNER_TEMP/ghfind-d1-migrations" + pnpm exec wrangler d1 migrations apply GHFIND_FEED_D1 --local --persist-to "$RUNNER_TEMP/ghfind-d1-migrations" # Required database contracts run in the separate isolated service job. - name: Test Go packages @@ -158,16 +158,16 @@ jobs: pnpm --filter @ghfind/web build pnpm --filter @ghfind/router typecheck pnpm --filter @ghfind/api typecheck - pnpm --filter @ghfind/api exec wrangler deploy --dry-run --env dev --outdir "$RUNNER_TEMP/ghfind-api-dist" + pnpm --filter @ghfind/api exec wrangler deploy --dry-run --env production --outdir "$RUNNER_TEMP/ghfind-api-dist" pnpm --filter @ghfind/cost-monitor typecheck pnpm --filter @ghfind/cost-monitor exec wrangler types --env production --include-runtime false --check pnpm --filter @ghfind/cost-monitor build node --test scripts/cost-monitor-watchdog.test.mjs scripts/cost-monitor-verify.test.mjs scripts/traffic-report-preview.test.mjs node scripts/cost-monitor-e2e.mjs pnpm --filter @ghfind/coord typecheck - pnpm --filter @ghfind/coord exec wrangler deploy --dry-run --env dev --outdir "$RUNNER_TEMP/ghfind-coord-dist" + pnpm --filter @ghfind/coord exec wrangler deploy --dry-run --env production --outdir "$RUNNER_TEMP/ghfind-coord-dist" pnpm --filter @ghfind/talent typecheck - pnpm --filter @ghfind/talent exec wrangler deploy --dry-run --env dev --outdir "$RUNNER_TEMP/ghfind-talent-dist" + pnpm --filter @ghfind/talent exec wrangler deploy --dry-run --env production --outdir "$RUNNER_TEMP/ghfind-talent-dist" - name: Record actual successful verify checkout run: node scripts/feed-ci-evidence.mjs record-job verify "$RUNNER_TEMP/verify.json" diff --git a/docs/deployment.zh.md b/docs/deployment.zh.md index daac028f..410a1587 100644 --- a/docs/deployment.zh.md +++ b/docs/deployment.zh.md @@ -60,7 +60,8 @@ ghfind 是 GitHub 开发者与开源项目的评估平台,生产站点为 | 只能由自动流水线部署 | -| 开发 | | 手动部署,用于验证;与生产共用部分数据,需按手册预检 | + +开发环境(dev.ghfind.com)与按 PR 部署的预览环境已于 2026-11-09 下线;上线前的检查由各仓库 PR 的 CI 和 `deploy` 分支上的完整测试完成。 ## 4. 发布与部署流程