Repository navigation
Conversation
The upstream suite and the container smoke keep their continue-on-error, so the run's conclusion stayed green when either of them failed; only the pull request body carried the outcome. A last step now repeats each non-success outcome, emits ::error:: for it and exits 1, so a green run means both checks passed. An already-pinned day (steps.target.outputs.skip == 'true') still ends green: the step only runs when there was something to sync. The draft pull request behaviour is unchanged. Related #3399
`skipped` for the suite or the smoke step only happens when an earlier step already failed, so it now prints one plain line instead of an annotation and does not count towards the exit code; `failure`, `cancelled` and empty still annotate and fail. The success line is now guarded on both outcomes actually being success, so two skips cannot read as "both passed". The both-skipped, all-green path is unreachable: the step only runs when `skip == false`.
|
Risk label provenance — script output at head Command: exit 0. The Consequence, stated plainly: this PR must not be merged until a human approves the T3 tier. That approval is what this pilot exists to exercise — the run is green-by-design is exactly the defect being fixed, so nobody should read a green check suite here as permission to merge. 未验收通过。 |
QA 证据(exact head)· 1/2Head 1. 绑定:我测的字节就是这个 head(不是作者的工作副本)
改动面:1 文件 +31 / −1,只有 2. 本地结果(数字来自本机,不是 CI)
另外验了一个边界: |
QA 证据(exact head)· 2/2接上条。同样只对 head 3. CI 结果(拉的是
|
| check | 结论 | job |
|---|---|---|
| FlyBot required checks | completed success | 139820255446 |
| upstream / Upstream suite · Node 22 · DSH from pin | completed success | 139817948327 |
| upstream / Upstream suite · Node 24 · DSH from pin | completed success | 139817948306 |
| upstream / Container startup smoke | completed success | 139817948265 |
| upstream / Pin and vendor tree | completed success | 139817838665 |
| Management API · Python 3.11 / 3.13 | completed success ×2 | 139817838128 / 139817838423 |
| provenance / provenance、flybot-social-plugin-tests、bot-social-source-tests | completed success ×3 | 同上 run |
| social-host / Social plugin…、Façade and ledger unit tests | completed success ×2 | 同上 run |
| runtime-image / Image recipe…、Build and smoke under the manager contract | completed success ×2 | 同上 run |
| browser / screenshots、Web and compose planner | completed success ×2 | 同上 run |
合计 16 个 check:16 success / 0 未跑完 / 0 不存在;FlyBot required checks 已存在。
中途读数留档:约 09:39Z 同一命令拉到 15 个 —— 13 success / 2 in_progress(upstream / Upstream suite · Node 22、provenance / bot-social-source-tests),汇总门 absent;09:40:35Z 才 16/16。两句话不能合成「一直绿」。
这次改动本身没有被 CI 执行过,这是本证据最重要的一条:
ds-bot-upstream-track.yml(workflow id429757680)/actions/workflows/ds-bot-upstream-track.yml/runs→total_count 0:它历史上从未跑过一次(只在schedule/workflow_dispatch上触发)。- 该 head 上
/actions/runs?head_sha=59a1eb15…→ 只有 1 个 workflow:FlyBot CI(tests.yml,pull_request)。新增的末步不在任何人执行过的清单里。 - 上面
upstream /那几个绿勾来自ds-bot-upstream.yml(由tests.yml:57复用调用),不是 track 工作流。而且它跑的不是同一套命令:ds-bot-upstream.yml:84是NODE_OPTIONS="…--import=…/upstream-test-clock.mjs" npm test -- --test-concurrency=1,track.yml:92是裸npm test 2>&1 | tee;ds-bot-upstream.yml:79还多跑一条node --test runtime/flybot-image/test/native-open-parts.test.mjs,track 里没有对应步骤;smoke 侧:111/:113用-t …:test,track.yml:107/108用:track且把输出 tee 到文件。所以「现场依赖的 npm ci / harness / build-client / lint / docker smoke 在这个 head 上能跑通」成立,「track 的 suite 步骤已验证」不成立。
4. 没做到 / 没覆盖到的
- 新增末步从未在真实 Actions 里执行过;我只能证明脚本在
SUITE/SMOKE注入下行为正确,不能证明steps.<id>.outcome在 Actions 里的真实取值、always()在 job 被取消时的行为、以及::error::注解在运行页上的渲染。 - 我没有跑
npm ci/docker build/ 上游全量 suite(需要网络与 docker,且本 PR 未改 vendor);node scripts/ds-bot-upstream.mjs check我也没重跑(diff 里 vendor 0 文件,与本切片无关)。 - 「
skip == 'true'(已 pin / 分支已存在)」这条路径上末步根本不跑,run 可以是绿的 —— 这是设计,但意味着绿不等于两项检查跑过;该路径我按 YAML 读到,未实跑。 skipped/skipped的 exit 0 依赖「前一步已经红」这个前提;若将来有人把 Sync 的失败也涂成绿,这一步会静默放行。本次 dry run 只证行为,不证这个前提。- PR 标签
risk:T3是脚本打的(agent-pr,risk:T3,PRmergeable: true/mergeable_state: clean),但判级过程不在我这次核对的范围内;T3 人工批准仍未完成。 - 我只核了 head 与 main 的差,没有评审「三档语义是否就是想要的口径」(例如
skipped该不该单独成红)——那是评审判断。
5. 本证据不构成验收通过
这是我核到的「这个 head 上发生了什么」,不是「这个 PR 可以合并」:没有做产品验收,没有做 T3 人工批准,没有声明与 0.3.0 parity。16 个绿勾没有一个执行过本次改动的那一步,别把绿色当成它被验过了。是否合并、是否验收由 Lead 判。合并后若 rebase 或补提交,本证据作废。
Related #3399
Lead 评审记录Head 1. 切片边界(一个 PR 一个可评审切片)改一个文件一件事:
2. 硬规则逐条
3. 我确认的设计裁决
4. 结论评审通过,可合并 —— 但 T3 人工批准未完成,本 PR 不得由我合并。 这是第 4 阶段的试点要验的那个闸口:脚本判 T3、人批、才合。 合并后必须接着做的一件事(写在这里免得被绿勾盖掉):新步骤的第一次真检验是合并后 track 工作流的第一次 本评审不构成验收通过,不声称与 0.3.0 parity。 Related #3399 |
Related #3399
ds-bot-upstream-track.yml的 suite 与 smoke 两步带continue-on-error: true,所以整次 run 的结论永远是绿的:套件或容器启动挂了,只有点进它开出来的 PR 正文才知道。这个 PR 把失败搬到 run 结论上,同时不动原有行为。改了什么(单文件
1 file changed, 34 insertions(+), 1 deletion(-)vs main34a80ca5a1)Fail the run when either check did not pass,if: always() && steps.target.outputs.skip == 'false',按steps.suite.outcome/steps.smoke.outcome分三档:success→ 什么都不做skipped→ 打一行普通说明(skipped只在前序步骤已失败时出现,此时 run 已经红了),不加注解、不计入失败failure/cancelled/ 空值 →::error::点名是哪一项、附 run 链接,并让本步非 0 退出success才打印「both passed」(守卫不用failed == 0,否则两项都skipped时会误报通过):80/:98的continue-on-error与:140的draft=(--draft)一个字节没动;tests.yml、runtime/**零改动为什么不动 draft 行为
套件挂了的时候,分支、PR 和日志本身就是诊断材料;去掉
continue-on-error会让 PR 步骤根本不跑,反而丢掉这些。所以保留:PR 照开、照标 draft,让「失败了」这件事同时出现在 check 上。验证到哪一步(本地绿,不是 CI 绿)
YAML.parse→ steps = 8,末步名与if如上;6 个run:块逐个bash -n全 OKsuccess/success→ both passed, exit 0;failure/success、success/failure、cancelled/success、skipped/failure、空值/cancelled→ 对应::error::, exit 1;skipped/skipped→ 两行说明、无注解、exit 0node scripts/ds-bot-upstream.mjs check→ ok(12 paths)npm ci,本机触发不了。合并后第一次 daily run(或手动 dispatch)才是它的第一次真检验。风险
按
.github/agent/risk-rules.json(#3394)判 T3(path .github/workflows/ds-bot-upstream-track.yml),需人工批准后才谈合并。未验收通过。