Skip to content

test(driver-sql): count the default-order index in the live MySQL activation-ledger index lists - #34205

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-A4-34126
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-A4-34126

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Part of #34126

Clause-②: no
Metadata-protocol: none
Skills-docs: none

维护者速读

What changes

The live MySQL 8 cell, an upgraded MySQL 8 database: the old key retires safely beside the functional guard, lists every index on sys_metadata_activation after the safe replace and compares the list exactly. The 4-hourly full run on main at 00:10Z (run 43778747333, job 133010997457) failed there:

- Expected
+ Received
  [
    "PRIMARY",
+   "idx_sys_metadata_activation_created_at_id",
    "uniq_sys_metadata_activation_metadata_type_package_id_name",
    "uniq_sys_metadata_activation_packageless",
  ]

The extra name is the (created_at, id) index that IMPLICIT_SYSTEM_COLUMN_KEYS gives every managed table since PR #34044. It is not a timing budget. The MariaDB cell reads the same list through the same sync, so it gets the same name. It skips on the MySQL 8 server CI provisions, which is why only one case went red.

Both lists now name DEFAULT_ORDER. The assertion stays exact: nothing is loosened, filtered or skipped.

Tests

  • Local: vitest run src/sql-driver-widened-declared-unique.test.ts: 31 passed, 2 skipped (the two live MySQL cells, because no MySQL server is available here). ESLint --no-inline-config on the file exits 0, and check-nul-bytes exits 0.
  • The live cells run only in Temporal Conformance (live PG + MySQL), which does not run on pull_request or merge_group. The proof is the full-run diff above, and the next push run on main or the next 4-hourly run will confirm it.

🤖 Generated with Claude Code

…aDB activation-ledger index lists

The live MySQL 8 cell enumerates every index on the activation ledger after the safe replace. Since the (created_at, id) implicit index joined every managed table, that list has one more name; the MariaDB cell reads the same list through the same sync. Both now name it, so the assertion stays exact.

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 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 aab8b3188a9c7804d6f5164141576c1b856de082 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh

席位核对

Head-sha: 5a90d4a23f3b16354168aece0ce198f9c0324bbc · 读于 2026-11-16T01:19Z

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

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/spec:test:repo:  FAIL   repo  scripts/root-index.test.ts > content/docs/references/index.mdx (the committed page) > states no count that its own rows contradict
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected [ 218, 1663 ] to deeply equal [ 218, 1664 ]
    

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

分诊清单:

  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_01QsR2jUg7BKfRBcTPyMxbLh

Re-arm at 5a90d4a23f3b16354168aece0ce198f9c0324bbc (same head as ACCEPT 6904676457). Queue build 43785745866 went red in scripts/root-index.test.ts (reference-page count 1663 ≠ 1664). This PR changes only one driver-sql test file and touches no reference page. #34233 lists this build as inherited from the root #34147 in the same speculative stack. #34147 has left the queue, so this PR is re-queued once on its own tree.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

Re-enqueue · 2026-11-16T01:48Z · head 5a90d4a23f3b16354168aece0ce198f9c0324bbc (unchanged; 36 success / 26 skipped)

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/spec:test:repo:  FAIL   repo  scripts/root-index.test.ts > content/docs/references/index.mdx (the committed page) > states no count that its own rows contradict
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected [ 218, 1663 ] to deeply equal [ 218, 1664 ]
    

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

分诊清单:

  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_01QsR2jUg7BKfRBcTPyMxbLh

Re-arm at 5a90d4a23f3b16354168aece0ce198f9c0324bbc (unchanged, ACCEPT 6904676457). The second ejection (queue build 43788206354, the same root-index.test.ts 1663 ≠ 1664) was built on queue branch pr-34205-73066968. Its base 7306696840 is #34147's own queue merge, so this build again carried the stale-count root (#34233, comment 6905049333). Main's own Test Core (2/8) is green on its last five pushes, up to 7be32d39. #34147 is now out of the queue (auto-merge off), so this build will not contain it.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant