Repository navigation
test(plugin-approvals): boot the #38838 publish-refusal describe kernel once - #39002
Merged
objectstack-fleet[bot] merged 1 commit intoDec 1, 2026
Merged
Conversation
…rnel once The first case paid a cold kernel.bootstrap() inside vitest's 5 s default and timed out on loaded CI shards. One beforeAll(boot, 30_000) with an afterAll shutdown; the cases share it safely (own flow names, refusals write nothing, the control's row is read by no other case). Same shape as this describe in PR #38970. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
Contributor
📓 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): |
Contributor
Author
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39002 (#38976) · head 席位核对 · ACCEPTACCEPT · repo:objectstack@os-justin · head
|
objectstack-fleet
Bot
deleted the
claude/issue-38976-flow-route-shared-boot
branch
December 1, 2026 21:35
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #38976
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/plugins/plugin-approvals/src/flow-route.integration.test.ts, the describe "[#38838] a fan-out to two approval steps is refused at publish" only: the kernel boot moves from inside each case (await boot()in cases 1, 2 and 4,afterEachshutdown) to onebeforeAll(() => boot(), 30_000)with anafterAllshutdown. The now-unusedafterEachimport is dropped. The first case was paying a coldkernel.bootstrap()inside vitest's 5 s default and timed out on loaded CI shards (4,383 to 5,235 ms measured on CI). Asserted behaviour is unchanged.Sharing is safe, checked by reading: each case saves under its own flow name (
fan_out_active,fan_out_draft,fan_out_conditional) and reads back only that name; the two refusals write nothing; the engine case uses no kernel; the control's publish is the one write, and no other case reads that row.The text of this describe is byte-identical to the same describe on PR #38970's branch (
git diff origin/claude/issue-38875-conditioned-edge-pause-dropshows no hunk inside it), so merging main into #38970 after this lands is trivial.Tests
Per-case timings, verbose reporter, shared box
Main (
38ab473c3e), before:This branch, after (the boot now lands in
beforeAll, outside every case's 5 s budget):Whole file: 24/24 passed before and after.
Package suite and typecheck
pnpm --filter @objectstack/plugin-approvals test: Test Files 144 passed (144), Tests 2275 passed (2275)pnpm --filter @objectstack/plugin-approvals typecheck:check:test-typecheck: OKAcceptance notes
files[]output. Built JS dist: 0 hits for the test's own strings, positive controlApprovalsServicePlugin2 hits. Labelskip-changeset.plugin-approvalsbuild's DTS step failed on@objectstack/spec/contractsdeclarations (a spec dist state on this shared box). It does not touch this diff and the JS emit used for the grep above succeeded.Verification
Read first: the describe's
beforeAll/afterAllblock (the only hunk that carries risk).Two-minute check:
pnpm --filter @objectstack/plugin-approvals exec vitest run --reporter=verbose src/flow-route.integration.test.tsshows 24 passed, and the first #38838 case finishes in tens of milliseconds instead of about a second.🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2