Repository navigation
Open
Description
I have done the following
- I have searched the existing issues
- If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
This happens intermittently in CI. The TestCLIRunInitImage suite runs to completion, and then no additional output appears in the logs (see below), and eventually the action is canceled at 1 hour.
All that's needed to reproduce is to run a PRB, merge, or release build on GH.
Current behavior
The TestCLIRunInitImage suite starts at 2026-02-22 20:20:18.512 and appears to run until 2026-02-22T20:20:21.562Z based on a log search:
% cat ~/Downloads/logs/* | sort | grep initimage | tail -5
2026-02-22T20:20:21.561Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "acquirer": handleContainerExit(id:code:)]: releasing lock
2026-02-22T20:20:21.562Z [debug] com.apple.container APIServer ["acquirer": handleContainerExit(id:code:), "id": testrunwithexplicitdefaultinitimage]: holding lock
2026-02-22T20:20:21.562Z [debug] com.apple.container APIServer ["acquirer": handleContainerExit(id:code:), "id": testrunwithexplicitdefaultinitimage]: releasing lock
2026-02-22T20:20:21.562Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "func": stop(id:options:)]: ContainersService: exit
2026-02-22T20:20:21.562Z [info] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "rc": ExitStatus(exitCode: 137, exitedAt: 2026-02-22 20:20:21 +0000)]: handling container exitThe tests after TestCLIRunInitImage are TestCLIBuildBase. These tests appear to run until the last captured logs at 2026-02-22T20:22:47.300Z:
% cat ~/Downloads/logs/* | sort | tail -10
2026-02-22T20:22:47.281Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "acquirer": startProcess(id:processID:)]: acquiring lock
2026-02-22T20:22:47.281Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "acquirer": startProcess(id:processID:)]: holding lock
2026-02-22T20:22:47.281Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "func": wait(id:processID:)]: ContainersService: enter
2026-02-22T20:22:47.281Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": wait(_:)]: enter
2026-02-22T20:22:47.282Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": startProcess(_:)]: enter
2026-02-22T20:22:47.298Z [debug] com.apple.container RuntimeLinuxHelper ["func": startProcess(_:), "uuid": buildkit]: exit
2026-02-22T20:22:47.298Z [error] com.apple.container RuntimeLinuxHelper ["error": internalError: "failed to start process" (cause: "internal error (13): startProcess: failed to start process: internalError: "vmexec error: internalError: "read ack pipe"""), "route": com.apple.container.sandbox/start, "uuid": buildkit]: route handler threw an error
2026-02-22T20:22:47.299Z [debug] com.apple.container APIServer ["func": startProcess(id:processID:), "id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8]: ContainersService: exit
2026-02-22T20:22:47.299Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "acquirer": startProcess(id:processID:)]: releasing lock
2026-02-22T20:22:47.300Z [error] com.apple.container APIServer ["error": internalError: "failed to start process 40a77656-d4d4-42ab-aae7-90db60d118c8 in container buildkit" (cause: "internalError: "failed to start process (cause: "internal error (13): startProcess: failed to start process: internalError: "vmexec error: internalError: "read ack pipe""")""), "route": containerStartProcess]: route handler threw an errorExpected behavior
Tests should not hang.
Environment
- OS: 26.2
- Xcode: Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
- Container: mainRelevant log output
see aboveCode of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels
Activity
Preserve error from ManagedProcess (#555)
jglogan commentedon Mar 3, 2026
Merged logs, now that we're collecting CI commands:
JaewonHur commentedon Mar 6, 2026
Seems
cgroup.procsis being written bycontainer execbefore the initial process (i.e.,container run) completes setting it up.Tolerate container-builder-shim check fail (#1297)
Tolerate container-builder-shim check fail (apple#1297)