fix(ibmcloud): remove PID limits to prevent EAGAIN during heavy builds#856
Open
adrianriobo wants to merge 1 commit into
Open
fix(ibmcloud): remove PID limits to prevent EAGAIN during heavy builds#856adrianriobo wants to merge 1 commit into
adrianriobo wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughConfiguration changes remove container PID limits and systemd task limits for GitLab runners. The GitLab integration script updates Podman and Docker runner settings, while IBM Power and IBM Z templates set ChangesPID and Task Limit Removal
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
On ppc64le (and s390x) runners, compiling Pillow's 60+ C extension files causes ccache->gcc->cc1->as process chains that exhaust the container's cgroup pids.max, producing EAGAIN on fork and posix_spawn failures. Three enforcement layers are now cleared on every GitLab runner setup: - snippet-linux.sh: sets pids_limit = -1 in /etc/containers/containers.conf so Podman does not apply a default ceiling to job containers. - snippet-linux.sh: passes --docker-pids-limit -1 to gitlab-runner register so the Docker executor explicitly removes the pids cgroup on each job container it spawns. - ibm-power/cloud-config, ibm-z/cloud-config: adds TasksMax=infinity to the gitlab-runner.service.d drop-in so the runner daemon's own systemd task limit does not cap its child process tree. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36effd9 to
e25510a
Compare
|
So far, PID issue has not resurfaced, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On ppc64le (and s390x) runners, building wheel packages fails with:
```
ccache: error: Failed to fork: Resource temporarily unavailable
gcc: error: posix_spawn: Operation not permitted
```
Root cause: Pillow compiles 60+ C extension files. Each file spawns a
`ccache → gcc → cc1 → as` process chain (4 processes per file). Running
two concurrent jobs exhausts the container's cgroup `pids.max`, which
Podman inherits from the system default (~2048 on RHEL 9).
Three enforcement layers were all unset, each independently capable of
triggering the failure:
Changes
block in `/etc/containers/containers.conf` (idempotent, covers all DNS
code-path branches); adds `--docker-pids-limit -1` to `gitlab-runner register`
so the Docker executor explicitly removes the pids cgroup on each job container.
`TasksMax=infinity` to the `gitlab-runner.service.d` drop-in.
IBM Z runners to prevent the same failure class on s390x.
Test plan
🤖 Generated with Claude Code