Skip to content

fix(devcontainer): raise the process limit of the container - #3730

Merged
dan-petty merged 3 commits into
mainfrom
fix/3722-devcontainer-pids-limit
Nov 6, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/3722-devcontainer-pids-limit

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The devcontainer had the default limit of 2048 processes and threads of rootless Podman. A burst of VS Code file searches filled it, and the tools of agent sessions failed. runArgs now holds --pids-limit=8192, and a test fails when the value is absent or under 4096. CONTRIBUTING.md states the limit. The limit takes effect only after a person rebuilds the container.

Closes #3722

Change: openspec/changes/archive/2026-11-06-3722-devcontainer-pids-limit/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/devcontainer The DevContainer, its image and its features labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for the pull request.

  • Fail-to-pass run (devops ci fail-to-pass --base origin/main): 1 failed on base, test_the_devcontainer_process_limit_leaves_room_for_a_burst_of_searches ("runArgs holds no --pids-limit"). The other 2 tests of the file passed on base.
  • Full devops ci run: all rows pass except test (and coverage, which needs test). The failures in test are the known host failures tests/commands/test_devcontainer_install_tools_dry_run.py and tests/ai/test_tool_executor_contract.py. The test row took 8m 52s, the known fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593.
  • No comment in devcontainer.json: tests/invariants/test_devcontainer_config.py and tests/ai/benchmark/test_k8s_llm_gateway.py read it with json.loads, which refuses comments. CONTRIBUTING.md section 2 holds the measure.
  • files.watcherExclude for .data is left out. No measure shows that it stops the scans: the issue could not reproduce the scans on an idle host, and a burst test on this loaded host could fill the limit of 2048 and kill the session. The setting needs a measure first.
  • The template src/devops_cli/templates/devcontainer.json.j2 and .devcontainer/image/devcontainer.json stay as they are.

A person must rebuild the container (Dev Containers: Rebuild Container) for the limit to apply. cat /sys/fs/cgroup/pids.max then shows 8192. A restart or reload does not apply it.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 04:44
@dan-petty
dan-petty merged commit 61459d8 into main Nov 6, 2026
22 checks passed
@dan-petty
dan-petty deleted the fix/3722-devcontainer-pids-limit branch November 6, 2026 04:45
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.64.3](v0.64.2...v0.64.3)
(2026-11-06)


### Bug Fixes

* **devcontainer:** raise the process limit of the container
([#3730](#3730))
([61459d8](61459d8))
* **roadmap:** leave out a golden case with no commit
([#3728](#3728))
([17666eb](17666eb))
* **roadmap:** the plan check refuses two tasks that state the same work
([#3628](#3628))
([fe37f21](fe37f21))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/devcontainer The DevContainer, its image and its features type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(devcontainer): raise the process limit of the container

1 participant