Skip to content

test(cli): nightly e2e fixtures open their object from app navigation - #38534

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38493-nightly-cli-fixtures
Nov 29, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-38493-nightly-cli-fixtures

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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 navigation opens 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: the stack() and packageCarried() 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.ts warn 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, --strict exit 0 and lint passed: true / failing: 0 went red.

The before log shows all three rules: 6 lines naming app-navigation-empty, 14 naming object-unreachable-from-navigation and 2 naming object-without-view. The third rule hit the jsx-gate member 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, after pnpm turbo run build --filter='@objectstack/cli^...'):

OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 src/commands/validate-json-strict-exit.e2e.test.ts test/jsx-gate-manifest-notice.e2e.test.ts test/validate-json-warning-parity.e2e.test.ts
  • Before (the three files restored to merge base 545a4fa, everything else at the head): Test Files 3 failed (3), Tests 15 failed | 41 passed (56). That matches the 15 failures in run 46229659209.
  • After: Test Files 3 passed (3), Tests 56 passed (56).
  • pnpm --filter @objectstack/cli typecheck: exit 0. Both legs compile these files (src/** through tsconfig.json, test/** through tsconfig.test.json).

Acceptance notes

  • Other *.e2e.test.* / *.live.test.* files that declare apps with no navigation (8 under packages/cli/test/: artifact-pinned-boot, three i18n-extract-*, serve-app-anchored-optional-import, serve-cluster-driver-diagnosis, serve-runtime-assets-branding-warning, start-signal-forwarding) run serve, start or i18n, never validate, lint or build. 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 --commands on head 1af5b3e: 55 commands. 51 exit 0. 4 exit 3 (PREREQUISITE NOT MET, the workspace dist/ 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 --test on the three-dot file list: NOT governed.
  • overlap-check: VERDICT clean exit 0.
  • No changeset. Test files only, and neither package build ships them (tsconfig.build.json excludes src/**/*.test.ts, and test/ is outside files[]), so this takes skip-changeset.

Two-minute check: run the command above. Expected: Tests 56 passed (56).

Read first: packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts stack() (the one fixture whose navigation shape changed rather than grew).


Generated by Claude Code

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
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 29, 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 63acc6cde5fec499ea2077896b62fa9b3fdd2cdc → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head · 2026-11-29T08:28Z · area o5-fleet

  • Head-sha: 1af5b3eda02109714c5e7cd67bb4e4bf2894e453
  • Fixes #38493. Fixtures only, in three nightly-tier CLI e2e suites. Each clean fixture's app now opens its object from navigation, and the object declares a listViews.all grid. The jsx-gate html-page members keep their page entry and gain the object entry beside it. No rule, assertion, test name or skip changes. os-dev report 7252797873 on nightly-tiers: red on main #38493.
  • Cause: three app-shell rules from fix(lint)!: publish-time checks for views, dashboards and the app shell that save and do not work #38107 (app-navigation-empty, object-unreachable-from-navigation, object-without-view; the card named two) raised warnings on fixtures that assert a zero-advisory or one-named-finding baseline. Local nightly run of the three files: before, 15 failed and 41 passed (matches run 46229659209); after, 56 passed.
  • 3 files, +51 / −13. Checks at that head: 39 success · 21 expected skip · 0 failed · 0 pending. mergeable_state clean.
  • Gates: 55 derived, 51 run, 4 NOT MEASURED locally (exit 3, workspace dist not built: check:dual-build-cjs-loads, check:i18n, check:i18n-coverage, check:i18n-walk-parity). CI ran them green.
  • Landing tier: not governed (Tier S), and no path-derived mandate, so the review face is TIER_DEFAULT. The area lands it after L1 and the in-seat review below.
  • Owed: L1.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 1af5b3eda02109714c5e7cd67bb4e4bf2894e453
Local-runs: none
Scope: packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts + packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts + packages/cli/test/validate-json-warning-parity.e2e.test.ts
Security-touching: no
Rule-change-verified: none

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; dispatch-gates --tier on the paths (no path-derived mandate). This is an in-seat read at TIER_DEFAULT: no published schema, governed rules text or accept set is in the diff.

① Derived judgments

  • Every hunk is fixture source inside a test file, or a doc comment above one. Each zero-warning fixture gains the same two things: a navigation entry of type: 'object' for the fixture object, and listViews: { all: { type: 'grid', columns: ['title'] } } on that object. These are the inputs the three app-shell rules read, so the fixtures become clean under them.
  • jsx-gate-manifest-notice: the no-pages member already opened the object and now also has the list view. The html-page members now carry the object entry before the page entry, so the object is reachable in every member. The page entry still exists where a page does, so the notice the suite measures is still raised by the page alone.
  • No assertion, expected count, test name, skip or tier marker changes. The fixtures are brought back to the baseline the assertions state; no assertion is moved to fit new findings.

② Semver level

No package source changes. Test files are not published, so no changeset is owed (skip-changeset label; Check Changeset green).

③ Boundary flags

④ Design judgment

No must-fix, no should-fix, no nit.

Implemented-by: claude/issue-38493-nightly-cli-fixtures
Reviewed-by: session_01FEkQ5oPfjnm2yWHEwkiYrn

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对 — L1 ACCEPT · head 1af5b3e · 2026-11-29T08:30Z

Verdict: ACCEPT at 1af5b3eda0. At the head: 39 success, 0 failed, 0 pending, mergeable clean.

The PR changes three test files, +51/−13. Tier S, not governed. The declarations read Clause-②: no and Metadata-protocol: none.

The changeset flag is not a defect. @objectstack/cli's files[] is dist, README.md and CHANGELOG.md. test/** is outside it. The two src/**/*.e2e.test.ts files are excluded from the build, according to the body's reading of tsconfig.build.json.

What fails is a premise in the tests, and the fix restores it. These fixtures are each test's zero-warning control: under --strict, nothing but the thing under test may move the exit status. The publish-time app-shell rules that #38107 added raise three warnings on them:

  • app-navigation-empty
  • object-unreachable-from-navigation
  • object-without-view

All three rules are on main, in packages/lint/src/validate-app-shell-reach.ts:60-61 and rule-explanations.ts:1597-1628. --strict promotes those warnings.

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 jsx-gate page variant, the object entry now sits beside the page entry, not in its place. So the notice is still the only advisory that can move the exit status.

This evidence is local only, and that is unavoidable. These *.e2e.test.* files run only in the nightly tier (OS_TEST_TIERS=nightly), never on a PR or in the queue. The PR's own green therefore says nothing about them. The body's run is the only evidence:

  • before, the three files at the merge base, everything else at the head: Tests 15 failed | 41 passed (56). That matches the 15 failures of nightly run 46229659209 that nightly-tiers: red on main #38493 records.
  • after: Tests 56 passed (56).

That before/after pair is the right ablation for a fixture fix.

Fixes #38493 is acceptable. The card names exactly these three files, and the remedy follows its rule: "fix what it names", never skip. The nightly does not close the card on green, so a PR has to close it. The proof on main comes from the next nightly, due before 05:29 UTC tomorrow (the card's "next by" line). If that run still names any of these files, it re-files under the same marker.

The residue sweep. Eight other e2e/live files under packages/cli/test/ declare apps with no navigation. The body explains why they are fine: they drive serve, start or i18n, where these rules do not run, and none of them is on the failing list. That is a checkable no-defect reason.

Landing (area, Tier S): #38493 closes on merge. The area should look at the next nightly.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Landing · 2026-11-29T08:31Z · area o5-fleet · Head-sha 1af5b3eda02109714c5e7cd67bb4e4bf2894e453

  • Tier S: check-governed-merges --pr 38534 reads NOT governed (0 of 3 paths hit the register). 3 test files, +51/−13, under 3000 changed lines. Clause-②: no, Metadata-protocol: none, skip-changeset.
  • Review at TIER_DEFAULT (no path-derived mandate): 7253139187 PASS on this head, no must-fix or should-fix.
  • L1-a: ACCEPT 7253155441 on this head. Green head 7253132023: 39 success · 21 expected skip · 0 failed, mergeable_state clean.
  • These suites run only in the nightly tier, so the proof on main is the next nightly. If it still names any of these files, it re-files under the same marker.
  • Fixes #38493: the card closes on merge. This stroke readies the PR and arms auto-merge, as the seat's standing rule for Tier S PRs allows.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 29, 2026 08:31
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit 97fad97 Nov 29, 2026
61 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38493-nightly-cli-fixtures branch November 29, 2026 08:57
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