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
@@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/logger"
|
||||
"academy/internal/logger"
|
||||
"github.com/golang-migrate/migrate/v4"
|
||||
_ "github.com/golang-migrate/migrate/v4/database/postgres"
|
||||
sqlite3migrate "github.com/golang-migrate/migrate/v4/database/sqlite3"
|
||||
|
||||
@@ -91,9 +91,9 @@ func TestSQLiteFeishuResyncMigration(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPostgresFeishuResyncMigration(t *testing.T) {
|
||||
dsn := os.Getenv("WEKNORA_MIGRATION_TEST_POSTGRES_DSN")
|
||||
dsn := os.Getenv("ACADEMY_MIGRATION_TEST_POSTGRES_DSN")
|
||||
if dsn == "" {
|
||||
t.Skip("set WEKNORA_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
t.Skip("set ACADEMY_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
}
|
||||
db, err := sql.Open("postgres", dsn)
|
||||
require.NoError(t, err)
|
||||
|
||||
@@ -18,9 +18,9 @@ import (
|
||||
// before 000116, stores every kind of allowed_tools value, and checks that
|
||||
// the upgrade keeps each agent's effective tools.
|
||||
func TestPostgresMigrationsKeepAgentToolsWhenAnEmptyListMeansNone(t *testing.T) {
|
||||
dsn := os.Getenv("WEKNORA_MIGRATION_TEST_POSTGRES_DSN")
|
||||
dsn := os.Getenv("ACADEMY_MIGRATION_TEST_POSTGRES_DSN")
|
||||
if dsn == "" {
|
||||
t.Skip("set WEKNORA_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
t.Skip("set ACADEMY_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
}
|
||||
root := sqliteRepoRoot(t)
|
||||
chdirAndRestore(t, root)
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/application/repository"
|
||||
"github.com/Tencent/WeKnora/internal/types"
|
||||
"academy/internal/application/repository"
|
||||
"academy/internal/types"
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/require"
|
||||
"gorm.io/driver/postgres"
|
||||
@@ -22,9 +22,9 @@ import (
|
||||
// zone. A naive TIMESTAMP column drops that offset on write and returns a
|
||||
// value shifted by it.
|
||||
func TestPostgresMCPOAuthTimesKeepTheInstant(t *testing.T) {
|
||||
dsn := os.Getenv("WEKNORA_MIGRATION_TEST_POSTGRES_DSN")
|
||||
dsn := os.Getenv("ACADEMY_MIGRATION_TEST_POSTGRES_DSN")
|
||||
if dsn == "" {
|
||||
t.Skip("set WEKNORA_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
t.Skip("set ACADEMY_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
}
|
||||
chdirAndRestore(t, sqliteRepoRoot(t))
|
||||
require.NoError(t, RunMigrationsWithOptions(dsn, MigrationOptions{}))
|
||||
|
||||
@@ -14,20 +14,20 @@ import (
|
||||
)
|
||||
|
||||
// TestPostgresMigrationsServeAgentHistory runs the versioned migrations against
|
||||
// a real PostgreSQL. Skipped unless WEKNORA_MIGRATION_TEST_POSTGRES_DSN points
|
||||
// a real PostgreSQL. Skipped unless ACADEMY_MIGRATION_TEST_POSTGRES_DSN points
|
||||
// at a disposable database, for example:
|
||||
//
|
||||
// docker run -d --rm -e POSTGRES_PASSWORD=pg -e POSTGRES_DB=weknora -p 55432:5432 \
|
||||
// docker run -d --rm -e POSTGRES_PASSWORD=pg -e POSTGRES_DB=academy -p 55432:5432 \
|
||||
// paradedb/paradedb:v0.25.11-pg17
|
||||
// WEKNORA_MIGRATION_TEST_POSTGRES_DSN=postgres://postgres:pg@localhost:55432/weknora?sslmode=disable
|
||||
// ACADEMY_MIGRATION_TEST_POSTGRES_DSN=postgres://postgres:pg@localhost:55432/academy?sslmode=disable
|
||||
//
|
||||
// It checks what SQLite cannot: that 000106 builds its index CONCURRENTLY
|
||||
// through golang-migrate (which fails inside a transaction block), in both
|
||||
// directions, and that the agent history queries walk it without sorting.
|
||||
func TestPostgresMigrationsServeAgentHistory(t *testing.T) {
|
||||
dsn := os.Getenv("WEKNORA_MIGRATION_TEST_POSTGRES_DSN")
|
||||
dsn := os.Getenv("ACADEMY_MIGRATION_TEST_POSTGRES_DSN")
|
||||
if dsn == "" {
|
||||
t.Skip("set WEKNORA_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
t.Skip("set ACADEMY_MIGRATION_TEST_POSTGRES_DSN to run PostgreSQL migration tests")
|
||||
}
|
||||
root := sqliteRepoRoot(t)
|
||||
chdirAndRestore(t, root)
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/agent/tools"
|
||||
"academy/internal/agent/tools"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -475,7 +475,7 @@ func TestSQLiteSessionKindBackfillAndRollback(t *testing.T) {
|
||||
require.NoError(t, RunMigrationsWithOptions("sqlite3://unused", MigrationOptions{SQLiteDBPath: dbPath}))
|
||||
db := openSQLiteDB(t, dbPath)
|
||||
configs := []any{
|
||||
nil, "invalid JSON", `{"agent_id":"builtin-weknora-assistant"}`, `{}`, `null`, `[]`,
|
||||
nil, "invalid JSON", `{"agent_id":"builtin-academy-assistant"}`, `{}`, `null`, `[]`,
|
||||
`{"agent_id":"another-agent"}`, `{"agent_id":`,
|
||||
}
|
||||
for i, config := range configs {
|
||||
|
||||
Reference in new issue
Block a user