Skip to content

test(plugin-list): the inlineFlsNoop UNAUTHORED case waits for the object-schema headers, not the first render - #37981

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-8o1afe
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-8o1afe

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #37972

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改了列表页的一个自动化测试,产品行为不变。
  • 这个测试在慢的检查机上会偶发失败,挡住了与界面无关的修复合并;修好后这类合并不再被它卡住。
  • 出错的话只是这个测试再次偶发失败,删掉本次改动即可撤回,不影响任何用户。
  • 要你做什么:无。

What changes

ui/packages/plugin-list/src/__tests__/ListView.inlineFlsNoop-6723.test.tsx, the UNAUTHORED case only.

The rows can paint before the object schema arrives. Until it does, objectSchema is null, so generateColumns() answers from the row keys on the inline-data path (ui/packages/plugin-grid/src/objectGridGenerateColumns.tsx:783-784): Id shown, Amount dropped by the #6723 gate. The case took the first non-empty header set, so on a slow runner it read that render and failed with expected [ 'Id', 'Opportunity Name' ] to not include 'Id' (PR #37948, jobs 140512339260 and 140529997984).

The case now waits until the headers equal the object-schema set, ['Opportunity Name'], before it asserts. The three assertions after the wait (toContain('Opportunity Name'), not.toContain('Amount'), not.toContain('Id')) are unchanged. No other case changes; the CONTROL case's toContain('Amount') stays as it is. No source file changes. The file is not published (test-only), so skip-changeset.

Tests

All runs from ui/: pnpm exec vitest run --maxWorkers=2 packages/plugin-list/src/__tests__/ListView.inlineFlsNoop-6723.test.tsx, under scripts/pm/os-verify-lock.sh, on head db083480 (base origin/main 0b539b6).

Run Result
This head, three runs 3/3 passed, each time
Race forced: getObjectSchema delayed 300 ms, OLD case (0b539b6) red: expected [ 'Id', 'Opportunity Name' ] to not include 'Id' at :171, the CI message exactly
Race forced: same 300 ms delay, this head 3/3 passed
Ablation: rowKeysWouldOutrankSchemaPolicy forced to false (grid stays on the inline-data path), this head red: expected [ 'Id', 'Opportunity Name' ] to deeply equal [ 'Opportunity Name' ] at :165 (the new wait); the other two cases green

Both mutations went through scripts/ablation-replace.mjs (anchor hit 1 -> 0, blob moved, restored to the HEAD blob with git diff HEAD empty). @object-ui/plugin-grid resolves to src through the ui/vitest.config.mts alias, so the ablation needs no build.

Acceptance notes

Verification

Two-minute check: run the command above from ui/; expected Tests 3 passed (3). To see the race the old case lost, delay getObjectSchema in the file's makeDataSource() by 300 ms: this head stays green.


Generated by Claude Code

…ject-schema headers

The case took the first non-empty header set, which on a slow runner is the
inline-data render painted before the object schema loads (`Id` shown,
`Amount` dropped by the inline-data FLS gate). It now waits until the
headers equal the object-schema set before asserting the mechanism; a grid
that stays on the inline-data path never reaches that set and reds the wait.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T14:30Z

L1 ACCEPT at db08348070c1e1cd57a6f50af9595be81f39dd86 (L1-a for the seat). Only the L1 is owed: one test file, no source change, no rules or schema face.

Against card #37972's acceptance.

  • The UNAUTHORED case now waits until the headers equal ['Opportunity Name'] (the object-schema set) before it asserts, so the inline-data render that can paint first can no longer be the set it reads. ✓
  • Teeth kept: a grid that stays on the inline-data path never reaches that set, so the wait times out and the case reds. The report's ablation (rowKeysWouldOutrankSchemaPolicy forced false) reds it at :165. ✓
  • No assertion is loosened. The three asserts after the wait (Opportunity Name in, Amount out, Id out) are unchanged, and the CONTROL case is untouched. ✓
    The premise is reproduced, not only read: with getObjectSchema delayed 300 ms the old case fails on main 0b539b6a with CI's exact assertion, and the new head passes 3 of 3. Fixes #37972 is right.

Face. skip-changeset carries @object-ui/plugin-list for this one file. The package publishes dist, README.md, CHANGELOG.md and LICENSE, and its tsconfig excludes **/__tests__/**, so nothing it ships changes and the skip holds. CI at this head: 39 success · 18 expected skip · 0 failed · 0 pending.

Deviation. The session ran at effort high against the claim's medium: accepted, it changes nothing in the diff.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-27T14:33Z · zone o3-ux (seat card thread)
Head-sha: db08348070c1e1cd57a6f50af9595be81f39dd86

  • L1 ACCEPT at this head: 7220869621 (L1-a). It meets all three acceptance points: the case waits for the object-schema header set, the ablation (rowKeysWouldOutrankSchemaPolicy forced false) reds it, and no assertion is loosened. The skip-changeset holds because __tests__ is excluded from dist. Accepted deviation: the session ran at effort high against the claim's medium (claim 7219890222).
  • check-governed-merges.mjs --pr 37981: NOT governed, +8 / −5.
  • Checks at this head: 39 success, 18 expected skip, 0 failed, 0 pending; mergeable_state clean.
  • landing-k.mjs can't answer for a ui-only head (no Test Core shard ran, so no affected-set base was printed). Read by hand: merge base 0b539b6a, 12 first-parent commits on main since, under 15. None touch ui/packages/plugin-list or ui/packages/plugin-grid. No locale pack.
  • After merge: PR fix(metadata-protocol)!: refuse the bare publish and rollback of a name only disabled packages hold, with or without a package-less row (#37851) #37948 updates its branch onto the new main, so Test UI (13/16) runs on a merge commit with this fix.
  • Action: ready for review and auto-merge (queue).

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

2 participants