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
@@ -19,7 +19,7 @@ import (
|
||||
"time"
|
||||
|
||||
"connectrpc.com/connect"
|
||||
"github.com/Tencent/WeKnora/internal/types"
|
||||
"academy/internal/types"
|
||||
e2b "github.com/matiasinsaurralde/go-e2b"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -414,12 +414,12 @@ func TestE2BRemoteClientCreateSnapshot(t *testing.T) {
|
||||
handle, err := client.Create(ctx, RemoteCreateRequest{TemplateID: "template-a"})
|
||||
require.NoError(t, err)
|
||||
|
||||
ref, err := client.CreateSnapshot(ctx, handle.ID(), "weknora-sk-cfg1-g1")
|
||||
ref, err := client.CreateSnapshot(ctx, handle.ID(), "academy-sk-cfg1-g1")
|
||||
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, "snap-1", ref.ID)
|
||||
require.Equal(t, []string{"weknora-sk-cfg1-g1"}, ref.Names)
|
||||
require.Equal(t, "weknora-sk-cfg1-g1", mock.snapshotCreateBody["name"])
|
||||
require.Equal(t, []string{"academy-sk-cfg1-g1"}, ref.Names)
|
||||
require.Equal(t, "academy-sk-cfg1-g1", mock.snapshotCreateBody["name"])
|
||||
require.Equal(t, int32(1), mock.connectCount.Load())
|
||||
}
|
||||
|
||||
@@ -482,9 +482,9 @@ func TestE2BRemoteClientListSnapshotsPagesAllResults(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
second, err := client.Create(ctx, RemoteCreateRequest{TemplateID: "template-a"})
|
||||
require.NoError(t, err)
|
||||
firstRef, err := client.CreateSnapshot(ctx, first.ID(), "weknora-sk-cfg1-g1")
|
||||
firstRef, err := client.CreateSnapshot(ctx, first.ID(), "academy-sk-cfg1-g1")
|
||||
require.NoError(t, err)
|
||||
secondRef, err := client.CreateSnapshot(ctx, first.ID(), "weknora-sk-cfg2-g1")
|
||||
secondRef, err := client.CreateSnapshot(ctx, first.ID(), "academy-sk-cfg2-g1")
|
||||
require.NoError(t, err)
|
||||
_, err = client.CreateSnapshot(ctx, second.ID(), "other")
|
||||
require.NoError(t, err)
|
||||
@@ -519,7 +519,7 @@ func TestE2BRemoteClientListTemplatesInProgress(t *testing.T) {
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-weagentbox",
|
||||
"buildID": tc.buildID,
|
||||
"names": []string{"project/weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"buildStatus": "in_progress",
|
||||
}})
|
||||
case "/templates/template-weagentbox/builds/" + tc.buildID + "/status":
|
||||
@@ -561,8 +561,8 @@ func TestE2BRemoteClientListTemplatesReconcilesStandardTemplateBuildStatus(t *te
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-ready",
|
||||
"buildID": "build-success",
|
||||
"names": []string{"project/weknora"},
|
||||
"aliases": []string{"weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"aliases": []string{"academy"},
|
||||
"buildStatus": "waiting",
|
||||
"envdVersion": "0.4.0",
|
||||
}})
|
||||
@@ -591,7 +591,7 @@ func TestE2BRemoteClientListTemplatesReconcilesStandardTemplateBuildStatus(t *te
|
||||
require.NoError(t, err)
|
||||
require.Len(t, templates, 1)
|
||||
require.True(t, templates[0].Standard)
|
||||
require.Equal(t, "project/weknora", templates[0].Name)
|
||||
require.Equal(t, "project/academy", templates[0].Name)
|
||||
require.Equal(t, "ready", templates[0].Status)
|
||||
require.Equal(t, int32(1), statusRequests.Load())
|
||||
}
|
||||
@@ -606,7 +606,7 @@ func TestE2BRemoteClientListTemplatesIgnoresOlderSuccessfulBuild(t *testing.T) {
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-queued",
|
||||
"buildID": "build-queued",
|
||||
"names": []string{"project/weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"buildStatus": "waiting",
|
||||
}})
|
||||
case "/templates/template-queued/builds/build-queued/status":
|
||||
@@ -618,7 +618,7 @@ func TestE2BRemoteClientListTemplatesIgnoresOlderSuccessfulBuild(t *testing.T) {
|
||||
case "/templates/template-queued":
|
||||
writeJSON(w, http.StatusOK, map[string]any{
|
||||
"templateID": "template-queued",
|
||||
"names": []string{"project/weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"builds": []map[string]any{
|
||||
{"buildID": "build-queued", "status": "waiting"},
|
||||
{"buildID": "build-older", "status": "success"},
|
||||
@@ -654,7 +654,7 @@ func TestE2BRemoteClientListTemplatesKeepsPendingWithoutBuildReference(t *testin
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-unbuilt",
|
||||
"buildID": "00000000-0000-0000-0000-000000000000",
|
||||
"names": []string{"project/weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"buildStatus": "building",
|
||||
"spawnCount": 0,
|
||||
}})
|
||||
@@ -688,7 +688,7 @@ func TestE2BRemoteClientListTemplatesKeepsPendingWithoutSuccessfulBuild(t *testi
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-fresh",
|
||||
"buildID": "build-fresh",
|
||||
"names": []string{"project/weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"buildStatus": "building",
|
||||
}})
|
||||
case "/templates/template-fresh/builds/build-fresh/status":
|
||||
@@ -733,7 +733,7 @@ func TestE2BRemoteClientListTemplatesReportsUntaggedBuilds(t *testing.T) {
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-untagged",
|
||||
"buildID": "00000000-0000-0000-0000-000000000000",
|
||||
"names": []string{"project/weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"buildStatus": "waiting",
|
||||
"buildCount": 2,
|
||||
}})
|
||||
@@ -773,7 +773,7 @@ func TestE2BRemoteClientListTemplatesKeepsPendingOnFirstBuild(t *testing.T) {
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-first",
|
||||
"buildID": "00000000-0000-0000-0000-000000000000",
|
||||
"names": []string{"project/weknora"},
|
||||
"names": []string{"project/academy"},
|
||||
"buildStatus": "building",
|
||||
"buildCount": 1,
|
||||
}})
|
||||
@@ -810,7 +810,7 @@ func TestE2BRemoteClientListTemplatesIgnoresSpawnCount(t *testing.T) {
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "template-spawned",
|
||||
"buildID": "build-x",
|
||||
"names": []string{"weknora"},
|
||||
"names": []string{"academy"},
|
||||
"buildStatus": "waiting",
|
||||
"spawnCount": 4,
|
||||
}})
|
||||
@@ -888,12 +888,12 @@ func TestE2BRemoteClientListTemplatesMarksDesktopSibling(t *testing.T) {
|
||||
writeJSON(w, http.StatusOK, []map[string]any{
|
||||
{
|
||||
"templateID": "tpl-cli",
|
||||
"names": []string{"weknora"},
|
||||
"names": []string{"academy"},
|
||||
"buildStatus": "ready",
|
||||
},
|
||||
{
|
||||
"templateID": "tpl-desktop",
|
||||
"names": []string{"weknora-desktop"},
|
||||
"names": []string{"academy-desktop"},
|
||||
"buildStatus": "ready",
|
||||
},
|
||||
})
|
||||
@@ -969,7 +969,7 @@ func TestE2BEnsureDesktopTemplateBuildsDesktopImage(t *testing.T) {
|
||||
case r.Method == http.MethodGet && r.URL.Path == "/templates":
|
||||
writeJSON(w, http.StatusOK, []map[string]any{{
|
||||
"templateID": "tpl-cli",
|
||||
"names": []string{"weknora"},
|
||||
"names": []string{"academy"},
|
||||
"buildStatus": "ready",
|
||||
}})
|
||||
case r.Method == http.MethodPost && r.URL.Path == "/v3/templates":
|
||||
@@ -1126,7 +1126,7 @@ func TestE2BSnapshotCreateDropsEnvVarsAfterProviderRejectsThem(t *testing.T) {
|
||||
handle, err := client.Create(context.Background(), RemoteCreateRequest{
|
||||
TemplateID: "snap-1",
|
||||
FromSnapshot: true,
|
||||
EnvVars: map[string]string{"WEKNORA_SKILL_OUTPUT_DIR": "/workspace/output"},
|
||||
EnvVars: map[string]string{"ACADEMY_SKILL_OUTPUT_DIR": "/workspace/output"},
|
||||
Timeout: RemoteTimeoutPolicy{
|
||||
Mode: RemoteTimeoutExplicit,
|
||||
Value: time.Minute,
|
||||
@@ -1154,7 +1154,7 @@ func TestE2BAliyunSnapshotCreateOmitsEnvVarsUpFront(t *testing.T) {
|
||||
_, err := client.Create(context.Background(), RemoteCreateRequest{
|
||||
TemplateID: "snap-1",
|
||||
FromSnapshot: true,
|
||||
EnvVars: map[string]string{"WEKNORA_SKILL_OUTPUT_DIR": "/workspace/output", "HF_TOKEN": "secret"},
|
||||
EnvVars: map[string]string{"ACADEMY_SKILL_OUTPUT_DIR": "/workspace/output", "HF_TOKEN": "secret"},
|
||||
Timeout: RemoteTimeoutPolicy{
|
||||
Mode: RemoteTimeoutExplicit,
|
||||
Value: time.Minute,
|
||||
|
||||
Reference in new issue
Block a user