Skip to content

track: make suite/smoke failures visible in the run conclusion #3399

Backlog

Description

@Birfy

Related #3393

.github/workflows/ds-bot-upstream-track.yml 的 :79 与 :97 两个步骤带 continue-on-error: true(main 34a80ca5a1,该文件 sha256 97347063cb1a1c9105a4733f6940bb71ac414fefbacfce9ddd9d32b9e804380c,已按 raw 核对,与本地树一致)。

先说清判断,因为这会改变切片形状:这不是「把故障涂成绿」。Push and open the pull request 步骤读了 steps.suite.outcome / steps.smoke.outcome,任一非 success 就把 PR 建成 draft,PR 正文也逐条写出套件与 smoke 的结果。真正的缺口是整次 run 的结论永远是绿的:只看 check 的人看不出上游套件或容器 smoke 挂了,必须去读 PR body 才知道。

切片(一个可评审切片,只此一件)

只改 .github/workflows/ds-bot-upstream-track.yml:失败时照样开 draft PR(保留现有诊断价值),但让本次 run 以失败结论收尾,把「失败了」从 PR 正文搬到 check 本身。

输入

  • 文件:.github/workflows/ds-bot-upstream-track.yml(当前 143 行)
  • 现状引用::79 :97 continue-on-error: true;:111/:112 读 outcome;:136 draft=(--draft) 判定

产出

  1. continue-on-error: true 两处与 draft 行为保持不变(套件挂了仍要拿到分支、PR 与日志)
  2. 在 PR 步骤之后新增一步,条件是 steps.target.outputs.skip == 'false':当 steps.suite.outcome != 'success' || steps.smoke.outcome != 'success' 时打印 ::error:: 说明哪一项失败,并 exit 1;两项都 success 时 exit 0
  3. 不改任何 job / step 的 name;不动 tests.yml
  4. 不碰 runtime/ds-bot-upstream/**

验收标准

  • 改后 continue-on-error: true 仍为 2 处,且仍在原来的两个步骤上
  • 新增步骤存在,脚本对三分支行为正确:suite 失败 / smoke 失败 → 非 0 且带 ::error::;两者成功 → 0。用 bash -n 加本地小样本实跑这三个输入,把输出贴出来(本机无 actionlint、无 python,这两样跑了就说跑了,没跑就写「未跑」)
  • git diff --stat 只出现这一个文件
  • 结论绑定 exact head SHA;新提交即作废旧证明

涉及目录

.github/workflows/(仅此一文件)

风险

.github/** 按 .github/agent/risk-rules.json(PR #3394)判 T3,需人工批准才谈合并。这是本试点要验的闸口本身,不是意外。

纪律

  • 只用 Related #3393 / Refs #3393,禁止 Fixes / Closes / Resolves
  • 分支从 main 拉,命名 dev/<本 issue 号>-track-failure-visible
  • 认领后打 agent-working,并在注释里写明分支名
  • 不声称验收通过

Activity

  1. added
    agent-task
    agent-ready
    agent-working
    on Nov 26, 2026
  2. Birfy commented on Nov 26, 2026

    @Birfy
    CollaboratorAuthor

    Claimed for the pilot slice (stage 4 of #3393).

    • Branch: dev/3399-track-failure-visible, cut from main 34a80ca5a1acf9d7da821664002fa1e9dba2b215
    • Head: 59a1eb15aed556e283732757ff3f4271a5d9487d
    • PR: track: fail the run when the upstream suite or container smoke did not pass #3400
    • Developer: Runtime Dev; all writes go through FlyBot Lead (single writer)
    • Risk: T3 per .github/agent/risk-rules.json (path .github/workflows/ds-bot-upstream-track.yml) — a human approves before merge
    • References: Related #3399 only; no Fixes / Closes / Resolves anywhere in this slice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyagent-taskagent-working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions