An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:green_heart: Stabilize end-to-end tests and asset uploads
Danielb424247db249
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex c022f18e37..a8cb2a2aed 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -330,12 +330,15 @@ jobs:shard="${shard_config%:*}"port="${shard_config#*:}"(+ # UI 测试共享同一内核及全局界面状态,必须串行运行+ # 串行执行保留 25 分钟总时限,外层步骤仍由 30 分钟超时保护SIYUAN_BASE_URL="http://127.0.0.1:${port}" \SIYUAN_E2E_SHARD="${shard}" \SIYUAN_TEST_RESULTS_DIR="test-results-${shard}" \PLAYWRIGHT_HTML_OUTPUT_DIR="playwright-report-${shard}" \pnpm exec playwright test --config=playwright.focused.config.ts \- --global-timeout=900000 --reporter=line,html --output="test-results-${shard}"+ --global-timeout=1500000 --workers=1 \+ --reporter=line,html --output="test-results-${shard}") &TEST_PID=$!TEST_PIDS+=("${TEST_PID}")diff --git a/app/src/protyle/render/av/asset.test.ts b/app/src/protyle/render/av/asset.test.tsindex 1d27966dc5..09e9e2e3ce 100644--- a/app/src/protyle/render/av/asset.test.ts+++ b/app/src/protyle/render/av/asset.test.ts@@ -101,6 +101,7 @@ describe("database resource upload consumers", () => {harness.start(kind);harness.complete("new.png");assert.deepEqual(harness.cell.value.mAsset.map(value => value.content), ["original.png", "new.png"]);+ assert.deepEqual(harness.cell.value.mAsset.map(value => value.name), ["original", "new.png"]);});it(`${kind}: appends both uploads while the row is not rendered`, () => {const harness = createHarness();diff --git a/app/src/protyle/render/av/asset.ts b/app/src/protyle/render/av/asset.tsindex a627f92a10..d7e84fe268 100644--- a/app/src/protyle/render/av/asset.ts+++ b/app/src/protyle/render/av/asset.ts@@ -531,7 +531,7 @@ const getUploadedAssetValues = (result: Omit<IAssetUploadResult, "requestId" | "const filename = formatName(success.name);values.push({type: Constants.SIYUAN_ASSETS_IMAGE.includes(type) ? "image" : "file",- name: filename.substring(0, filename.length - type.length),+ name: filename,content: success.path,});});