Skip to content

test(app-shell): await the flow label in the canvas-chip header test - #38171

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-ciejge
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-ciejge

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #37822
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改一条自动化测试,产品界面不变。
  • 让流程画布标题测试不再偶发失败(测试在标题加载完成前就去读文字)。
  • 出错只会让这条测试误报,可直接撤回。
  • 要你做什么:无。

What changes

StudioDesignSurface.flowCanvasChip-11665.test.tsx only. The canvas chip prints the API name until the flow loads (flowTitle = current ? ... : flowName), so the synchronous label and header-text reads after caption() raced the load. They now sit in waitFor. The fixture gains a server.gate that holds list/layered; a new case proves the chip is the API-name placeholder while held and the label after release; the API-name fallback case releases the gate and waits for auto-flow-meta so it no longer passes on the placeholder.

Tests

  • File: 5/5 pass; 20 consecutive runs: 20 ok.
  • Ablation (header prints API name, flowTitle = flowName, reverted): zh, en and the new late-load case go red; the API-name case stays green by design (it is the fallback).
  • Old synchronous read vs late load: the new case asserts the placeholder while held, which is what the old sync assertion would have read.

Acceptance notes

No changeset: test file ships in no package. Header text reads (zh hint, en 'Visual orchestration') also sat synchronously; now awaited.

The chip prints the API name until the flow loads, so the label and header
text assertions raced the load. Wait for them, hold the load in a new case,
and settle the load before the API-name fallback assertion.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibx7DSQZnugnuX8CpCM
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM

Branch sync · zone o3-ux · 2026-11-28T05:31Z

  • Head e2c71021 is green: 38 success, 18 expected skip, 0 failed, read at 2026-11-28T05:31Z. Test Core did not run, since the diff is ui-only.
  • landing-k cannot answer, because no Test Core shard printed an Affected-set diff base. Read by hand, the merge-base 9726bd83 sits 33 first-parent commits behind origin/main (≥ 15). So origin/main is merged into the head in this same stroke (relay pr_update_branch), and the rerun is read before landing.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T05:55Z

L1-a: ACCEPT at 523fc6175c5dbfab39720d9445e9c78584f5f961, the merge-main head of e2c71021

  • Face: L1 only. The PR changes one test file (StudioDesignSurface.flowCanvasChip-11665.test.tsx, +37/-9). It declares Clause-②: no and Metadata-protocol: none, and carries skip-changeset. @object-ui/app-shell is unpublished.
  • The merge resolved nothing. git diff 7605e0c9 523fc617 is exactly the dev's hunks in that file.
  • The race and the fix. The chip prints the API name until the flow's layered load lands, so a synchronous label read could pass or fail depending on timing. Each label, title and header read is now awaited.
  • The fallback case now proves what it claims. It holds the load behind server.gate, releases it, and waits for auto-flow-meta. That element is drawn only when flowOpen is true, and flowOpen needs flowLoaded (AutomationsPillar.tsx, line 1246). So the API-name assertion is read after the load and checks the real fallback, not the placeholder.
  • The new case is a positive control. It asserts the placeholder while the load is held, then the label after release, which pins the order the old test assumed.
  • beforeEach resets server.gate, so one case's held load cannot leak into the next.
  • Fixes #37822 is right: the card is the race this test had.
  • CI at this head: 37 success, 14 skipped, 0 failed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM

Landing · zone o3-ux · head 523fc6175c5dbfab39720d9445e9c78584f5f961 · L1 ACCEPT 7234969174 (L1-a), no L2 owed · 2026-11-28T05:55Z

reading result
check-governed-merges.mjs --pr 38171 NOT governed; 46 changed lines (+37 / -9) ≤ 3000
K 0 by hand (merge-base is origin/main's tip); landing-k cannot answer on a ui-only PR whose run printed no Test Core base (7234731256)
checks at this head 37 success, 14 expected skip, 0 failed, 0 pending; mergeable_state clean (read 2026-11-28T05:55Z)
generated artifacts no merge=os-regen path in the file list

State: pr_ready + automerge_enable now; #37822 closes on merge via Fixes.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 05:56
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-28T06:01Z · zone o3-ux (zone self-done card)
Head-sha: 523fc6175c5dbfab39720d9445e9c78584f5f961

  • L1 ACCEPT 7234969174 at this head (L1-a), the merge-main head of e2c7102; the merge resolved nothing (git diff 7605e0c9 523fc617 is the dev's hunks only). L1 only: one test file, Clause-② no, Metadata-protocol none, skip-changeset.
  • Claim 7232629789. Report 7234501294 (relayed by the zone). The maintainer chose 「开草稿 PR」 on the zone's card at 2026-11-28T05:08Z.
  • check-governed-merges.mjs --pr 38171: NOT governed, +37 / −9.
  • K: 0 < 15, counted by hand.
  • Checks at this head: 38 success, 14 skipped, 0 failed. mergeable_state clean.
  • Action: auto-merge (queue).

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

  • Dogfood Regression Gate (2/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/approval-decide-over-mcp.dogfood.test.ts > an approver's agent decides a pending approval request over MCP (#32442) > ⭐ a member on no slate is refuse
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {
    @objectstack/dogfood:test:  FAIL   isolated  test/approval-decide-over-mcp.dogfood.test.ts > an approver's agent decides a pending approval request over MCP (#32442) > ⭐ [#33690] the approver's call d
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {
    @objectstack/dogfood:test:  FAIL   isolated  test/approval-decide-over-mcp.dogfood.test.ts > an approver's agent decides a pending approval request over MCP (#32442) > ⭐ [#33690] the submitter's recal
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {
    @objectstack/dogfood:test:  FAIL   isolated  test/mcp-system-object-action-exposure.dogfood.test.ts > [#27681, #27900] sys_user identity actions over MCP: what each bucket's declaration lets an agent 
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {
    @objectstack/dogfood:test:  FAIL   isolated  test/mcp-system-object-action-exposure.dogfood.test.ts > [#27681, #27900] sys_user identity actions over MCP: what each bucket's declaration lets an agent 
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {
    

↳ 失败原因 是判读的关键:超时(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 队列共有 42 个失败构建(不含本次)。

分诊清单:

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

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

Merged via the queue into main with commit a9062bb Nov 28, 2026
52 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ciejge branch November 28, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flowCanvasChip-11665 test: the zh caption text is asserted before the flow label loads

1 participant