Files
Nexus/docs/release/20260708/Nexus-release-publisher-tests-20260708.md
T
r 9b583ccc91
Nexus CI/CD / test (push) Waiting to run
Nexus CI/CD / e2e (push) Blocked by required conditions
Nexus CI/CD / deploy (push) Blocked by required conditions
Nexus Pre-commit Checks / quick-check (push) Waiting to run
docs(release): 主与 release 分支合并功能清单 + 导入 release 文档目录
便于 Gitea 上 main ↔ release/20260708-axs 合并评审与冲突对照。
2026-07-09 01:14:32 +08:00

56 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Nexus 发布辅助脚本测试覆盖记录(2026-07-08)
## 本轮目的
继续降低线上发布风险:为 `scripts/publish_release_bundle.py` 增加离线单元测试,并修复 diff manifest 对测试临时文件的误收录。
## 新增测试
文件:
```text
work\nexus_code_context\snapshots\nexus-source-20260707-112042\tests\test_publish_release_bundle.py
```
覆盖 5 个场景:
1. 默认模式:上传 + preflight,不执行 apply
2. 显式 `--apply`preflight 后才执行 `apply-release-bundle.sh`
3. `--no-upload --dry-run`:只生成远端 SSH 命令,不触发 scp;
4. SHA256 mismatch:在任何远端命令前失败;
5. 远端路径:始终使用 POSIX `/tmp/...`,避免 Windows `\tmp\...`
## Gate 更新
`run_local_release_gate.py --with-pytest` 现在会执行:
- 宝塔专项测试:60 个;
- 发布辅助脚本测试:5 个。
合计:65 个 Python 测试。
## Manifest 修复
`scripts/generate_release_diff.py` 新增排除 `tmp` 目录,避免测试临时 tarball 进入 diff manifest。
已确认:
- release bundle 不包含 `tmp/pytest-publish-release`
- diff manifest 不包含 `tmp/pytest-publish-release`
- package scan 通过;
- validate-only 通过。
## 最新发布包
```text
C:\Users\uzuma\Documents\Codex\2026-07-06\yuu\outputs\nexus-release-20260708.tar.gz
```
SHA256
```text
46299832fb78e8cc196f85cf1928f34eea4deee82dbc83b67883394f0359036b
```
entries`2409`