Skip to content

Support running host processes alongside VMs - #482

Merged
edi-oai merged 3 commits into
mainfrom
dev/edi/hostprocess
Sep 2, 2026
Merged

Support running host processes alongside VMs#482
edi-oai merged 3 commits into
mainfrom
dev/edi/hostprocess

Conversation

@edi-oai

@edi-oai edi-oai commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Pitch deck: sidecars, but for VMs.

We also support port-forwarding to these sidecars, provided they listen on the Unix domain socket specified by the ORCHARD_PROCESS_SOCKET.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T22:23:31.120684Z ea997e4 PR opened
🔒 Security Review Completed 2026-09-02T22:27:04.716811Z ea997e4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea997e434f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

defer vm.ConditionsSet().RemoveAll(v1.ConditionTypeRunning, v1.ConditionTypeSuspending)

resource := vm.Resource()
if err := vm.HostProcessSet().Start(ctx, resource.HostProcesses); err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Launch Tart before waiting for host processes

When a configured host process connects to ORCHARD_VM_CONTROL_SOCKET during initialization before opening ORCHARD_PROCESS_SOCKET, startup deadlocks: this call waits for the host-process socket, while the tart run invocation that creates the VM control socket occurs later in this function. After the readiness retries expire, Orchard kills the host process and marks the VM failed without ever launching it. Start Tart concurrently or wait for its control socket before requiring host-process readiness.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is a P1: a host process must open their listener before waiting for VM readiness.

We should probably address this via documentation at some point; keeping things minimal for now to move forward.

@edi-oai
edi-oai merged commit a3e08ff into main Sep 2, 2026
3 checks passed
@edi-oai
edi-oai deleted the dev/edi/hostprocess branch September 2, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants