Skip to content

test: read four nightly specs where the product now draws what they pin - #35787

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-1jz30w
Nov 20, 2026
Merged

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

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgTRxhoKiYcN465k2Eh
Fixes #35762
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:产品行为一处不改,只改四个夜间测试,让它们到产品现在画出来的位置去读它们守护的东西。
  • 为什么做:修主干上「夜间分层测试变红」这张卡;四处红都是测试没跟上四个已合并、有意为之的界面与命令行改动。
  • 出错会怎样:只影响测试本身;改错的后果是夜间测试再红或漏报,产品不受影响,可以直接撤回。
  • 要你做什么:无。

What changes

Four nightly-tier tests that did not follow four intended, merged product changes now read what they protect where the product draws it today. Test files only; no product source changes, no assertion dropped, no test skipped. Each spec keeps its meaning:

  1. packages/cli/test/run-dev-unbuilt-workspace.e2e.test.ts (cases at the old lines 319 and 380): the refusal is now spelled as typed, Error: command i18n extract nope.ts not found, by the command_not_found hook (point-at-help.ts, cause 7a3f86c4). Both cases still prove what they proved: oclif still raises the not-found for an unbuilt workspace, and that report still survives the stalled pipe. The comments say whose words these are now.
  2. examples/app-showcase/e2e/bulk-capability-gate.spec.ts: the selection page bar draws SELECTION_EXPOSED_ACTIONS (2) defs as buttons and the rest behind its overflow menu (cause d96c878e). Measured: set_labels and assign_team are the exposed buttons; reassign_account and reschedule are row-context-bulk-NAME items in the opened menu. All four ungated defs are asserted; both gated defs (relabel_ops, purge_restricted) are asserted absent under BOTH testid spellings, with the menu open.
  3. ui/e2e/live/inline-edit-polish-2572.spec.ts: once the header draws the approval tag, the band draws no lock badge (cause 72d19c4e). The locked step now asserts record-approval-tag visible and carrying data-record-approval-locked. The unlocked step gains the control: the same tag visible WITHOUT that attribute. The earlier toHaveCount(0) on 'Locked for approval' is kept; it now holds on both steps, so the comment says the tag is what tells the steps apart.
  4. ui/e2e/live/record-history-display.spec.ts: consecutive field changes by one person on one day fold into ONE collapsed activity-fold row (cause a3a74f27). The spec pins the fold: exactly one fold row, collapsed at first. It expands the fold and asserts the three updates are rows inside it (date, lifecycle + industry, owner, each matched by its own content). It also asserts data-fold-count equals the rows the fold expands to. The positive reads (actor name, option labels, Customer Since, Owner, resolved owner name) now read the expanded change lines, not the fold summary. The absences are still read over the whole stream.

Branch: claude/project-thread-1jz30w. The card thread's harness assigns this branch and it is the only one the thread may push, so the repo's usual claude/issue-35762-* spelling is not available. The card is #35762, named on the closing line above, for the Duplicate Fix Guard.

Read first, by risk:

  1. ui/e2e/live/record-history-display.spec.ts: the fold hunk. The count is deliberately not pinned to 3; see Acceptance notes.
  2. examples/app-showcase/e2e/bulk-capability-gate.spec.ts: which two defs are exposed is pinned. That follows the bar's declared-order rule.
  3. ui/e2e/live/inline-edit-polish-2572.spec.ts: the tag control on the unlocked step.

Two-minute verification: in examples/app-showcase, run OS_TEST_TIERS=nightly pnpm exec vitest run test/console-live-specs.live.test.ts (needs the showcase closure and the CLI built). Expect Playwright's 28 passed and vitest's Tests 1 passed (1).

Tests

The before/after pair for each file:

  • Before: nightly run 44681826506 at ca4ec2a2f1 failed exactly these four cases. Shard 2/4: cli, 1 file failed of 29, the two cases. Shard 4/4: showcase smoke 1 failed / 55 passed, Console live specs 2 failed / 26 passed.
  • Local red leg: the four files restored from the base c4a73be6 and run against this tree's build. They fail at the same lines: cli Tests 2 failed | 9 passed (11). The bulk spec fails at bulk-action-reassign_account. Inline-edit fails at getByText('Locked for approval'). History fails at [data-stream-change] hasText Owner.
  • Local green leg (same stack, files from HEAD, diff against HEAD 0 bytes): cli Tests 11 passed (11), three e2e specs passed.
  • Final head, both full live files once: see Verification.
Typecheck of the touched files
  • pnpm --filter @objectstack/cli typecheck: tsc and check:test-typecheck OK. The tsconfig.test.json program covers the cli test file.
  • pnpm --filter @objectstack/example-showcase typecheck (its include holds e2e/**/*): OK.
  • pnpm --dir ui type-check:e2e (tsconfig.e2e.json over ui/e2e/): OK.

Acceptance notes

  • Finding, reported to the seat and not fixed here (test-only card): on the record page's 动态 tab, the Changes chip draws the record's CREATION audit entry as a field-change line. It folds in with the three same-day updates, so the fold reads 4 updates (Updated Owner, Industry, Lifecycle, 3 more). The All filter shows the same three updates as 3 updates, beside a separate Created Account row. This was measured live on showcase_account with one create and three PATCHes. The spec therefore pins the three updates inside the fold and the count-equals-rows invariant, not data-fold-count = 3.
  • cli: in the unbuilt-workspace case the pointer names os i18n --help. The command module did not load, so the hook's lookup reaches the topic only. The spec does not pin the pointer line; it was not part of what either case protects.
  • cli: the file header's transcript still shows the colon spelling. It quotes the original incident's output, so it is left as written.

Verification

All readings were taken at head d126f308, in a shared container; durations are not idle-box figures.

Both full live files at the final head, once
  • OS_TEST_TIERS=nightly pnpm exec vitest run test/showcase-smoke.live.test.ts: Playwright 56 passed (1.8m), including e2e/bulk-capability-gate.spec.ts:38:5 ... (2.4s); vitest Tests 1 passed (1); lock VERDICT command-exit 0.
  • OS_TEST_TIERS=nightly pnpm exec vitest run test/console-live-specs.live.test.ts: Playwright 28 passed (1.5m), including record-history-display.spec.ts:56:1 and inline-edit-polish-2572.spec.ts:68:1; vitest Tests 1 passed (1); lock VERDICT command-exit 0.
  • cli OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run --project integration --maxWorkers=2 test/run-dev-unbuilt-workspace.e2e.test.ts: Tests 11 passed (11). The file is byte-identical at 0719a6ad and d126f308.
Local gate subset (dispatch-gates --commands, 51 families)
  • 49 exited 0.
  • 2 NOT MEASURED (exit 3, a refused prerequisite):
    • node scripts/check-plugin-teardown-shape.mjs --self-test: its positive-control commit is outside this shallow clone.
    • pnpm check:dual-build-cjs-loads: some packages outside this card's build closure have no dist/.
    • Neither reads these test files' behaviour. CI runs both.
  • --ran with exit codes: 51 derived famil(ies) accounted for — 49 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3).
  • check:nul-bytes exit 0. A control-byte self-scan over the four files found 0 hits.
  • The families CI runs are read from this PR's check-runs, not re-run here.

Generated by Claude Code

- cli run-dev-unbuilt-workspace: the refusal spells the id as typed
  (`command i18n extract nope.ts not found`), the command_not_found hook's words.
- showcase bulk-capability-gate: the selection page bar exposes two defs and
  puts the rest behind its overflow menu; every ungated def is read, both
  gated defs are absent under both testid spellings with the menu open.
- console inline-edit-polish-2572: the approval lock reaches the reader
  through the header's record-approval-tag (data-record-approval-locked),
  with the unlocked step as its control.
- console record-history-display: the three updates are one fold row; the
  spec pins the fold, expands it, and reads the change lines inside it.

Claude-Session: https://claude.ai/code/session_01L6bhgTRxhoKiYcN465k2Eh
Co-authored-by: Claude <noreply@anthropic.com>
…lds, not by an exact count

The Changes chip also draws the creation's own audit entry as a change line,
which folds in beside the updates (measured: data-fold-count 4).

Claude-Session: https://claude.ai/code/session_01L6bhgTRxhoKiYcN465k2Eh
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 20, 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 b0c624af8c69d38cc02815fb980ffb630737eff9 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:用户无感,这单只改测试。四个夜间测试一直是红的,原因不是产品坏了,而是近期有意改过界面和提示文字,测试还在找旧的写法:选中多条记录后操作栏只露两个按钮、其余收进"⋮";命令行找不到命令时的提示改成空格分隔;记录页的审批锁改由页头标签表示;变更记录会折叠成一行。现在测试改成检查新的写法,检查的内容没有减少。
  • 出错会怎样:测试的读法如果不对,只会让夜间测试继续红或者误绿,不影响产品本身。
  • 要你做什么:不需要你做任何事。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head d126f3089a3afc519b63d7dc43a90f518d9a42e4 · 2026-11-20T08:02Z

  • Shape — base main, merge-base c4a73be6, 2 commits (0719a6ad, d126f308), 4 test files, +73/−21. NOT governed. No product code, no changeset owed. No contract face is touched, so no L2 is owed.
  • Each change, checked against the merged change it cites, on main
    1. bulk-capability-gate.spec.ts ← feat(list): no Actions column on the list page; a selection swaps the page bar; lists load as they scroll #35637 (d96c878e), citing 列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554. SelectionPageBar.tsx:38: SELECTION_EXPOSED_ACTIONS = 2. The exposed defs are bulk-action-${name} buttons (:176), the overflow trigger is selection-actions-more (:103), and the overflow items are row-context-bulk-${name} (RowContextMenu.tsx:111/124). The showcase's declared order in project.view.ts is set_labels, assign_team, reassign_account, reschedule, then the gated relabel_ops and purge_restricted. So the first two are buttons and the other two ungated defs are menu items, which is exactly what the spec now reads.
      • Nothing loosened. All four ungated defs are still asserted visible.
      • The gate is now pinned in both shapes. Each gated def must be absent as a button AND as an item of the opened "⋮". The menu is opened before the absence checks, so a menu absence is evidence of the gate and not of a closed menu.
    2. run-dev-unbuilt-workspace.e2e.test.ts ← fix: refusal and remedy copy from the v18.4.0 sweep (clone control label, short and empty unknown keys, CLI unknown command, MCP doc) #35397 (7a3f86c4). point-at-help.ts, commandNotFoundMessage, joins the id's segments with config.topicSeparator. packages/cli/package.json sets "topicSeparator": " ". The hook throws CLIError with exit 2, so Error: command i18n extract nope.ts not found is the text oclif prints. Both assertions change only the spelling, and code still has to be 2.
    3. inline-edit-polish-2572.spec.ts ← feat(record): one header row and one button group on the record page (#35593, #35419) #35679 (72d19c4e), 记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593 item 4. RecordDetailView.tsx around line 5510: the header button data-testid="record-approval-tag" carries data-record-approval-locked='' only when it is locked, and the comment there says the band draws no lock badge once the tag names the approval.
      • The unlocked step keeps its old absence (Locked for approval count 0). It gains a visible tag and the attribute absent.
      • The locked step's text read is replaced by the tag visible with the attribute present. That is a structural read, stronger than the text, and it is the control for the unlocked reading.
      • Nothing is dropped. The two edit-session checks around them are unchanged.
    4. record-history-display.spec.ts ← feat(record-page): dense field rows, one-line activity and file-row attachments #35708 (a3a74f27), 记录页字段密排(标签在左、值在右,每行 32);互动页签按天分组、每条一行;附件页签改成文件行 #35602. RecordActivityTimeline.tsx renderFold: data-testid="activity-fold", data-fold-count={entry.items.length}, an aria-expanded button, activity-fold-entries drawn only when expanded, and each entry through renderItem (data-stream-row). The spec pins one fold, collapsed at first, then expands it.
      • Positive reads are narrower. Actor name, option labels, Customer Since, Owner and the other user's name are now read in the expanded entries (lines), so the fold summary cannot satisfy them.
      • Every absence is still read over the whole stream (text). That covers the raw ids, raw option values, ISO datetimes, YYYY-MM-DD and the unknown-user fallback.
      • d126f308 drops the exact count of 3. It pins each of the three updates once by content, plus data-fold-count equal to the rows drawn. The reason is sound: the creation's own audit entry can fold in on the same day. The three updates are still each required exactly once, so this is not a loosening of what the spec proves.
  • Not re-measured here. These are live and nightly specs, and there is no node_modules or running stack in this seat. Their green is the dev's reading (os-dev-report 7033847599) and the next nightly run's.
  • Gates — at reading time on this head, PR CI is still running: 14 success, 18 skipped, 0 failure, and the rest in progress (Test Core, Test UI, Build & E2E UI, lint and type-check). This ACCEPT holds when that run finishes green.
  • Landing terms — not governed, no L2 owed, so this L1 is the review of record. The card thread lands this head once every check is green. A new push needs a fresh L1 unless it is a clean main merge.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRxhoKiYcN465k2Eh

Landing · 2026-11-20T08:21Z · head d126f3089a · Fixes #35762

  • L1: ACCEPT by L1-a, comment 7033908988, on head d126f308, conditioned on this CI round going all green. No L2 owed (no contract face).
  • os-dev-report: 7033847599 on nightly-tiers: red on main #35762 (dogfood_battery: n/a, no ! and no narrowing arm).
  • CI at d126f308: 58 check-runs, every one success or skipped (last finished 08:18Z).
  • check-governed-merges --pr 35787 (main ef39b2c1): NOT governed, 0 of 4 paths on the register; 94 changed lines, under 3000.
  • landing-k --pr 35787: K = 2 < 15, no new locale pack under a label PR, no shared book moved. OK.

Ready for review and auto-merge through the queue. The next scheduled nightly (cron 29 5 * * *, tomorrow 05:29 UTC) is the proof the tiers are green.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 08:22
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 1a21ce9 Nov 20, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-1jz30w branch November 20, 2026 08:44
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 tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nightly-tiers: red on main

2 participants