Pipeline runs use the workspace's directory environment
Resolve the run workspace's environment with workenv (direnv, parent .envrc, mise; same account rule as Claude chats) at run start and resume, and apply it to Pi stage processes, a per-environment Pipelines-owned OpenCode stage service (keyed by a hash of the change, reused across runs, idle ones stopped after PIPELINES_OPENCODE_STAGE_IDLE_TIMEOUT, revived per registration), delivery-gate checks and merges, plain-stage opencode CLI calls and file-change capture git reads. Record the directory, .envrc files, sources and variable names (never values) on the run detail; a blocked .envrc becomes a run warning.
This commit is contained in:
@@ -164,6 +164,9 @@ func main() {
|
||||
// service is stopped only when no stage session is still active on it.
|
||||
defer opencode.StopIdleStageService()
|
||||
defer server.WaitRuns(srv.Handler)
|
||||
// Per-environment stage services (a workspace with its own .envrc) stop
|
||||
// once idle for PIPELINES_OPENCODE_STAGE_IDLE_TIMEOUT.
|
||||
go opencode.RunStageServiceReaper(ctx)
|
||||
go func() {
|
||||
select {
|
||||
case <-signals.Done():
|
||||
|
||||
Reference in New Issue
Block a user