refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -4,7 +4,7 @@
|
||||
|
||||
## 技术栈与环境要求 {#_1-技术栈与环境要求}
|
||||
|
||||
WeKnora 由三个可独立开发的进程组成:
|
||||
Academy 由三个可独立开发的进程组成:
|
||||
|
||||
| 组件 | 目录 | 语言 / 运行时 | 版本要求(来源) |
|
||||
| --- | --- | --- | --- |
|
||||
@@ -116,7 +116,7 @@ Lite 模式把 SQLite(+sqlite-vec)与内存队列编译进单个二进制,
|
||||
|
||||
```bash
|
||||
make build-lite # 先构建前端到 web/,再 CGO 构建 Go(tags: sqlite_fts5);SKIP_FRONTEND=1 跳过前端
|
||||
make run-lite # 依赖 .env.lite,构建并启动 WeKnora-lite
|
||||
make run-lite # 依赖 .env.lite,构建并启动 Academy-lite
|
||||
make package-lite # 打 tarball 发行包(scripts/package-lite.sh)
|
||||
make package-mac-app # 打 macOS .app(scripts/package-mac-app.sh)
|
||||
```
|
||||
@@ -129,8 +129,8 @@ make package-mac-app # 打 macOS .app(scripts/package-mac-app.sh)
|
||||
|
||||
| 目标 | 作用 |
|
||||
| --- | --- |
|
||||
| `build` | `go build -o WeKnora ./cmd/server` |
|
||||
| `run` | 先 `build` 再运行 `./WeKnora` |
|
||||
| `build` | `go build -o Academy ./cmd/server` |
|
||||
| `run` | 先 `build` 再运行 `./Academy` |
|
||||
| `test` | `go test -v ./...` |
|
||||
| `clean` | `go clean` 并删除二进制 |
|
||||
| `build-prod` | 生产构建:CGO_ENABLED=1,`-ldflags "-w -s"` 注入 Version/CommitID/BuildTime/GoVersion(`internal/handler` 包变量),并设置 protobuf `conflictPolicy=warn`(规避 qdrant/milvus proto 冲突) |
|
||||
@@ -155,7 +155,7 @@ make package-mac-app # 打 macOS .app(scripts/package-mac-app.sh)
|
||||
| `build-images` / `build-images-app` / `build-images-docreader` / `build-images-frontend` / `clean-images` | `scripts/build_images.sh` 从源码构建/清理镜像 |
|
||||
| `check-env` / `list-containers` / `pull-images` | `start_all.sh --check / --list / --pull` |
|
||||
| `show-platform` | 显示 `uname -m` 与 Docker 构建平台(amd64/arm64 自动探测) |
|
||||
| `clean-db` | 删除 `weknora_postgres-data` / `weknora_minio_data` / `weknora_redis_data` 三个 Docker volume(**清空数据**) |
|
||||
| `clean-db` | 删除 `academy_postgres-data` / `academy_minio_data` / `academy_redis_data` 三个 Docker volume(**清空数据**) |
|
||||
|
||||
### 数据库迁移(详见《数据库与迁移》一章) {#_3-3-数据库迁移-详见《数据库与迁移》一章}
|
||||
|
||||
@@ -225,7 +225,7 @@ make lint # go vet
|
||||
跨切面的契约/集成测试集中在 `cli/acceptance/`(见 `cli/acceptance/doc.go`):
|
||||
|
||||
- `cli/acceptance/contract/` — envelope JSON 输出形状 golden 测试 + error.code 注册表一致性;
|
||||
- `cli/acceptance/e2e/` — 对真实 WeKnora server 的黑盒测试(testscript 风格),需要环境变量指向测试服务器;CI 侧由 `.github/workflows/cli-e2e.yml` 承载,**按需触发**(`workflow_dispatch` 手动,或给 PR 打 `acceptance-e2e` 标签),使用 secrets `WEKNORA_E2E_HOST` / `WEKNORA_E2E_TOKEN`。
|
||||
- `cli/acceptance/e2e/` — 对真实 Academy server 的黑盒测试(testscript 风格),需要环境变量指向测试服务器;CI 侧由 `.github/workflows/cli-e2e.yml` 承载,**按需触发**(`workflow_dispatch` 手动,或给 PR 打 `acceptance-e2e` 标签),使用 secrets `ACADEMY_E2E_HOST` / `ACADEMY_E2E_TOKEN`。
|
||||
|
||||
### tests/ 目录与前端测试 {#_4-4-tests-目录与前端测试}
|
||||
|
||||
@@ -283,7 +283,7 @@ make fmt && make lint && make test
|
||||
| `workflows/docker-image.yml` | — | Docker 镜像构建发布 |
|
||||
| `workflows/release-lite.yml` | — | Lite 版本发布 |
|
||||
| `workflows/anydoc.yml` | `third_party/anydoc-go/`、`internal/infrastructure/docparser/` | 进程内 Office 解析引擎构建与测试 |
|
||||
| `workflows/dsh-plugin.yml` | `packages/dsh-weknora/` | DeepSeek Harness 插件测试与发布 |
|
||||
| `workflows/dsh-plugin.yml` | `packages/dsh-academy/` | DeepSeek Harness 插件测试与发布 |
|
||||
| `pull_request_template.md` | — | PR 模板 |
|
||||
| `ISSUE_TEMPLATE/` | — | Issue 模板 |
|
||||
| `dependabot.yml` | — | 依赖升级机器人 |
|
||||
@@ -364,10 +364,10 @@ chunker 提供 `SplitWithDiagnostics()`(`internal/infrastructure/chunker/strat
|
||||
|
||||
`scripts/cloud-image/` 用于在专用、可丢弃的 Linux 制作机上准备分发镜像。常规部署使用[安装部署](../01-getting-started/02-installation.md),不需要运行这些脚本。
|
||||
|
||||
- `prepare.sh` 下载 `WEKNORA_REF` 对应的运行文件、拉取镜像并安装 systemd 服务。该引用还用于设置镜像版本,必须确认对应镜像标签存在。随仓库提供的 systemd 单元固定使用 `/opt/WeKnora`,只修改脚本的目录变量不足以迁移安装位置。
|
||||
- `cleanup.sh` 清除制镜像机的数据、密钥、SSH 授权、日志与 Docker 缓存并关机;其影响不限于 WeKnora 目录,只能用于检查过的专用制作机。
|
||||
- `prepare.sh` 下载 `ACADEMY_REF` 对应的运行文件、拉取镜像并安装 systemd 服务。该引用还用于设置镜像版本,必须确认对应镜像标签存在。随仓库提供的 systemd 单元固定使用 `/opt/Academy`,只修改脚本的目录变量不足以迁移安装位置。
|
||||
- `cleanup.sh` 清除制镜像机的数据、密钥、SSH 授权、日志与 Docker 缓存并关机;其影响不限于 Academy 目录,只能用于检查过的专用制作机。
|
||||
- `firstboot.sh` 在新实例上生成密钥、写入 `.env` 并启动 Compose;完成后禁用首启服务,不会自删除脚本。
|
||||
|
||||
制镜像前需检查脚本与所选版本是否匹配。分发前必须用新实例验证启动、服务健康和密钥独立性;本说明不代表当前脚本已通过特定云平台的部署或上架验收。
|
||||
|
||||
首启排障查看 `journalctl -u weknora-firstboot`、`/var/log/weknora-firstboot.log` 与 `/opt/WeKnora` 下的 Compose 状态。`.firstboot.done` 在生成密钥之后、启动 Compose 之前写入,标记存在不代表服务健康。启动失败时保留已生成的 `.env` 和标记,修复原因后重新启动 Compose;删除标记重新生成密钥可能造成配置与已初始化数据库不一致。
|
||||
首启排障查看 `journalctl -u academy-firstboot`、`/var/log/academy-firstboot.log` 与 `/opt/Academy` 下的 Compose 状态。`.firstboot.done` 在生成密钥之后、启动 Compose 之前写入,标记存在不代表服务健康。启动失败时保留已生成的 `.env` 和标记,修复原因后重新启动 Compose;删除标记重新生成密钥可能造成配置与已初始化数据库不一致。
|
||||
Reference in new issue
Block a user