Update builtins to use step-runner BuiltinContext interface
Summary
Companion MR for step-runner!475 (merged) which introduces a BuiltinContext interface to isolate builtin functions from step results.
Updates script_legacy and concrete builtins to accept runner.BuiltinContext instead of *runner.StepsContext:
script_legacy.Run— replacedstepsCtx.View().VarswithbuiltinCtx.GetJobVars()concrete.Run— updated signatureconcrete/run.New— updated to acceptrunner.BuiltinContext, replacedstepsCtx.View().VarswithbuiltinCtx.GetJobVars()
Note: go.mod currently uses a local replace directive pointing to the step-runner branch. Once step-runner!475 (merged) is merged, update the require to the released version and remove the replace.
Test plan
-
go build ./...succeeds -
go test ./functions/... ./commands/steps/...all pass