fix: migrate pids_limit to deploy.resources.limits.pids#439
Conversation
Newer Docker Compose (v2.32+) rejects top-level `pids_limit` when `deploy.resources.limits` is also present, causing DAST CI failure. Move to the canonical `deploy.resources.limits.pids` location.
Same pids_limit to deploy.resources.limits.pids migration for the development compose file (missed in previous commit).
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a compatibility issue with recent Docker Compose versions by updating how process ID limits are configured. It migrates the deprecated top-level Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughMigrate Docker Compose PID settings from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
📝 Coding Plan
Comment |
There was a problem hiding this comment.
Code Review
This pull request migrates the deprecated pids_limit to deploy.resources.limits.pids across all relevant Docker Compose files. The changes are applied consistently to the compose template, golden test files, and the development compose.yml. This correctly addresses the described issue with newer Docker Compose versions. The implementation is correct and I have no further comments.
Greptile SummaryThis PR migrates the deprecated top-level
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 770b7c0 |
| limits: | ||
| memory: 4G | ||
| cpus: "2.0" | ||
| pids: 256 |
There was a problem hiding this comment.
Docs still reference pids_limit for CIS 5.28
docs/security.md (line 115) was not updated as part of this PR. It still documents the old key:
| **CIS 5.28** | `pids_limit` per container (256 backend, 64 web) |
It should be updated to reference the new deploy.resources.limits.pids field so the security documentation stays in sync with the actual compose files. The resource limits note on the line immediately below (line 117) also only mentions memory and CPU — pids could be added there too.
Prompt To Fix With AI
This is a comment left during a code review.
Path: cli/internal/compose/compose.yml.tmpl
Line: 35
Comment:
**Docs still reference `pids_limit` for CIS 5.28**
`docs/security.md` (line 115) was not updated as part of this PR. It still documents the old key:
```
| **CIS 5.28** | `pids_limit` per container (256 backend, 64 web) |
```
It should be updated to reference the new `deploy.resources.limits.pids` field so the security documentation stays in sync with the actual compose files. The resource limits note on the line immediately below (line 117) also only mentions memory and CPU — `pids` could be added there too.
How can I resolve this? If you propose a fix, please make it concise.🤖 I have created a release *beep* *boop* --- ## [0.2.4](v0.2.3...v0.2.4) (2026-03-15) ### Bug Fixes * attach cosign signatures and provenance bundle to release assets ([#438](#438)) ([f191a4d](f191a4d)) * create git tag explicitly for draft releases ([#432](#432)) ([1f5120e](1f5120e)) * docker healthcheck, CI optimization, and container hardening ([#436](#436)) ([4d32bca](4d32bca)) * ensure security headers on all HTTP responses ([#437](#437)) ([837f2fc](837f2fc)) * make install scripts usable immediately without terminal restart ([#433](#433)) ([b45533c](b45533c)) * migrate pids_limit to deploy.resources.limits.pids ([#439](#439)) ([66b94fd](66b94fd)) ### Refactoring * redesign release notes layout ([#434](#434)) ([239aaf7](239aaf7)) ### Maintenance * **site:** replace hero CTA with license link and scroll arrow ([#440](#440)) ([56af41c](56af41c)) * **web:** adopt @vue/tsconfig preset ([#435](#435)) ([7d4b214](7d4b214)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [0.2.4](v0.2.3...v0.2.4) (2026-03-15) ### Bug Fixes * attach cosign signatures and provenance bundle to release assets ([#438](#438)) ([f191a4d](f191a4d)) * create git tag explicitly for draft releases ([#432](#432)) ([1f5120e](1f5120e)) * docker healthcheck, CI optimization, and container hardening ([#436](#436)) ([4d32bca](4d32bca)) * ensure security headers on all HTTP responses ([#437](#437)) ([837f2fc](837f2fc)) * make install scripts usable immediately without terminal restart ([#433](#433)) ([b45533c](b45533c)) * migrate pids_limit to deploy.resources.limits.pids ([#439](#439)) ([66b94fd](66b94fd)) * use cosign --bundle flag for checksums signing ([#443](#443)) ([19735b9](19735b9)) ### Refactoring * redesign release notes layout ([#434](#434)) ([239aaf7](239aaf7)) ### Maintenance * **main:** release 0.2.4 ([#431](#431)) ([63b03c4](63b03c4)) * remove stale v0.2.4 changelog section from failed release ([#446](#446)) ([769de10](769de10)) * reset version to 0.2.3 for re-release ([#444](#444)) ([8579993](8579993)) * **site:** replace hero CTA with license link and scroll arrow ([#440](#440)) ([56af41c](56af41c)) * **web:** adopt @vue/tsconfig preset ([#435](#435)) ([7d4b214](7d4b214)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
pids_limittodeploy.resources.limits.pidsin all compose filespids_limitanddeploy.resources.limitsare presentdocker/compose.yml, CLI compose template, and golden test filesTest plan
go test ./...) — golden file comparisons verify correct YAML outputReview coverage
Quick mode — automated checks only (infra-only change, no source code modified).