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: Wait for kernel readiness before end-to-end tests
Daniel1e19af17c450
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex 92ed9f20fb..1b3ff955b9 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -289,8 +289,13 @@ jobs:local pid="$1"local port="$2"local log_path="$3"+ local boot_progress_path="${RUNNER_TEMP}/siyuan-e2e-${port}-boot-progress.json"for attempt in {1..60}; do- if curl --fail --silent --request POST "http://127.0.0.1:${port}/api/system/getWorkspaceInfo" > /dev/null; then+ if curl --fail --silent --output "${boot_progress_path}" --request POST \+ "http://127.0.0.1:${port}/api/system/bootProgress" && \+ node -e 'try { const data = JSON.parse(require("node:fs").readFileSync(process.argv[1], "utf8")); process.exit(data.data?.progress >= 100 ? 0 : 1); } catch { process.exit(1); }' \+ "${boot_progress_path}"; then+ rm -f "${boot_progress_path}"returnfiif ! kill -0 "${pid}" 2>/dev/null; then@@ -300,6 +305,9 @@ jobs:sleep 1donecat "${log_path}"+ if [ -f "${boot_progress_path}" ]; then+ cat "${boot_progress_path}"+ fireturn 1}for shard_config in ${SIYUAN_E2E_SHARDS}; do