Skip to content

Preserve error from ManagedProcess - #555

Merged
dcantah merged 1 commit into
apple:mainfrom
JaewonHur:preserver-managed-process-error
Feb 24, 2026
Merged

dcantah merged 1 commit into
apple:mainfrom
JaewonHur:preserver-managed-process-error

Conversation

@JaewonHur

Copy link
Copy Markdown
Contributor

This PR changes ManagedProcess to throw its own error together with vexec error.

apple/container#1250 reports intermittent failure of CI tests, where the system logs report failing agent.startProcess due to the "read ack pipe" from vmexec.

This "read ack pipe" is thrown when writing end of ackPipe is closed (ExecCommand.swift#L88) as EOF is returned from reading ackPipe.

It again means ManagedProcess throws an error after forking the vmexec process (ManagedProcess.swift#L165).

However, current ManagedProcess doesn't throw its error if errorPipe has data, which, i.e., "read ack pipe", is actually not the root cause in this case (ManagedProcess.swift#L244).

@dcantah
dcantah merged commit a16dee6 into apple:main Feb 24, 2026
3 checks passed

@Zolza448914 Zolza448914 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.

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