Repository navigation
test(cli): nightly e2e fixtures open their object from app navigation - #38534
Conversation
The clean fixtures in three nightly-tier CLI suites declared an app with no navigation entry, or an object no entry opened as a list, so the app-shell publish-time rules raised warnings on them and the zero-warning controls, --strict exit 0 and lint passed pins went red. Each fixture now opens its object from navigation and gives it a list view. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
…ghtly-cli-fixtures
📓 Docs Drift CheckNothing 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): |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Final green head · 2026-11-29T08:28Z · area o5-fleet
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Contract reviewServed-tier: Read for this record: the CI check-runs on the head (39 success, 21 skipped, 0 failed); the full three-dot diff to main (3 files, +51 −13); the os-dev report 7252797873; ① Derived judgments
② Semver levelNo package source changes. Test files are not published, so no changeset is owed ( ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix, no nit. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对 — L1 ACCEPT · head 1af5b3e · 2026-11-29T08:30ZVerdict: ACCEPT at The PR changes three test files, +51/−13. Tier S, not governed. The declarations read The What fails is a premise in the tests, and the fix restores it. These fixtures are each test's zero-warning control: under
All three rules are on Each control now declares an app whose navigation opens its object, and the object gets one grid list view. That is the smallest stack the three rules accept. Nothing is renamed, skipped or deleted, and no assertion is loosened: the edits sit inside the fixture sources only. The comment above each control says why. In the This evidence is local only, and that is unavoidable. These
That before/after pair is the right ablation for a fixture fix.
The residue sweep. Eight other e2e/live files under Landing (area, Tier S): #38493 closes on merge. The area should look at the next nightly. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Landing · 2026-11-29T08:31Z · area o5-fleet · Head-sha
|
Requested by Leehom · project thread
Fixes #38493
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Test fixtures only, in the three nightly-tier CLI suites the card names. Each fixture that is meant to raise no advisory now declares an app whose
navigationopens its object ({ id: 'nav_ticket', type: 'object', label: 'Tickets', objectName: ... }) and gives that object a list view (listViews: { all: { type: 'grid', columns: ['title'] } }). No rule, assertion, test name or skip changed.packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts: the clean control, the conversions minimal pair and the severity minimal pair (all three copy one object and app).packages/cli/test/validate-json-warning-parity.e2e.test.ts: the clean control.packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts: thestack()andpackageCarried()builders. The html-page members already had a navigation entry, but it opened only the page, and an html page names no object, so the object was unreachable. Every member now carries the object entry, with the page entry beside it where there is a page.Why
The publish-time app-shell rules that d578952 (#38107) added in
packages/lint/src/validate-app-shell-reach.tswarn on an app with no navigation entry (app-navigation-empty), on an object no entry opens (object-unreachable-from-navigation), and on an object opened as a list with no list view (object-without-view). The rules are intended behaviour. The fixtures predate them, and these suites are*.e2e.test.*files, which run only in the nightly tier (OS_TEST_TIERS=nightly), so #38107's own PR checks never ran them. So the "nothing to warn about" controls,--strictexit 0 andlintpassed: true / failing: 0went red.The before log shows all three rules: 6 lines naming
app-navigation-empty, 14 namingobject-unreachable-from-navigationand 2 namingobject-without-view. The third rule hit thejsx-gatemember with no pages, whose navigation already opened the object but with no list view. That rule comes from the same commit and the same validator file. No failure had any other cause.Per test, nothing was out of scope: no failing test counts findings that these rules add on purpose. Every failing test asserts a zero-advisory baseline (exit 0 under
--strict, an empty warning set,failing: 0, or exactly one finding of a named kind). In each one, the right fix was to make the baseline clean again, not to widen the count.Tests
Before / after, nightly tier, the three files (head 1af5b3e, origin/main merged)
Command (run under
scripts/pm/os-verify-lock.sh, afterpnpm turbo run build --filter='@objectstack/cli^...'):Test Files 3 failed (3),Tests 15 failed | 41 passed (56). That matches the 15 failures in run 46229659209.Test Files 3 passed (3),Tests 56 passed (56).pnpm --filter @objectstack/cli typecheck: exit 0. Both legs compile these files (src/**throughtsconfig.json,test/**throughtsconfig.test.json).Acceptance notes
*.e2e.test.*/*.live.test.*files that declare apps with no navigation (8 underpackages/cli/test/:artifact-pinned-boot, threei18n-extract-*,serve-app-anchored-optional-import,serve-cluster-driver-diagnosis,serve-runtime-assets-branding-warning,start-signal-forwarding) runserve,startori18n, nevervalidate,lintorbuild. The rules do not run there, and none of these files is in the nightly's failing list. No finding.Verification
Gates
node scripts/pm/dispatch-gates.mjs --commandson head 1af5b3e: 55 commands. 51 exit 0. 4 exit 3 (PREREQUISITE NOT MET, the workspacedist/is not built):check:dual-build-cjs-loads,check:i18n,check:i18n-coverage,check:i18n-walk-parity. These are NOT MEASURED locally and left to CI: they read built output, which no file in this diff feeds.dispatch-gates --ran:55 derived famil(ies) accounted for — 51 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3).check-governed-merges --teston the three-dot file list: NOT governed.overlap-check:VERDICT clean exit 0.tsconfig.build.jsonexcludessrc/**/*.test.ts, andtest/is outsidefiles[]), so this takesskip-changeset.Two-minute check: run the command above. Expected:
Tests 56 passed (56).Read first:
packages/cli/test/jsx-gate-manifest-notice.e2e.test.tsstack()(the one fixture whose navigation shape changed rather than grew).Generated by Claude Code