Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
d2fdeb8
perf(core): F2 cleanup PR A — R9/W11/W12/R10 (post-merge follow-ups) …
doudouOUC May 23, 2026
6b281d1
refactor(acp-bridge): F1 test split — lift bridge.test.ts (6861 LOC) …
doudouOUC May 23, 2026
67216f0
fix(core): F2 cleanup PR B — self-heal observability (W133-a + W134) …
doudouOUC May 23, 2026
e5f786a
feat(sdk/daemon-ui): unified completeness follow-up to #4328 (#4353)
chiga0 May 24, 2026
a3c8986
docs(serve): v0.16-alpha known limits + SDK QWEN_SERVER_TOKEN env fal…
doudouOUC May 24, 2026
73954b9
docs(deploy): local launch templates for v0.16-alpha (PR 30a) (#4483)
doudouOUC May 25, 2026
3ba614b
feat(daemon+sdk): cross-client real-time sync completeness (#4484)
chiga0 May 25, 2026
36c497b
feat(serve): add POST /session/:id/recap (#4504)
doudouOUC May 26, 2026
cd4335a
feat(daemon): add voterClientId to permission_resolved (A4) (#4539)
chiga0 May 26, 2026
39826f0
feat(serve): --allow-origin <pattern> CORS allowlist (T2.4 #4514) (#4…
doudouOUC May 26, 2026
f39dc98
feat(daemon): in-session model switch reaches the bus (A1) (#4546)
chiga0 May 26, 2026
28a8778
feat(serve): prompt absolute deadline + SSE writer idle timeout (#451…
doudouOUC May 26, 2026
ea8bdee
Feat/daemon react cli (#4380)
ytahdn May 27, 2026
1ca0572
chore: remove stale files superseded by main refactors
doudouOUC May 27, 2026
e45d9b4
feat(serve): add daemon file logger (#4548) (#4559)
doudouOUC May 27, 2026
014e198
feat(daemon): ACP Streamable HTTP transport at /acp [RFD #721] (#4472)
chiga0 May 27, 2026
e3d5307
refactor(daemon): drop dead try/catch around model_switched publish (…
chiga0 May 27, 2026
8a2cdb3
feat(daemon): server-pushed followup_suggestion event for the webui (…
doudouOUC May 27, 2026
83765c9
fix(daemon): cross-client sync follow-up cleanup (epoch-reset resync,…
chiga0 May 28, 2026
50a0c26
feat(daemon): server-side shell command execution for ! (bang) prefix…
doudouOUC May 28, 2026
4701e6b
feat(daemon): add session tasks snapshot endpoint (#4578)
doudouOUC May 28, 2026
6e381d3
feat(daemon): non-blocking POST /prompt — return 202 with promptId (#…
chiga0 May 28, 2026
1f34c18
feat(web-shell,webui,sdk): context-usage API + daemon-react-sdk refac…
ytahdn May 28, 2026
d1b0d29
feat(sdk): add serve-bridge MCP server & rename mcp → daemon-mcp (#4555)
jifeng May 28, 2026
99017f6
feat(telemetry): trace daemon prompt lifecycle (#4556)
doudouOUC May 29, 2026
117c9b2
feat(daemon): add request-level logging for serve routes (#4606)
doudouOUC May 29, 2026
efc86e0
feat(web-shell): add /delete command with batch delete support (#4603)
ytahdn May 30, 2026
a9e982b
feat(serve): runtime MCP server add/remove (T2.8 #4514) (#4552)
doudouOUC May 30, 2026
2e99210
feat(daemon): add POST /session/:id/btw endpoint for side questions (…
doudouOUC May 30, 2026
3dd1362
feat(telemetry): add client_id attribute and permission route spans t…
doudouOUC May 30, 2026
0a1f91e
feat(telemetry): add tool spans and session.id to daemon/ACP path (#4…
doudouOUC May 30, 2026
8e3e983
feat(daemon): clamp oversized inline media on the prompt path (#4646)
doudouOUC May 31, 2026
c18385e
feat(web-shell): UI improvements, subagent rendering, and scroll-foll…
ytahdn Jun 1, 2026
ff7dfdd
fix(infra): enforce SDK/server MCP-restart timeout coupling (#4330) (…
doudouOUC Jun 1, 2026
4b3d384
feat(telemetry): per-prompt traceId for bounded, renderable traces (#…
doudouOUC Jun 1, 2026
7910216
fix(daemon): btw cross-session leak + timeout + input cap + permissio…
doudouOUC Jun 1, 2026
ab400eb
feat(telemetry): expand daemon telemetry route coverage (#4682)
doudouOUC Jun 2, 2026
47e217f
fix(daemon): auto-recover transcript on ring_evicted resync (#4702)
doudouOUC Jun 2, 2026
5271499
fix(core): explicitly set stream: false in non-streaming requests (#4…
doudouOUC Jun 2, 2026
f55be70
fix(daemon): compacted session replay for long-session recovery (#4694)
doudouOUC Jun 3, 2026
03b3968
feat(web-shell): complete inline terminal command UI (#4710)
ytahdn Jun 3, 2026
4b9a7b3
chore: resolve merge conflicts between daemon_mode_b_main and main
doudouOUC Jun 3, 2026
89122ca
feat(telemetry): enrich llm_request span with response metadata and e…
doudouOUC Jun 3, 2026
2e7483d
fix: add missing TelemetryRuntimeConfig methods and remove obsolete t…
doudouOUC Jun 3, 2026
42a01bc
fix: add missing isForkSubagentEnabled from main merge (#4731)
doudouOUC Jun 3, 2026
79b94ce
fix(daemon): isolate parallel subAgent text streams in transcript red…
doudouOUC Jun 3, 2026
c97d1b9
feat(web-shell): polish embedded terminal interactions (#4759)
ytahdn Jun 4, 2026
1d46dba
fix(web-shell): 修复 ring-eviction 重连逻辑 (#4752)
ytahdn Jun 4, 2026
9b16bdc
fix(daemon): preserve parentToolCallId in compaction engine for paral…
doudouOUC Jun 4, 2026
92b97b8
feat(daemon): optimize ACP child lifecycle — skip relaunch, preheat, …
doudouOUC Jun 5, 2026
d9d6867
chore: remove redundant and dead comments across codebase (#4776)
qqqys Jun 5, 2026
1f7c18f
refactor(daemon): simplify code and strip PR/commit references from c…
doudouOUC Jun 5, 2026
5164547
feat(telemetry): add daemon OTel metrics and structured log records (…
doudouOUC Jun 5, 2026
97e2a0a
feat(web-shell): organize slash command completion (#4792)
ytahdn Jun 5, 2026
95f6ff3
refactor(serve): extract DaemonWorkspaceService from AcpSessionBridge…
doudouOUC Jun 6, 2026
fd84dfc
feat(web-shell): add daemon dev launcher (#4799)
ytahdn Jun 6, 2026
15794aa
feat(cli): enable /remember, /forget, /dream in ACP mode (#4819)
doudouOUC Jun 6, 2026
885f7a0
feat(serve): add HTTP rewind endpoints for daemon/web-shell (issue #4…
doudouOUC Jun 7, 2026
8749ecf
feat(cli): enable /directory command in ACP mode (#4826)
doudouOUC Jun 7, 2026
3b310db
feat(serve): add hooks diagnostic HTTP/ACP surface (issue #4514 T3.9)…
doudouOUC Jun 7, 2026
4d2a4b4
feat(serve): add extensions diagnostic HTTP/ACP surface (issue #4514 …
doudouOUC Jun 8, 2026
b107586
feat(serve): add /settings slash command for web-shell (#4816)
doudouOUC Jun 8, 2026
d9025d0
fix(daemon): enable auto-title generation for ACP (daemon) sessions (…
chiga0 Jun 8, 2026
18e848f
feat(webui): expose focused daemon hooks (#4834)
ytahdn Jun 8, 2026
82879b3
feat(serve): add POST /session/:id/branch for session forking (#4812)
doudouOUC Jun 8, 2026
ba0e4fd
feat(daemon): add POST /session/:id/language for runtime language swi…
chiga0 Jun 8, 2026
a666f90
feat(daemon): keep model & approval-mode state consistent across clie…
chiga0 Jun 8, 2026
613e818
feat(serve): add per-tier HTTP rate limiting for daemon (issue #4514 …
doudouOUC Jun 8, 2026
a680b4d
feat(test): add daemon connection stress test + refactor perf harness…
doudouOUC Jun 8, 2026
0259c1a
fix(daemon): stamp serverTimestamp at EventBus and fix streaming stat…
ytahdn Jun 9, 2026
5624e3e
feat(web-shell): make bottom-left mode indicator mouse-selectable (#4…
wenshao Jun 9, 2026
e237972
feat(web-shell): improve UX with double-ESC clear, thinking collapse,…
ytahdn Jun 9, 2026
b4dd701
docs(config): clean permission policy schema copy (#4900)
qqqys Jun 10, 2026
f73175e
feat(web-shell): make bottom-right model indicator mouse-selectable (…
wenshao Jun 10, 2026
44b936b
merge: resolve conflicts with origin/main
doudouOUC Jun 10, 2026
de9d19c
feat(web-shell): render /settings as inline panel matching native CLI…
wenshao Jun 10, 2026
4fd5fc0
feat(daemon): add POST /workspace/reload-env for hot-reloading env va…
doudouOUC Jun 10, 2026
f9f976d
feat(daemon): session idle reaper for automatic cleanup (#4833)
chiga0 Jun 10, 2026
89921cc
feat(web-shell): make context usage mouse-reachable and survive reloa…
wenshao Jun 10, 2026
71e91e5
feat(web-shell): make /settings mouse-reachable via a status-bar gear…
wenshao Jun 10, 2026
5f55d58
fix(web-shell): merge adjacent tool calls into one tool_group like na…
wenshao Jun 11, 2026
a517072
feat(web-shell): collapse thinking output to a 5-line window (#4977)
wenshao Jun 11, 2026
7a2814a
feat(serve): ACP/REST parity — 29 new _qwen/* methods + production ha…
chiga0 Jun 11, 2026
0f86ff1
fix(web-shell,webui): SSE reconnection stability, error routing, and …
ytahdn Jun 11, 2026
70f07bf
fix(serve): isolate per-session stats in daemon mode (#4954)
doudouOUC Jun 11, 2026
22327b9
feat(web-shell): add task auth and goal workflows (#4856)
ytahdn Jun 11, 2026
bc93915
fix(daemon): bind QWEN_CODE_SESSION_ID to the current session via Asy…
yiliang114 Jun 11, 2026
38f5121
fix(daemon): language switch writes to wrong output-language.md path …
chiga0 Jun 11, 2026
74fe668
chore: merge main into daemon_mode_b_main
doudouOUC Jun 11, 2026
295a279
chore: merge latest daemon_mode_b_main
doudouOUC Jun 11, 2026
d15e8a9
feat(daemon): Support image upload and echo in WebShell (#4922)
yuanyuanAli Jun 11, 2026
fac4d31
feat(daemon): add POST /workspace/reload for unified settings hot-rel…
doudouOUC Jun 11, 2026
4f5290c
feat(serve): add cursor-based pagination for session list (#4902)
chiga0 Jun 11, 2026
5a28dcc
feat(serve): ACP WebSocket transport (RFD Streamable HTTP phase 2) (#…
chiga0 Jun 11, 2026
a1f40ba
feat(web-shell): add expand toggle to shell tool output (#4984)
wenshao Jun 11, 2026
26619e0
fix(ci): Raise daemon SDK browser bundle budget
doudouOUC Jun 11, 2026
912d91e
fix(ci): Build web shell during root build
doudouOUC Jun 11, 2026
7f2f6d3
fix(test): Update MCP client mocks for instructions
doudouOUC Jun 11, 2026
5805440
fix(test): Align CLI test expectations with daemon changes
doudouOUC Jun 11, 2026
62f846a
fix(test): Stabilize daemon serve tests in CI
doudouOUC Jun 11, 2026
e2fae27
fix(cli): Sanitize daemon shell command logs
doudouOUC Jun 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
93 changes: 50 additions & 43 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,73 @@
<!--
Maintainers prioritize PRs with a clear reviewer test plan — without it, review may be delayed.
Comment thread
doudouOUC marked this conversation as resolved.
Resolved
Help reviewers verify this PR quickly.

Don't hard-wrap paragraphs: GitHub renders single newlines as <br>, so wrapped text shows as a narrow column. Write each paragraph or list item as one long line.
Maintainers prioritize PRs that include clear proof of work.
If a PR does not include enough validation detail to reproduce and verify the change efficiently, review may be delayed.
-->

## What this PR does
## Summary

<!-- What this PR does. Describe the change in prose, not by file or function names. -->
- What changed:
- Why it changed:
- Reviewer focus:

## Why it's needed

<!-- Why it's needed: the motivation, the problem being solved, or the user-facing benefit. -->

## Reviewer Test Plan
## Validation

<!--
How a reviewer can confirm this PR: reproduction steps, expected vs observed behavior, and evidence. CI runs on macOS, Windows, and Linux — Tested on is what you verified locally.

User-visible / TUI: Before/After with tmux-real-user-testing skill, screenshots, or a short recording.
Non–user-visible (refactor, types, docs): commands and output below; write N/A under Before/After.
-->

### How to verify

<!-- How you reproduced it and what a reviewer should confirm — steps if needed, expected vs observed behavior. Focus on outcomes; paste logs or test output when helpful. -->

### Evidence (Before & After)

<!-- User-visible / TUI changes: paste before-and-after screenshots, tmux logs, or video side by side. Non-UI changes (docs, refactor, types): N/A -->
Be concrete. Do not write only "tested locally".
Include the exact commands, prompts, outputs, logs, screenshots, or videos that prove the change was actually run and observed.

### Tested on
For user-visible changes, bug fixes, CLI / TUI behavior changes, or interaction changes, include key screenshots or a short video.
When possible, show before/after behavior.

| OS | Status |
| :--------: | :----: |
| 🍏 macOS | |
| 🪟 Windows | |
| 🐧 Linux | |

<!-- ✅ tested · ⚠️ not tested · N/A -->

### Environment (optional)
If helpful, use the `e2e-testing` skill to gather stronger end-to-end validation evidence.
-->

<!-- Local runtime: e.g. npm run dev, Docker/Podman sandbox, seatbelt. N/A if only unit tests. -->
- Commands run:
```bash
# paste commands here
```
- Prompts / inputs used:
- Expected result:
- Observed result:
- Quickest reviewer verification path:
- Evidence (output, logs, screenshots, video, JSON, before/after, etc.):

## Risk & Scope
## Scope / Risk

- Main risk or tradeoff:
- Not validated / out of scope:
- Not covered / not validated:
- Breaking changes / migration notes:

## Linked Issues
## Testing Matrix

<!--
Closes #N / Fixes #N / Resolves #N to auto-close.
Otherwise reference without a closing keyword.
Use:
- ✅ tested
- ⚠️ not tested
- N/A
If anything is ⚠️, explain why briefly below.
-->

<details>
<summary>中文说明</summary>
| | 🍏 | 🪟 | 🐧 |
| -------- | --- | --- | --- |
| npm run | ⚠️ | ⚠️ | ⚠️ |
| npx | ⚠️ | ⚠️ | ⚠️ |
| Docker | ⚠️ | ⚠️ | ⚠️ |
| Podman | ⚠️ | N/A | N/A |
| Seatbelt | ⚠️ | N/A | N/A |

Testing matrix notes:

-

## Linked Issues / Bugs

<!--
完整翻译上面的英文正文,逐段对应,不要省略或缩写。PR 标题保持英文。
-->
If this PR fully resolves an issue, use one of:
- Closes #<issue_number>
- Fixes #<issue_number>
- Resolves #<issue_number>

</details>
Otherwise reference related issues without a closing keyword.
-->
186 changes: 178 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,63 @@ jobs:
RELEASE_VERSION: '${{ needs.prepare.outputs.release_version }}'
run: 'npm run package:standalone:release -- --version "${RELEASE_VERSION}" --out-dir dist/standalone'

- name: 'Verify Installation Release Assets'
run: 'npm run verify:installation-release -- --dir dist/standalone'

- name: 'Package Hosted Installation Assets'
env:
RELEASE_VERSION: '${{ needs.prepare.outputs.release_version }}'
run: 'npm run package:hosted-installation -- --out-dir dist/installation --version "${RELEASE_VERSION}"'

- name: 'Install ossutil'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' }}
env:
OSSUTIL_URL: "${{ vars.OSSUTIL_URL || 'https://gosspublic.alicdn.com/ossutil/1.7.19/ossutil-v1.7.19-linux-amd64.zip' }}"
OSSUTIL_SHA256: "${{ vars.OSSUTIL_SHA256 || 'dcc512e4a893e16bbee63bc769339d8e56b21744fd83c8212a9d8baf28767343' }}"
run: |-
set -euo pipefail

tmp_dir="$(mktemp -d)"
curl -fsSL --connect-timeout 15 --max-time 300 "${OSSUTIL_URL}" -o "${tmp_dir}/ossutil.zip"
echo "${OSSUTIL_SHA256} ${tmp_dir}/ossutil.zip" | sha256sum -c -
unzip -q "${tmp_dir}/ossutil.zip" -d "${tmp_dir}"

ossutil_path="$(find "${tmp_dir}" -type f \( -name 'ossutil' -o -name 'ossutil64' \) -print -quit)"
if [[ -z "${ossutil_path}" ]]; then
echo "::error::ossutil binary not found in downloaded archive"
exit 1
fi

chmod +x "${ossutil_path}"
mkdir -p "${HOME}/.local/bin"
install -m 0755 "${ossutil_path}" "${HOME}/.local/bin/ossutil"
echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
rm -rf "${tmp_dir}"
"${HOME}/.local/bin/ossutil" >/dev/null

- name: 'Configure Aliyun OSS Credentials'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' }}
env:
ALIYUN_OSS_ACCESS_KEY_ID: '${{ secrets.ALIYUN_OSS_ACCESS_KEY_ID }}'
ALIYUN_OSS_ACCESS_KEY_SECRET: '${{ secrets.ALIYUN_OSS_ACCESS_KEY_SECRET }}'
ALIYUN_OSS_ENDPOINT: "${{ vars.ALIYUN_OSS_ENDPOINT || 'https://oss-cn-hangzhou.aliyuncs.com' }}"
run: |-
set -euo pipefail

if [[ -z "${ALIYUN_OSS_ACCESS_KEY_ID}" || -z "${ALIYUN_OSS_ACCESS_KEY_SECRET}" ]]; then
echo "::error::Missing Aliyun OSS credentials. Set ALIYUN_OSS_ACCESS_KEY_ID and ALIYUN_OSS_ACCESS_KEY_SECRET in the production-release environment secrets."
exit 1
fi

ossutil config \
-e "${ALIYUN_OSS_ENDPOINT}" \
-i "${ALIYUN_OSS_ACCESS_KEY_ID}" \
-k "${ALIYUN_OSS_ACCESS_KEY_SECRET}" \
-L EN \
-c "${RUNNER_TEMP}/.ossutilconfig"

- name: 'Publish @qwen-code/qwen-code'
working-directory: 'dist'
run: |-
Expand All @@ -400,37 +457,150 @@ jobs:
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

- name: 'Verify Standalone Archives'
run: |-
npm run verify:installation-release -- --dir dist/standalone

- name: 'Create GitHub Release and Tag'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' }}
env:
# CI_BOT_PAT required: GITHUB_TOKEN events cannot trigger downstream workflows (sync-release-to-oss.yml).
GITHUB_TOKEN: '${{ secrets.CI_BOT_PAT }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
RELEASE_BRANCH: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
RELEASE_TAG: '${{ needs.prepare.outputs.release_tag }}'
PREVIOUS_RELEASE_TAG: '${{ needs.prepare.outputs.previous_release_tag }}'
IS_NIGHTLY: '${{ needs.prepare.outputs.is_nightly }}'
IS_PREVIEW: '${{ needs.prepare.outputs.is_preview }}'
run: |-
set -euo pipefail

PRERELEASE_FLAG=""
if [[ "${IS_NIGHTLY}" == "true" || "${IS_PREVIEW}" == "true" ]]; then
PRERELEASE_FLAG="--prerelease"
fi

mapfile -t release_assets < <(node scripts/verify-installation-release.js --dir dist/standalone --list-release-asset-paths)

gh release create "${RELEASE_TAG}" \
dist/cli.js \
dist/standalone/qwen-code-* \
dist/standalone/SHA256SUMS \
"${release_assets[@]}" \
--target "${RELEASE_BRANCH}" \
--title "Release ${RELEASE_TAG}" \
--notes-start-tag "${PREVIOUS_RELEASE_TAG}" \
--generate-notes \
${PRERELEASE_FLAG}

- name: 'Sync Release Assets to Aliyun OSS'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' }}
env:
ALIYUN_OSS_BUCKET: "${{ vars.ALIYUN_OSS_BUCKET || 'qwen-code-assets' }}"
RELEASE_TAG: '${{ needs.prepare.outputs.release_tag }}'
run: |-
set -euo pipefail

mapfile -t release_assets < <(node scripts/verify-installation-release.js --dir dist/standalone --list-release-asset-paths)
node scripts/upload-aliyun-oss-assets.js \
--bucket "${ALIYUN_OSS_BUCKET}" \
--config "${RUNNER_TEMP}/.ossutilconfig" \
--prefix "releases/qwen-code/${RELEASE_TAG}" \
"${release_assets[@]}"

- name: 'Verify Aliyun OSS Release Assets'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' }}
env:
ALIYUN_OSS_PUBLIC_BASE_URL: "${{ vars.ALIYUN_OSS_PUBLIC_BASE_URL || 'https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com' }}"
RELEASE_TAG: '${{ needs.prepare.outputs.release_tag }}'
run: |-
set -euo pipefail

npm run verify:installation-release -- --base-url "${ALIYUN_OSS_PUBLIC_BASE_URL}/releases/qwen-code/${RELEASE_TAG}"

- name: 'Sync Hosted Installation Assets to Aliyun OSS'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' && needs.prepare.outputs.is_nightly == 'false' && needs.prepare.outputs.is_preview == 'false' }}
env:
ALIYUN_OSS_BUCKET: "${{ vars.ALIYUN_OSS_BUCKET || 'qwen-code-assets' }}"
RELEASE_TAG: '${{ needs.prepare.outputs.release_tag }}'
run: |-
set -euo pipefail

hosted_assets=(
dist/installation/install-qwen-standalone.sh
dist/installation/install-qwen-standalone.ps1
dist/installation/install-qwen-standalone.bat
dist/installation/uninstall-qwen-standalone.sh
dist/installation/uninstall-qwen-standalone.ps1
dist/installation/SHA256SUMS
)
node scripts/upload-aliyun-oss-assets.js \
--bucket "${ALIYUN_OSS_BUCKET}" \
--config "${RUNNER_TEMP}/.ossutilconfig" \
--prefix "installation/${RELEASE_TAG}" \
"${hosted_assets[@]}"
node scripts/upload-aliyun-oss-assets.js \
--bucket "${ALIYUN_OSS_BUCKET}" \
--config "${RUNNER_TEMP}/.ossutilconfig" \
--prefix "installation" \
"${hosted_assets[@]}"

- name: 'Verify Aliyun OSS Hosted Installation Assets'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' && needs.prepare.outputs.is_nightly == 'false' && needs.prepare.outputs.is_preview == 'false' }}
env:
ALIYUN_OSS_PUBLIC_BASE_URL: "${{ vars.ALIYUN_OSS_PUBLIC_BASE_URL || 'https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com' }}"
RELEASE_TAG: '${{ needs.prepare.outputs.release_tag }}'
run: |-
set -euo pipefail

hosted_tmp_dir="$(mktemp -d)"
trap 'rm -rf "${hosted_tmp_dir}"' EXIT
mkdir -p "${hosted_tmp_dir}/versioned" "${hosted_tmp_dir}/global"
for asset in install-qwen-standalone.sh install-qwen-standalone.ps1 install-qwen-standalone.bat uninstall-qwen-standalone.sh uninstall-qwen-standalone.ps1 SHA256SUMS; do
url="${ALIYUN_OSS_PUBLIC_BASE_URL}/installation/${RELEASE_TAG}/${asset}"
global_url="${ALIYUN_OSS_PUBLIC_BASE_URL}/installation/${asset}"
curl -fsSL --connect-timeout 15 --max-time 300 "${url}" -o "${hosted_tmp_dir}/versioned/${asset}"
curl -fsSL --connect-timeout 15 --max-time 300 "${global_url}" -o "${hosted_tmp_dir}/global/${asset}"
done
cmp -s "dist/installation/SHA256SUMS" "${hosted_tmp_dir}/versioned/SHA256SUMS" || {
echo "::error::Hosted installation SHA256SUMS does not match local dist/installation/SHA256SUMS"
diff -u "dist/installation/SHA256SUMS" "${hosted_tmp_dir}/versioned/SHA256SUMS" || true
exit 1
}
cmp -s "dist/installation/SHA256SUMS" "${hosted_tmp_dir}/global/SHA256SUMS" || {
echo "::error::Global hosted installation SHA256SUMS does not match local dist/installation/SHA256SUMS"
diff -u "dist/installation/SHA256SUMS" "${hosted_tmp_dir}/global/SHA256SUMS" || true
exit 1
}
(cd "${hosted_tmp_dir}/versioned" && sha256sum -c SHA256SUMS)
(cd "${hosted_tmp_dir}/global" && sha256sum -c SHA256SUMS)

- name: 'Publish Aliyun OSS Latest VERSION'
# Run last so the `latest/VERSION` pointer only flips after every
# release asset and hosted installer object has been uploaded and
# verified. If any earlier step fails, the pointer keeps referring
# to the previously-good release.
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' && needs.prepare.outputs.is_nightly == 'false' && needs.prepare.outputs.is_preview == 'false' }}
env:
ALIYUN_OSS_BUCKET: "${{ vars.ALIYUN_OSS_BUCKET || 'qwen-code-assets' }}"
ALIYUN_OSS_PUBLIC_BASE_URL: "${{ vars.ALIYUN_OSS_PUBLIC_BASE_URL || 'https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com' }}"
RELEASE_TAG: '${{ needs.prepare.outputs.release_tag }}'
run: |-
set -euo pipefail

printf '%s\n' "${RELEASE_TAG}" > "${RUNNER_TEMP}/qwen-code-latest-version"
ossutil cp "${RUNNER_TEMP}/qwen-code-latest-version" "oss://${ALIYUN_OSS_BUCKET}/releases/qwen-code/latest/VERSION" -c "${RUNNER_TEMP}/.ossutilconfig" -f --acl public-read

latest_version="$(curl -fsSL --connect-timeout 15 --max-time 300 "${ALIYUN_OSS_PUBLIC_BASE_URL}/releases/qwen-code/latest/VERSION" | tr -d '[:space:]')"
if [[ "${latest_version}" != "${RELEASE_TAG}" ]]; then
echo "::error::Aliyun latest VERSION points to ${latest_version}, expected ${RELEASE_TAG}"
exit 1
fi

- name: 'Cleanup Aliyun OSS Credentials'
if: |-
${{ always() && needs.prepare.outputs.is_dry_run == 'false' }}
run: |-
rm -f "${RUNNER_TEMP}/.ossutilconfig"

- name: 'Create PR to merge release branch into main'
if: |-
${{ needs.prepare.outputs.is_dry_run == 'false' && needs.prepare.outputs.is_nightly == 'false' && needs.prepare.outputs.is_preview == 'false' }}
Expand Down
Loading
Loading