GeezerVison is showing github.com — test(core): isolate project adoption fixture by kitlangton · Pull Request #46009 · anomalyco/opencode
Conversation
kitlangton
commented
Aug 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Why
The project-identity-after-creation integration test exceeded Bun's default five-second deadline in Windows CI while validating #45822. Its two plain prompt admissions use the full live Location map, booting plugin/provider/watcher services that are not part of the project-adoption assertions.
What Changes
Give only that case an explicit projectIt fixture using the existing promptLocationLayer for admission services. Keep real Database, Bus, Project, SessionProjector, SessionStore, and Session implementations, with durable event persistence enabled.
| Boundary |
Before |
After |
| Git and project identity/adoption |
Real implementation |
Same real implementation |
| Plain prompt admission's Location services |
Full live Location bootstrap |
Existing admission-only fixture |
| History, pending inbox, claim, and raw-row checks |
19 assertion sites |
Same body and 19 assertion sites |
| Case registration and budget |
liveIt.live, default five seconds |
projectIt.live, same deadline |
| Shell and clone cases |
Existing live fixtures |
Unchanged |
Scope
One test file, 12 additions and one deletion. No production, dependency, CI-command, deadline, skip, acquisition, or shared-fixture changes. This is a separate baseline-test cleanup, not another change to State-pull #45822. #45970 already owns the Session UI scan issue; #45745 owns disposable acquisitions in this file. Neither is duplicated here.
Verification
# packages/core, with isolated HOME/XDG and credential filtering
RECORD=false bun run test test/session-create.test.ts --rerun-each 10 -t "follows the directory's project identity established after creation"
RECORD=false bun run test test/session-create.test.ts test/project.test.ts test/session-prompt.test.ts
bun typecheck
# repository root
bunx prettier --check packages/core/test/session-create.test.ts
bunx ast-grep scan -c script/ast-grep/effect-simplifications/sgconfig.yml --off=unused-suppression packages/core/test/session-create.test.ts
git diff --check
- Baseline and changed fixture each passed 10 repetitions with 190 assertions and the normal deadline. One paired Mac observation measured 7.31 seconds before and 4.99 seconds after for the entire ten-case run, including startup/Git/cleanup; this is not a Windows benchmark or proof of the CI cause.
- Session-create, Project, and Session-prompt suites: 111 passed, 1 existing skip, 0 failed, 355 assertions across three files.
- Core typecheck, formatting, structural scan, and whitespace checks passed.
- Normal pre-push workspace typechecking passed all 33 tasks, without bypassing hooks.
- GitHub typecheck and the normal Linux/Windows unit and e2e workflow passed for
6ce6d92199. Windows freshly executed Core with a cache miss: 3,540 passed, 293 skipped, 0 failed, 77,526 assertions across 222 files. The project case retains its body, assertions, and default deadline; no duplicate diagnostic workflow or test-budget override was added.
- Bounded source review confirmed required admission services remain available, real project/adoption paths remain exercised, and all assertions and scope lifetimes are preserved.
- The Windows timeout was not reproduced on the Mac. The narrowed fixture is now validated by a successful actual Windows unit run; this does not establish the broader cause of the earlier CI load/deadline failures. The PR remains draft for independent review and has not been merged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Keep real Project and Session persistence coverage while reusing the admission-only Location fixture for plain prompts. Avoid loading unrelated plugin, provider, and watcher services without changing the test body, timeout, or shell fixtures.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|