Repository navigation
test(ui-e2e): the Setup navigation auditor set is saved into a package of its own - #39540
Conversation
…e of its own A new metadata item names a writable package (ADR-0070 D1), so the live helper authors (or finds) one fixed e2e package and saves the auditor's permission set into it with ?package=. Claude-Session: https://claude.ai/code/session_01L9qibxRrrjrsQAWAcsbV46 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv L1-a · ACCEPT · #39540 @
Changeset: none; |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxRrrjrsQAWAcsbV46 Landing · 2026-12-04T07:44Z · zone ot-p1 · head
State: ready + auto-merge through the merge queue under the maintainer's standing landing line on seat post #39520 (「复审通过的 PR 座位自己落地」). On MERGED, |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxRrrjrsQAWAcsbV46 Correction · 2026-12-04T07:44Z · landing comment 7405023620 says |
Requested by Tesla · project thread
Fixes #39504
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ui/e2e/live/helpers/setup-nav-39060.tssaved the auditor's permission set throughPUT /api/v1/meta/permission/e2e_setup_auditor_39060with no package. Since ADR-0070 D1 (#39386) that create is refused422 WRITABLE_PACKAGE_REQUIRED, which is the only failure in nightly run 47274663721 (shard-4: 6 of 40 Console live tests, all six in this helper, all at the same line).The helper now authors (or finds) one fixed package,
com.e2e.setupauditor39060, and saves the set into it with?package=. It follows the precedent instudio-detail-save-at-once.spec.ts,studio-editor.spec.tsandstudio-object-designer.spec.ts(POST /api/v1/packageswith anappmanifest), plus the existence readstudio-customize-journey.spec.tsuses (GET /api/v1/packages/:id). The id is fixed rather than stamped because the permission set's name is fixed and six tests in two projects sign the same auditor in: the first author wins, later calls find it, and a parallel install that loses the race (409) is accepted only when the package then reads back as existing. No exemption, skip, rename or deletion: the rule stands and the test names a package.No other
ui/e2e/live/**file fails for this reason in that run: the shard-4 failing list names onlyhelpers/setup-nav-39060.ts.Tests
Before/after against a locally booted showcase (fresh tempdir)
Main's request, no package:
The helper's new sequence, run twice:
The real
signInAuditordriven through Playwright's request context (no browser): two sequential calls and two in parallel all returned a signed-in member (1 passed).Local gates at 305fc6c
pnpm --dir ui run type-check:e2e: exit 0 (--listFilesincludes the helper)pnpm --dir ui exec vitest run --maxWorkers=2 scripts/: 172 files passed, 2 skipped; 5161 tests passeddispatch-gates.mjs --commandsderives: each exit 0;--ranreconciles 15 of 15Acceptance notes
OS_TEST_TIERS=nightly,examples/app-showcase/test/console-live-specs.live.test.ts) was NOT MEASURED here: the container has no Chromium and no Console build. The next nightly onmainis the verdict. The API evidence above shows the save the six tests stopped at now returns 200.ui/e2e/, which no package publishes, soskip-changeset.Verification
Read first:
ui/e2e/live/helpers/setup-nav-39060.ts,authorAuditorPackage(the 409 acceptance is the risky hunk).Two-minute check: boot
pnpm dev -- --fresh -p PORT, sign in as the seeded admin, thenPUT /api/v1/meta/permission/e2e_setup_auditor_39060without?package=. Expect 422. Then repeat the helper's three calls and expect 201 or 200, then 200.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibxRrrjrsQAWAcsbV46