Skip to content

fix(objectql): a following amount whose parent code field is no longer served is refused with a message that says so - #34024

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-E2b-33888
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-E2b-33888

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread
Fixes #33888
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:子表金额跟随父记录币种、而父对象已不再提供该币种字段(提供它的扩展包被停用或卸载)时,写入仍以 ERR_CURRENCY_CODE_REQUIRED / 400 拒绝,但提示改为说明"父对象不再提供该字段",并在注册表仍记得时点名被停用的包。
  • 为什么改:旧提示说"父记录币种为空,请先写入币种",而那个字段已经不存在,照做只会得到另一个错误。
  • 风险与回滚:只改提示文案;错误码、状态码、field、amountField 不变,币种字段确实为空时的原文案一字不变。回滚即还原本 PR。
  • 先看:packages/objectql/src/validation/record-currency-code.ts 的 parentCodeFieldServingOf 与 codeRequiredMessage 新分支;再看 record-currency-guards.test.ts 末尾新增的 describe。
  • 两分钟验证:pnpm --filter @objectstack/objectql exec vitest run --project local src/record-currency-guards.test.ts -t "no longer served",预期 2 个用例通过。
  • 需要你做的:无,席位落地。

What changes

RecordCurrencyCodeRequiredError gains a third case for a following amount (currencyField: 'MASTER_DETAIL.CODE'): the parent object, as served at the write, declares no field under the code segment. Before, that case fell into the blank-code text, which asks for a code to be written into the field that is not there. Now the refusal reads, for the measured disable path:

Insert on 'suite_line' was REFUSED: 'amount' holds an amount in its parent record's currency (currencyMode: 'record', following 'invoice.currency_code' through the master_detail 'invoice'), and 'suite_invoice' does not serve a field 'currency_code' (the package 'com.test.supplier' that contributed it is disabled); the amount has no code to follow until that field is served again, or leave 'amount' empty. The row was not written.

  • Package clause. The registry keeps a disabled package's extend contribution, so on the disable path the package is named. An uninstall removes the contribution, so there the clause is the card's generic one: "(a package that contributed it may be disabled or uninstalled)".
  • Where the fact comes from. The path pair is resolved in recordCurrencyPairs / recordCurrencyPathOf from the child's own field map only, so the guard cannot know what the parent serves. assertRecordCurrencyCodes takes one new optional argument, a ParentCodeFieldServing reader. parentCodeFieldServingOf(registry) builds it from getObject (the served fold, a disabled extension left out), getObjectContributors and isPackageDisabled. The four write-side callers pass it: insert, by-id update, predicate update and the validate() preview, in engine-insert.ts, engine-update.ts (two sites) and engine-validate.ts. It is asked only after a pair is refused, about the first refused pair, so the accepted write path reads nothing new.
  • Unchanged. ERR_CURRENCY_CODE_REQUIRED / 400, field, fields, amountField, and the full text for a served code field that is blank. A parent object that is not served at all keeps today's text. The guard is not exported from the package entry, so the published API surface does not move.

Tests

packages/objectql/src/record-currency-guards.test.ts (the shared harness for this guard) gains one top-level describe on the measured fixture: billing owns suite_invoice and suite_line, supplier extends suite_invoice with currency_code, suite_line.amount follows invoice.currency_code.

  • disable path: after disablePackage(supplier) a child insert is refused ERR_CURRENCY_CODE_REQUIRED / 400 with field invoice.currency_code, the message carries the not-served clause naming the disabled package, and does not carry "has a blank". The same test then uninstalls the supplier and asserts the generic package clause.
  • CONTROL: under a served but blank parent code, the message equals today's full text.

Ablation (committed fix first, mutation through scripts/ablation-replace.mjs, which restored the blob to HEAD and found git diff HEAD empty): replacing the reader call parentCodeServing?.(path.master, path.code) with undefined turns the disable-path test red and leaves the blank-text CONTROL green.

Acceptance notes

Verification

Readings at head d50cea4559 (branch merged with origin/main at 0ac112fcd), each command under scripts/pm/os-verify-lock.sh where it builds or tests:

  • pnpm --filter @objectstack/objectql typecheck: tsc clean; check:test-typecheck: OK (39 files / 233 errors / 64 pinned signatures held, unchanged).
  • pnpm --filter @objectstack/objectql exec vitest run --project local --maxWorkers=2: VERDICT command-exit 0, Test Files 598 passed (598), Tests 13235 passed (13235).
  • record-currency-guards.test.ts alone: 73 passed (73), the two new tests included.
  • Derived gate families (node scripts/pm/dispatch-gates.mjs --commands, 68 families at d50cea4559): 66 run locally, every one exit 0. check:dual-build-cjs-loads is left to CI; check:type-check-debt runs under the lock and its reading is in the report comment on objectql: a following amount whose parent code field is no longer served is refused as if the parent's code were blank (ERR_CURRENCY_CODE_REQUIRED message) #33888.
  • eslint --no-inline-config on the five touched source files: exit 0. check-nul-bytes: OK.
  • test:repo is not run locally: the diff changes no repo-project test and the derivation names none; CI's Test Core runs it.
Ablation output (disable-path test, mutation landed and restored)
ablation-replace: ok mutation landed: anchor 1 -> 0, blob c74cd8bdd6d5 -> f833530689a9
 × disable: the supplier disabled, a line with an amount is refused naming the field as not served and the disabled package
 Tests  1 failed | 1 passed | 71 skipped (73)
Received: "... and the 'suite_invoice' record it names has a blank 'currency_code', or it names none. The row was not written. Write the parent's ISO 4217 code (for example 'USD') into 'suite_invoice.currency_code' first ..."
ablation-replace: ok restored: blob == HEAD (c74cd8bdd6d5) and `git diff HEAD` is empty

Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5

🤖 Generated with Claude Code

… of asking for it to be written

A following amount whose parent object no longer serves the code field (the
package that contributed it disabled or uninstalled) is still refused
ERR_CURRENCY_CODE_REQUIRED / 400, but the message now says the field is not
served, naming the disabled package when the registry still holds its
contribution. The blank-code text is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
…after the message builder split

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/objectql, touching 15 documentable anchor(s).

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/kernel/contracts/metadata-service.mdx (via getObject (symbol, a method of interface ParentCodeFieldRegistry))
  • content/docs/protocol/objectql/state-machine.mdx (via /object/:name/state/:field (route, bridged from symbol getObject — its route source's handler names it))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via getLegalNextStates (sdk, the bare tail of client method meta.getLegalNextStates, bound to GET /api/v1/meta/object/:name/state/:field; the bare tail of client method meta.getLegalNextStates, bound to GET /meta/object/:name/state/:field), meta.getLegalNextStates (sdk, the route ledger binds it to GET /api/v1/meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field; the route ledger binds it to GET /meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field))
  • content/docs/releases/v17/17-2.mdx (via getLegalNextStates (sdk, the bare tail of client method meta.getLegalNextStates, bound to GET /api/v1/meta/object/:name/state/:field; the bare tail of client method meta.getLegalNextStates, bound to GET /meta/object/:name/state/:field), meta.getLegalNextStates (sdk, the route ledger binds it to GET /api/v1/meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field; the route ledger binds it to GET /meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 4 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 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 — 21 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 240e9ab597a9b9a2dc3f46fe0d4432b3030b5de9 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 3bce20731e1d9d87de8f0c19d6d9f83e80380fd8 — the merge of head d50cea4559b540e3bc7aa7ee10e2d33f2171fe97 into base 240e9ab597a9b9a2dc3f46fe0d4432b3030b5de9, 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 3bce20731e1d9d87de8f0c19d6d9f83e80380fd8 && git checkout 3bce20731e1d9d87de8f0c19d6d9f83e80380fd8
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 240e9ab597a9b9a2dc3f46fe0d4432b3030b5de9 d50cea4559b540e3bc7aa7ee10e2d33f2171fe97 && git checkout -B drift-repro 240e9ab597a9b9a2dc3f46fe0d4432b3030b5de9 && git merge --no-ff d50cea4559b540e3bc7aa7ee10e2d33f2171fe97

node scripts/docs-audit/affected-docs.mjs --json 240e9ab597a9b9a2dc3f46fe0d4432b3030b5de9

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 240e9ab597a9b9a2dc3f46fe0d4432b3030b5de9 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Request: review · PR #34024 · area S3 · Fixes #33888 · head d50cea4 (green, final)

Ordinary ACCEPT read. No contract face: objectql only, Clause-② no, Metadata-protocol none. Report: os-dev report 6897763776 on #33888.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review claim (review-a, S3) · head d50cea4 · 2026-11-15T17:16Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review — PASS

Head-sha: d50cea4559b540e3bc7aa7ee10e2d33f2171fe97
Reviewer: review-a (areas S1 + S3) · read 2026-11-15T17:17Z · diff read against the merge's main parent 0ac112fc (6 files, +207/−35, matches the PR files list)
Implemented-by: session_01QsR2jTEivi2wogPpeo3xd5 (area S3 dispatch) · Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM

What holds

  • Scope and declaration. Only the refusal's text changes. ERR_CURRENCY_CODE_REQUIRED/400, field, fields and amountField are unchanged, and the error-code ledger records the code and status, not the text. No export from the package entry moves, so Clause-②: no / Metadata-protocol: none hold, and an @objectstack/objectql patch is right. The diff touches no contract face, so no contract record is owed.
  • No new read on the accepted path. assertRecordCurrencyCodes asks the new parentCodeServing reader only after hits is non-empty, and only about the first hit's parent. It asks only when that pair follows a parent (path.master set). The reader makes registry metadata reads only (getObject, getObjectContributors, isPackageDisabled), with no data read.
  • The new branch is narrow and fails toward today's text. It fires only when the parent object is served and its served field map lacks the code field. A parent that is not served at all (getObject undefined) keeps today's text, as the PR says. So does any lookup that misses for another reason. The package clause names only disabled contributors whose own definition still declares the field. Otherwise it gives the card's generic clause, which matches the registry's behaviour: a disable keeps the extend contribution and an uninstall removes it.
  • The constructor refactor is byte-preserving. codeRequiredMessage reproduces the old composition for every other branch. The CONTROL pins the full blank-code text with toBe.
  • Every write door is wired. The four write-side callers pass the reader: insert, by-id update, predicate update and the validate() preview.
  • Tests. The disable path and then the uninstall path run on a real registry fixture. Each asserts the envelope, the field, the clause, the absence of "has a blank" and that no row was written. I accept the ablation of the reader call as reported: the disable test goes red and the CONTROL stays green.

Nits (no re-review needed)

  1. Only the insert door is pinned. A by-id or predicate update that dropped the new argument would quietly fall back to the old text, and nothing would go red. A one-line update pin on the same fixture would close that. Fold it into a later card on this guard.
  2. The new clause tells any writer of the child object the id of a disabled package. That is metadata of the same kind the message already names (objects, fields, the master_detail), so I see no new exposure. I am noting it in case the platform later decides package ids are admin-only.

Gates: at review time 35 success, 16 skipped, none red, so every check is green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

席位核对

ACCEPT and landing · area S3 · 2026-11-15T17:18Z · head d50cea4559b540e3bc7aa7ee10e2d33f2171fe97

  • Review: review-a PASS 6898280223 at this head.
    • Only the refusal text changes. ERR_CURRENCY_CODE_REQUIRED/400, field, fields and amountField are unchanged.
    • The new parentCodeServing reader is asked only after a pair is refused, and it makes registry metadata reads only.
    • An unserved parent, or any other miss, keeps today's text.
    • All four write callers pass the reader.
    • The disable and uninstall pins run on a real registry. The CONTROL pins the blank-code text byte for byte with toBe. The reader-call ablation turns the disable pin red.
  • check-governed-merges.mjs --pr 34024: NOT governed, +207 / −35. Ordinary queue landing.
  • Base: K = 14 against PRBASE 240e9ab, under 15.
  • Check-runs on this head: 35 success, 16 skipped, none red.
  • Declarations: Clause-②: no, Metadata-protocol: none, patch changeset for @objectstack/objectql. No contract face. Fixes objectql: a following amount whose parent code field is no longer served is refused as if the parent's code were blank (ERR_CURRENCY_CODE_REQUIRED message) #33888.
  • Deviations accepted, recorded as Acceptance notes with no card:
    • Review nit 1: only the insert door is pinned. An update pin can ride a later card on this guard.
    • Review nit 2: the clause names a disabled package id, which is metadata of the kind the message already names.
    • Dev note: a parent object that is not served at all keeps the blank-code text.

Ready + auto-merge under the area S3 landing line (maintainer, project thread, 2026-11-15T11:06Z) and the pm-dispatch landing procedure (maintainer, 2026-11-15T15:56Z).


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 17:18
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-02-28: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-02-29: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-03-31: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: @objectstack/scenarios:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(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,按失败测试文件聚合):

  • test/runner/run-date.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

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

分诊清单:

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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Queue triage and one re-arm · area S3 · 2026-11-15T17:40Z · head d50cea4559b540e3bc7aa7ee10e2d33f2171fe97 (unchanged)

  • Signature: queue build 43740503263, Test Core (7/8). @objectstack/scenarios test/runner/run-date.test.ts › "every dated card, rebased onto each run date" › run on 2028-02-28 / 2028-02-29 / 2028-03-31. All three are Error: Test timed out in 5000ms, at 6797 ms, 5108 ms and 7695 ms. There is no assertion failure.
  • First diagnosis: load and timing, not this PR. The first error is a timeout. This PR changes only the currency-code refusal text path in packages/objectql/src/validation/record-currency-code.ts and its four write callers. The failing test exercises the scenario run-date rebase (src/runner/run-date.ts, loader, truths), not a write refusal. fix(scenarios): keep a working-day card's dates on working days on every run date #33999 ("keep a working-day card's dates on working days on every run date") changes that same test file's subject. It was in the queue at the same time and merged at 2026-11-15T17:37Z, after this build. That is triage branch 3 (the same group), with the preceding PR now landed.
  • Action: one re-arm on the unchanged head, as the triage comment's branch 3 allows. If the same signature returns, I stop and file it with the scenarios owner. I will not re-arm again.

Generated by Claude Code

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Re-arm, after removal · area S3 · 2026-11-15T17:49Z · head d50cea4559b540e3bc7aa7ee10e2d33f2171fe97 (unchanged)

My stroke 6898569066 ran while the PR was still in the queue. The timeline shows removed_from_merge_queue only at 2026-11-15T17:47Z, for the same failed build 43740503263, and no second failure has been reported. So that stroke did not count, and this is the one re-arm it announced. The basis is unchanged: a timeout-only signature in @objectstack/scenarios run-date.test.ts, triage branch 3, and #33999 landed. If this signature returns, I stop and file it with the scenarios owner.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-02-28: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/scenarios:test:  FAIL  test/runner/run-date.test.ts > every dated card, rebased onto each run date > run on 2028-02-29: today is the run date, every date moves as the card's rebase says, 
      ↳ 失败原因: @objectstack/scenarios:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(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 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 12 个失败构建(不含本次)。

分诊清单:

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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Queue ejection 2 · area S3 · 2026-11-15T18:38Z · head d50cea45

The second ejection (queue build 43745625854) has the same signature as the first: @objectstack/scenarios test/runner/run-date.test.ts timed out at 5000ms. This PR does not touch packages/scenarios. The re-arm after the first ejection was the one allowed for a timeout-only signature, so I am not re-arming again. The flake is tracked on the queue-flake anchor #34081 (p1, claimed by domain:devx#2), and this PR goes back in the queue once that fix lands on main.


Generated by Claude Code

Merged via the queue into main with commit 6844e6b Nov 15, 2026
52 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-E2b-33888 branch November 15, 2026 19:50
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 size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant