Repository navigation
Move the toolchain passes to Effect - #312
Merged
Merged
Conversation
Step toolchain of #298 (child of #290): the dependency methods, the toolchain report and outdated lookups, and the Bun bootstrap are Effects with typed failures. One deadline covers each upstream request and its body; the Bun bootstrap of one engine context runs once, in an uninterruptible region whose folder-removal failure is a typed BunInstallFolderFailed; modes, ompSync, and ompPlugins call the passes directly; versionReading is gone. A spawned toolchain outdated case proves the cache read with every proxy variable at a listener. Verified: bun x --no-install vitest run (unit and commands rows of #298); bun run golden:dryrun; bun run golden:mutation; bun run check:types; bun run lint; bun run check
Step guidance of #298: the toolchain, host-platform, and dispatch guidance names the Effect forms, and the skill source ranges follow the moved code. Verified: bun x --no-install vitest run cli/test/unit/skillMetadata.test.ts
Step repairs of #298: the Bun temporary folder is made by the callback form of mkdtemp with the original prefix, so the OS resolves TMPDIR; the bounded probe keeps its receiver; the spawned toolchain cases skip the env file and have a child deadline; new cases cover a folder-creation failure and a spawned ensure bun under a symlinked TMPDIR; the guidance names the Bun bootstrap lock test, the mutationRegion signal deferral, and the version reader limits. Verified: bun x --no-install vitest run (unit and commands rows of #298); bun run check:types; bun run lint; bun run format:check
Step repairs-2 of #298: the spawned ensure bun case runs with a fixture-only PATH and builtin-only stubs, records each staging folder in its own file, ends the CLI process group on expiry, and runs on Linux and macOS only; the sync guidance says that a synchronous folder removal delays the signal handler. Verified: bun x --no-install vitest run (unit row of #298, 200 tests); bun run check:types; bun run lint; bun run format:check
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.
Plan run: #298 Move the toolchain passes to Effect
Pull request: this one. Checks:
Full CIrequested. Reviewed head:c41d9d7d.What changed
probe,version,path), the toolchain report, and thetoolchain outdatedlookups are Effects with typed failures (cli/src/engine-native/deps.ts,toolchain.ts,services.ts).toolchain.ts).BunInstallFolderFailedwith the original message, and the folder keeps its OS-resolved temporary parent (bun.ts,engineCtx.ts,index.ts,cli/src/engine.ts).modes.ts,ompSync.ts, andompPlugins.tscall the passes directly;versionReadingis gone.Decisions and corrections
Delegated decisions
Reviews
Plan review passed in round 12. Code review passed in round 3.
Open findings: five LOW findings in #311.
Verification
c41d9d7d: all pass;bun run checkpasses (6543 tests). Details in the Verification Results of Move the toolchain passes to Effect #298.Limits and failures
toolchain ensure bunstaging case runs on Linux and macOS only, because Bun ignoresTMPDIRon Windows.Kept resources
After merge
Checklist
bun run checkpassesCloses #298