checkpoint: 架构治理四件套——统一 async / 测试真 PG / Redis 降级可选 / DPB 扶正
- A1 业务层统一 async:gencode 表内省改 run_sync 异步(不再阻塞事件循环)、 check_db 改 async_engine、dict_util 启动预热异步载入;psycopg 降为 APScheduler SQLAlchemyJobStore 专用同步孤岛(注释标注) - A2 测试真 PG 化:conftest 弃 SQLite + mock Redis,改连真实 PG16(dpb_test)+ Redis(number_gen advisory lock 路径真被测);新增 docker/test-compose.yaml 测试依赖栈(postgres:16:5433 + redis:7:6380);run_ci 前置探测 + 容器兜底, pytest -m pg 10 套正式 tc 全过(真实 PG16 + Redis) - B1 Redis 启动不强依赖:redis_connect 失败降级启动,缓存类回源 DB、存储类 (会话/AI 配置/调度)经 require_redis 守卫返回 503;真机 3 阶段降级测试 PASS=11 FAIL=0(独立 Redis 6390 + 后端 8091,不动共享 dev 服务) - C 扶正 DPB:后端横幅/日志(dpb.log)/README/pyproject/ai_factory agent 名、 前端 package.json/署名注释/链接文案/deploy.sh/docker 注释全部去 fastapiadmin; grep backend/app + frontend/web/src 零残留 - 验证:全量回归 pass=72 fail=0
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
/** 移动端断点(小于此值视为 H5/移动端) */
|
||||
export const MOBILE_BREAKPOINT = 768;
|
||||
|
||||
const DPB_REPO = "http://123.207.9.209:3000/gonsun/dpb";
|
||||
|
||||
export const WEB_LINKS = {
|
||||
GITHUB_HOME: "https://github.com/fastapiadmin",
|
||||
GITHUB: "https://github.com/fastapiadmin/FastapiAdmin",
|
||||
GITEE: "https://gitee.com/fastapiadmin/FastapiAdmin",
|
||||
GITHUB_HOME: DPB_REPO,
|
||||
GITHUB: DPB_REPO,
|
||||
GITEE: DPB_REPO,
|
||||
BLOG: "https://blog.csdn.net/weixin_46768253?type=blog",
|
||||
DOCS: "https://service.fastapiadmin.com/guide/overview.html",
|
||||
LiteVersion: "https://gitee.com/fastapiadmin/FastCloud",
|
||||
OldVersion: "https://github.com/fastapiadmin/FastapiAdmin/tree/v2.0.0",
|
||||
COMMUNITY: "https://service.fastapiadmin.com",
|
||||
DOCS: DPB_REPO,
|
||||
COMMUNITY: DPB_REPO,
|
||||
BILIBILI: "https://space.bilibili.com/425500936?spm_id_from=333.1007.0.0",
|
||||
INTRODUCE: "https://service.fastapiadmin.com",
|
||||
INTRODUCE: DPB_REPO,
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* - 在线用户计数 WebSocket
|
||||
* - 其他业务 WebSocket
|
||||
*
|
||||
* @author fastapiadmin
|
||||
* @author DPB 团队
|
||||
*/
|
||||
|
||||
import { Auth } from "@utils/auth";
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Auth, StorageConfig } from "@utils";
|
||||
import { BANNER } from "../../../build/banner";
|
||||
|
||||
// -----------------------------
|
||||
// Console banner:ANSI 转义码生成网站 https://patorjk.com/software/taag/#p=testall&f=Fire+Font-k&t=fastapiadmin%0A&x=none&v=4&h=4&w=80&we=false
|
||||
// Console banner:ANSI 转义码生成网站 https://patorjk.com/software/taag/#p=testall&f=Fire+Font-k&t=dpb&x=none&v=4&h=4&w=80&we=false
|
||||
// -----------------------------
|
||||
|
||||
export function printConsoleBanner(): void {
|
||||
|
||||
Reference in New Issue
Block a user