test(runtime): stabilize standalone-stack RBAC test cold-start timeout#2145
Merged
Conversation
The first createStandaloneStack call cold-loads heavy deps (objectql/metadata/ driver-memory) via dynamic import, which on a cold CI worker (Node 20) exceeded vitest's default 5s test timeout — failing only the first case. Move the one-time boot into a beforeAll with a 60s timeout and have the assertion cases read the shared result (also removes 4 redundant boots). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 17 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
This was referenced Jun 22, 2026
Closed
Closed
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.
补 #2133 漏带的超时修复。
核心修复(createStandaloneStack 浮出 permissions/roles,让 artifact 启动路径 honor app 默认 profile,ADR-0056 D7)已随 #2133 进入 main。但 #2133 带的是
standalone-stack.test.ts的早期版本——其首个用例在冷 CI(Node 20)上首次 createStandaloneStack 冷加载重型依赖会超过 vitest 默认 5s 超时,导致 flaky 失败(见原 #2132 的 CI:401 中 1 failed,Test timed out in 5000ms)。本 PR 把一次性 boot 移入
beforeAll(60s 超时),断言用例复用结果(并去掉 4 次重复 boot)。test-only,本地 5/5 通过。🤖 Generated with Claude Code