Skip to content

fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar - #36339

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36002-refresh-display-panel
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36002-refresh-display-panel

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #36002

Clause-②: no
Metadata-protocol: none

维护者速读

  • 列表默认工具栏里,看板、日历这类视图如果除了刷新外没有别的显示选项,就不再出现一个点开只有底栏的空「显示」入口;宽工具栏的刷新按钮照旧。
  • 属于「列表页重做」专题:两行工具栏按「刷新去掉」落地后剩下的收尾。
  • 出错时最坏是这类视图少了「显示」入口,而它本来就没有可用的选项;改动小,可整体撤回。
  • 无。

What changes

  • ui/packages/plugin-list/src/ListView.tsx: displayOffered no longer ORs toolbarFlags.showRefresh. The default (Display) toolbar has no Refresh since the two-row toolbar landed, neither on the bar nor in the panel (viewSettingsElement is handed no refresh prop), so the key was the only reason a non-grid view with every other Display control off drew a Display entry that opened onto just the footer. The stale Refresh comment ("in the Display form it sits in the panel's footer") now says Refresh is wide-form only.
  • packages/spec/src/ui/view.zod.ts: the userActions.refresh describe says the toggle governs only the wide toolbar's Refresh (compactToolbar: false) and changes nothing in the default toolbar. Description text only: key, type and default unchanged; no retirement (card item 2, first branch, per the claim).
  • packages/spec/src/ui/view.form.ts: the form hint for userActions.refresh mirrors the new describe. Required, not chosen: src/ui/view-form-composite-children.test.ts pins every userActions hint equal to the schema description it replaces, and went red without it.
  • Regenerated, never hand-edited: content/docs/references/ui/{view,page}.mdx (check:generated --fix, which named only check:docs stale) and packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts (node scripts/check-i18n-bundles.mjs --write --filter=platform-objects; the other ten locales keep their hand-written translations, no source-hash entries exist for this leaf).
  • Pin: a new top-level block ListView.refreshOnlyDisplay-36002 in the shared ListView.harness.test.tsx (the harness rule: a ListView pin that needs no vi.mock joins that file). A kanban view with Group, Row height and Hide fields off and refresh at its default draws no toolbar-display-trigger; CONTROLS: compactToolbar: false still draws refresh-button, and the same view with Row height on draws the Display entry.
  • Changeset .changeset/36002-refresh-display-panel.md: patch for @object-ui/plugin-list, @objectstack/spec, @objectstack/platform-objects.

Read first, by risk:

  1. ui/packages/plugin-list/src/ListView.tsx, the displayOffered hunk: the one behaviour change.
  2. packages/spec/src/ui/view.zod.ts, the refresh describe: a published-schema text face (contract review on record before landing).
  3. ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx, the new block at the end.

Tests

Final head: 75244b315e1d79c1455fbd2d343e00be5fbcbf8b (declared by the resuming thread; no commit added after the handover).

  • CI at 75244b31: all 70 check-runs completed, each success or skipped (Test Core 10/10 shards, Test UI 16/16 shards, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Lint & Repo Gates, TypeScript Type Check, Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards).
Local readings (all under scripts/pm/os-verify-lock.sh)
  • Final-head union at 75244b31, after building the @objectstack/platform-objects... and @object-ui/plugin-list^... closures (VERDICT command-exit 0): pnpm --filter @objectstack/spec test Test Files 869 passed (869), Tests 27877 passed, 1 todo (27878); pnpm --filter @objectstack/platform-objects test Test Files 125 passed (125), Tests 2126 passed (2126); harness file ListView.harness.test.tsx Test Files 1 passed (1), Tests 127 passed (127). Each VERDICT command-exit 0.
  • Harness file ListView.harness.test.tsx: Test Files 1 passed (1), Tests 127 passed (127) at fa1bd43 (the fix commit).
  • pnpm --filter @object-ui/plugin-list test: Test Files 183 passed (183), Tests 1998 passed (1998) at d6ea716 (later commits touch no ui/ file).
  • pnpm --filter @object-ui/plugin-list type-check: exit 0 at d6ea716.
  • pnpm --filter @objectstack/spec typecheck: exit 0 at d6ea716.
  • pnpm --filter @objectstack/spec test at d6ea716: 1 failed (view-form-composite-children.test.ts, the hint pin), fixed by e680c59; that file then 20 passed (20).
  • pnpm --dir ui exec vitest run scripts/: 172 passed, 2 skipped (174 files) at d6ea716.
Ablation (one-shot, not kept)

Committed fix first, then node scripts/ablation-replace.mjs put || toolbarFlags.showRefresh back into displayOffered (anchor x1 -> x0, blob d73fea0c8c70 -> bdd2b94ef1ae). With -t refreshOnlyDisplay-36002: the pin went red (the default toolbar draws no Display entry when Refresh was its only option failed), both CONTROLS stayed green; 1 failed / 2 passed. Restore: blob == HEAD (d73fea0c8c70), git diff HEAD empty; re-run 3 passed. The test imports ../ListView (source), so no dist rebuild was in the path.

Acceptance notes

  • Card acceptance 1 ("A view whose only display option was Refresh no longer opens an empty Display panel in the default toolbar"): pinned by the new block, ablation red without the fix. Only non-grid views can reach it: the grid always offers Display (currentView === 'grid', its columns).
  • Card acceptance 2 ("The key's describe matches what it does"): describe, form hint and generated references now say wide-toolbar only.
  • Skills/docs measured for text claiming userActions.refresh governs the default toolbar: zero hits in skills/**, content/docs/** (outside references/ and releases/) and ui/**/*.md; control term userActions.editInline hits content/docs/frontend/plugins/plugin-view.mdx. No stale text to name.
  • Noted, not filed: the ten translated locales of the userActions.refresh form hint still carry only the first sentence (still true, now less precise than English). Translation is a translator's edit, outside this card.
  • Noted, not filed: the spec describe of compactToolbar ("Collapse Group/Color/Density/Hide-fields into a single View settings popover") does not say that collapsing is the renderer default (schema.compactToolbar !== false) nor that Refresh is dropped; observation only.
  • File surface beyond the first claim: packages/spec/src/ui/view.form.ts and the regenerated en.metadata-forms.generated.ts, both forced by the hint pin above; the seat amends the claim.
  • Overlap: node scripts/pm/overlap-check.mjs re-run at 75244b31: VERDICT clean against origin/main b3bcfef and feat(console): Change Owner on the record page, the list selection bar and the edit form (#35403) #36343 (shares ListView.tsx), merges cleanly. Earlier run: clean against fix(list): "Add group field" asks which field, and offers only fields that can group (#36204) #36223 (since merged).

Verification

Two-minute check: cd ui && pnpm exec vitest run packages/plugin-list/src/__tests__/ListView.harness.test.tsx -t refreshOnlyDisplay-36002 shows 3 passed. In the Console, a kanban list view with userActions: { group: false, rowHeight: false, hideFields: false } shows no Display button beside the view name; set compactToolbar: false and the Refresh button appears on the bar.

Gates
  • node scripts/pm/dispatch-gates.mjs --commands on the final diff: 119 commands; all run locally; --ran reconciliation "119 derived famil(ies) accounted for — 119 run, 0 NOT-MEASURED".
  • Exit 0: 115. Exit 3 (PREREQUISITE NOT MET, NOT MEASURED locally, CI measures): node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone cannot reach its pinned fixture commit), pnpm check:dual-build-cjs-loads (whole-tree dist absent), pnpm check:type-check-debt (re-measure needs the whole build), pnpm --filter @objectstack/spec run check:skill-examples (client-react dist absent).
  • pnpm --filter @objectstack/spec check:generated: all 14 generated artifacts up to date; node scripts/check-i18n-bundles.mjs: OK, all bundles in sync.
  • node scripts/pm/dispatch-gates.mjs --tier re-derived at 75244b31 by the resuming thread: no path-derived mandate (default tier).

🤖 Generated with Claude Code

…the default toolbar

The default (Display) toolbar has no Refresh, so userActions.refresh is
dropped from displayOffered; the Refresh comment and the spec describe
say the key governs only the wide toolbar's Refresh.

Claude-Session: https://claude.ai/code/session_01FEkQ5oY5WCqqqBMtn9qt7m
Co-authored-by: Claude <noreply@anthropic.com>
…cribe; add the changeset

Claude-Session: https://claude.ai/code/session_01FEkQ5oY5WCqqqBMtn9qt7m
Co-authored-by: Claude <noreply@anthropic.com>
… for the refresh hint

Claude-Session: https://claude.ai/code/session_01FEkQ5oY5WCqqqBMtn9qt7m
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:ui tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 67 of 249 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 3f7fdd002130a34ce24f735733c2642538914af9 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from b5cd3a0bd1ac6dad896ab6813122bb124de67c24 — the merge of head 75244b315e1d79c1455fbd2d343e00be5fbcbf8b into base 3f7fdd002130a34ce24f735733c2642538914af9, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b5cd3a0bd1ac6dad896ab6813122bb124de67c24 && git checkout b5cd3a0bd1ac6dad896ab6813122bb124de67c24
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 3f7fdd002130a34ce24f735733c2642538914af9 75244b315e1d79c1455fbd2d343e00be5fbcbf8b && git checkout -B drift-repro 3f7fdd002130a34ce24f735733c2642538914af9 && git merge --no-ff 75244b315e1d79c1455fbd2d343e00be5fbcbf8b

node scripts/docs-audit/affected-docs.mjs --json 3f7fdd002130a34ce24f735733c2642538914af9

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 75244b3 · 2026-11-22T07:46Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf

L1 ACCEPT · head 75244b315e1d79c1455fbd2d343e00be5fbcbf8b · 2026-11-22T07:48Z

维护者速读

席位核对

  • 形态:l1-face --pr 36339 CLEAN(13 项无标记);draft、base main、Fixes #36002,两条验收都交付,Fixes 正确;8 个文件 +104 −12;check-governed-merges NOT governed,116 行。文件面比首次认领多出 view.form.ts 和生成的 en.metadata-forms.generated.ts,两者都是被 hint == describe 的钉逼出来的,修订认领 7076109594 已把它们写进去。
  • 前提实测:在本 head 上,ListView.tsx 里 toolbarFlags.showRefresh 只剩一处读取(:7785,showRefresh && !compactToolbar,即宽工具栏的按钮),所以「默认工具栏既没有刷新按钮,面板里也没有」属实,新的描述「只管宽工具栏的刷新」也属实。卡的第 2 项(ADR-0049)走第一条分支:只补 spec 说明、不移除这个键,与认领一致。
  • 逐句核:changeset 两段;content/docs/references/ui/{view,page}.mdx 四行是 check:generated 生成的,与 view.zod.ts 的 describe 逐字相同;view.form.ts 的 hint 和生成的英文 bundle 与 describe 逐字相同。
  • 测试证据:新钉 ListView.refreshOnlyDisplay-36002,一条阳性加两条对照(宽工具栏仍画刷新;打开行高后仍画显示入口);消融把 || toolbarFlags.showRefresh 放回去后,阳性那条变红,两条对照仍绿,恢复后 blob 等于 HEAD。本地在本 head 上跑了 spec 869 个文件、platform-objects 125 个、harness 127 条测试,全过。
  • 门禁 check-runs @ 75244b31:63 success · 11 expected skip · 0 failed · 0 pending;Lint & Repo Gates、TypeScript Type Check 均 success。
  • 接受的偏差:另外十个语言的 hint 译文仍只有第一句,仍然属实,只是没有英文精确;要补齐得由译者来改,不在本卡内。compactToolbar 的 describe 没写它是渲染器默认值,dev 记为观察,未立卡,这里照收。
  • 范围外去向:无。
  • 落地条款:非受管。席位的契约档 L2(claim 7076117439)PASS 在案、无未闭 must-fix/should-fix ⇒ ready + auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 75244b315e1d79c1455fbd2d343e00be5fbcbf8b
Local-runs: none
Scope: packages/spec/src/ui/view.zod.ts, packages/spec/src/ui/view.form.ts + ui/packages/plugin-list/src/ListView.tsx

Read for this record: card #36002 (body and all seven comments: triage, both claims and the amended claim, both dev reports, the handover), PR #36339 (body, 8-file list, net diff against merge-base c30ce97c), and the 70 check-runs on the head (each success or skipped, none failed, none pending). The rest of the diff (the harness test block, the changeset, the regenerated content/docs/references/ui/{view,page}.mdx and en.metadata-forms.generated.ts) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set: unchanged, right. UserActionsConfigSchema.refresh stays z.boolean().default(true) inside the same strictObject; only the .describe() string moved. No key, type, default or tombstone changes, so nothing parses differently at any door. Spec property liveness and Type Check · consumer gates are green on the head.
  • Public surface, spec text: the describe of userActions.refresh and the view form's hint for it change, and through them the generated reference tables and the English metadata-forms help text. Right: text only, and the hint equals the describe (the pin view-form-composite-children.test.ts requires it; Test Core 10/10 green).
  • Public surface, renderer: in the default toolbar, displayOffered no longer counts toolbarFlags.showRefresh. A non-grid view with no layout switch, Group, Row colour, Row height, Hide fields or Export draws no Display entry, and its phone openViewSettings door is absent with it. Right against the card's first acceptance line. The wide toolbar is untouched: toolbarFlags.showRefresh && !toolbarFlags.compactToolbar at ListView.tsx:7785 still draws refresh-button.
  • Liveness: the key keeps a live reader (ListView.tsx:2646 into :7785), so the ledger row for userActions stays live. Right that it does not move.

② Semver level

The changeset names @object-ui/plugin-list, @objectstack/spec and @objectstack/platform-objects, each patch. That matches what the diff publishes: a renderer fix that removes an entry which offered no display option, a description-only spec edit, and a regenerated English help string. Check Changeset is green.

Clause-②: no on the PR body and on the changeset, agreeing with both claims. Right: no accepted value is refused, no declared capability is taken away at the consumer. The one thing a reader could reach before and cannot now is named under ④ N1, and it keeps other doors.

Metadata-protocol: none is right: no stored metadata shape changes.

③ Boundary flags

  • Dev flag, file surface beyond the first claim (view.form.ts, en.metadata-forms.generated.ts): answered. Forced by the hint == describe pin, and the amended claim on the card (seat 7, 07:46Z) carries both files.
  • Dev flag, test placed in the shared ListView.harness.test.tsx: answered, the lane seat's call under its harness rule; outside this record's scope.
  • Dev flag, final-head union not run by seat 4: answered by the resuming thread's report and, for this record, by the green check-runs on the head.
  • Dev flag, branch behind origin/main: answered for this head only. ListView.tsx has moved on main since the merge-base; the premise still holds there (showRefresh is still read three times on origin/main). A merge of main moves the head, and this record does not cover the new one.
  • open_questions: empty in both reports. Nothing to escalate.
  • Card item 2 (ADR-0049, what the key means in the default toolbar): answered by the card's own first branch. The maintainer's 「刷新去掉」 leaves the key with no meaning in the default toolbar; that is a spec note on the key, which this PR writes. No retirement is proposed, so no further card is owed by this PR.
  • SQL push-down: no query, id materialisation or in-app join is added or changed. Nothing to flag.

④ Design judgment

packages/spec/src/ui/view.zod.ts — holds. The new describe makes three claims, each read in the head's tree:

  1. "Governs only the wide toolbar's Refresh button (compactToolbar: false)": the only reader of the key in ui/ and packages/ is showRefresh: ua?.refresh !== false (ListView.tsx:2646), and after this PR its only use is the bar button gated on !toolbarFlags.compactToolbar (:7785).
  2. "the default toolbar has no Refresh": compactToolbar: schema.compactToolbar !== false (:2654) makes the Display form the default, and ViewSettingsPopover is handed no refresh prop and draws none.
  3. "so the toggle changes nothing there": true only with this PR's displayOffered hunk, which is in the same diff. Pull-to-refresh (:3617) is enabled on dataSource and objectName alone and never read the key, so the sentence holds for it as well.
    Tried to break it: looked for a second reader under another spelling (showRefresh, userActions.refresh, .refresh !== false) in the grid, kanban, calendar, gantt, mobile and app-shell packages; found none.

packages/spec/src/ui/view.form.ts — holds. The hint is the describe, character for character, as the pin requires.

ui/packages/plugin-list/src/ListView.tsx (implementing) — agrees with the contract. The displayOffered hunk removes exactly the one term; the remaining terms each name a control the panel actually draws. Both rewritten comments are true of the tree, with the one imprecision in N1. The pin in the harness file reads the source and covers the fix plus two controls.

No must-fix, no should-fix.

Nits:

  • N1 (nit) — the displayOffered comment's premise, the test's jsdoc and the changeset say the lost panel held "only its footer". In a host that shows views (onPersonalizationChange or onRenameView, and a label) the panel also headed with the view's name row, the in-place rename of objectstack#35551, and its footer carried Save and Restore defaults. None of these is lost as a capability: Save and Discard stay on the condition row (ListDraftActions), rename stays in the view switcher (ObjectView.tsx:1165) and in Manage views (:1548). Wording only; left as an accepted deviation, since a fix in ListView.tsx moves the head.
  • N2 (nit) — the describe leans on "the default toolbar" being the Display form, which the spec does not state: compactToolbar is z.boolean().optional() and its describe names neither the renderer default nor that Refresh is dropped. The dev reported this as noted, not filed. A follow-up card, not this PR.
  • N3 (nit) — packages/spec/liveness/view.json, the userActions note still reads "drives the manual toolbar Refresh button" without the wide-toolbar scope. Still true, less precise than the describe; same follow-up as N2.

Implemented-by: claude/issue-36002-refresh-display-panel
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Landing (seat 7, 2026-11-22T07:51Z): head 75244b315e1d79c1455fbd2d343e00be5fbcbf8b · L1 ACCEPT 7076134624 (L1-d) · L2 PASS 7076152814 (CONTRACT_REVIEW_TIER, spec describe face; no must-fix, no should-fix) · check-governed-merges --pr 36339: NOT governed, 116 changed lines ≤ 3000 · CI on the head: 70/70 success or skipped · claim 7076109594 covers the 8-file surface. → pr_ready + automerge_enable (merge queue).
Accepted deviations: L1 — the hint's second sentence stays untranslated in the other ten locales; L2 N1 — the "only its footer" wording (no capability lost). L2 N2 + N3 (the compactToolbar describe and the userActions liveness note) go to a follow-up card the seat files.

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45000194636 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (9/10) — 失败步骤: Run this shard's tests

    @objectstack/plugin-auth:test:  FAIL  src/password-reset-ends-added-access.test.ts > where the OAuth provider is mounted, a completed reset and a forced reset end the apps authorized to the account > 
      ↳ 失败原因: @objectstack/plugin-auth:test: AssertionError: expected false to be true // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 2 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ui size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant