test(r39): 真实HTTP发布单场景闭环 + CI 补取 before 重试修复 #14
Reference in New Issue
Block a user
Delete Branch "test/publish-http-single-scenario"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
已实现
12b3769:r39 正式发布单场景(真实 HTTP 发布成功闭环 + 同请求幂等)测试夹具与用例,本机以真实HTTP/队列/工作器跑通,证据根
r38-publish-http-20261102T090221(61 项断言、失败 0、168 个 raw 文件)。d2ff089:.gitea/scripts/ci_checkout.sh补取事件before失败时重试一次,并把最后一次错误打进日志。只改这一处;范围选择、判红口径、fail-closed 语义未动。
为什么改 CI 脚本(缺陷证据)
浅克隆里
fetch --depth取未公开对象(改写推送后的旧提交)时,git 中途重写.git/shallow后中止:fatal: shallow file has changed since we read it。后果是before不在克隆里 →commits检查算不出范围 → 流水线红,红的原因与代码质量无关。
--post-checkout复现该 fatal;改后输出✅ 已补取事件 before eaf389e506f5,ci_gate算出事件 Git 范围 eaf389e..12b3769|1 条提交并通过。真跑过的测试
d2ff089b9554708dff7c473d3f25246920fadac0,build / build (push)success,16 项全部 success(identity/commits/deps-install/format/static-go/static-web/build-go/build-web/tests-go/
tests-web/contracts/takeover-log-contract/version/security-secrets/security-deps/manifests-locked),
tests-go 执行 65 包、用例 1355 通过 / 0 失败 / 402 跳过(402 全为已声明的可选集成,必需 0)。
16 项、档案 ci、SHA d2ff089b9554、总体 success(与报告自称一致);静态预览已发布,两个地址实测 200。make verify:16 项通过(identity 本地 skipped),退出码 0。尚未验证
before就在克隆里,新 CI 没有走到修复后的重试分支;该分支目前只有容器夹具级证据。--unshallow在浅克隆里同样会失败(开发版本号退回dev+g<短SHA>,版本契约允许,绿 run 303/304/318 均如此)。边界
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.