Repository navigation
fix(op): Variadic reflection, choose executor branch isolation (Phase 6a) - #219
Merged
Merged
Conversation
… 6a) Variadic parameter support for planned and action execution paths: - action_reflect.go: strip '*' prefix from param names, add callMethod() that uses CallSlice for variadic methods instead of Call - planned_reflect.go: strip '*' prefix in buildPlannedBridge so starlark.UnpackArgs matches keyword arguments correctly Choose executor branch phase isolation: - phase.go: add Branch flag to Phase struct - plan_root.go: mark choose-branch phases with Branch=true - executor.go: skip Branch phases in forward phase list; populate ctx.Results so flow actions can access parent execution results - choose.go: seed branch results from ctx.Results for cross-phase promise resolution (fixes Output captured in lambda closures) - runner.go: wrap unphased nodes into main phase even when branch phases exist Tests fixed (t.Skip removed): - TestFileJoin — variadic []string now works through planned receiver - TestChooseNotExists — branch no longer executes unconditionally - TestIsFile — cross-phase Output references resolve correctly
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.
Summary
action_reflect.gostrips*prefix from param names and usesCallSlicefor variadic methods;planned_reflect.gostrips*prefix sostarlark.UnpackArgsmatches keyword arguments
Branch=trueare skipped by thetop-level executor; choose action seeds branch results from
ctx.Resultsfor cross-phase promiseresolution; testrunner wraps unphased nodes into a main phase
TestFileJoin,TestChooseNotExists,TestIsFileTest plan
make build— all 3 binaries compilemake test— all tests passparts=["a","b","c.txt"]