Repository navigation
fix(ci): pass python index into image build - #642
Conversation
Set an explicit pip index and timeout for Woodpecker lint/smoke steps, and pass pip/uv index build args into the Kaniko application image build so Dockerfile RUN steps can resolve Python packages in the o6n CI network. Verification: - woodpecker-cli lint .woodpecker/ci.yml - uv run ruff check src/coding_agent/observability/ src/coding_agent/ui/http_server.py src/coding_agent/ui/session_manager.py tests/ui/test_server_compat_imports.py tests/coding_agent/test_agent_observability.py tests/coding_agent/test_bee_template_pack_smoke.py - git diff --check
|
Warning Review limit reached
More reviews will be available in 55 minutes and 43 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe CI workflow and builder image now carry pip and uv index settings through job environment variables, build arguments, and Dockerfile environment configuration. ChangesPackage index settings propagation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@coding-agent/Dockerfile`:
- Around line 27-31: The Dockerfile’s ENV block is persisting package-index URLs
into the final image, which should not happen. Remove PIP_INDEX_URL and
UV_DEFAULT_INDEX from the image-wide ENV settings and keep them build-scoped
instead, passing them only into the specific RUN steps that need package
installation. Use the existing Dockerfile ENV/RUN sections to locate the change
and preserve PYTHONDONTWRITEBYTECODE, PYTHONUNBUFFERED, and PIP_DEFAULT_TIMEOUT
as image environment values.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 08e0609d-7c2f-4d69-aafb-79c5d6cdaba9
📒 Files selected for processing (2)
.woodpecker/ci.ymlcoding-agent/Dockerfile
Avoid persisting PIP_INDEX_URL and UV_DEFAULT_INDEX in the built image environment. Keep the index values as build args and pass them only to package-install RUN steps. Verification: - woodpecker-cli lint .woodpecker/ci.yml - uv run ruff check src/coding_agent/observability/ src/coding_agent/ui/http_server.py src/coding_agent/ui/session_manager.py tests/ui/test_server_compat_imports.py tests/coding_agent/test_agent_observability.py tests/coding_agent/test_bee_template_pack_smoke.py - git diff --check
Summary
Verification
Context
Woodpecker #145/#146 failed before image build because CI could not resolve hatchling from PyPI. A rerun with PIP_INDEX_URL passed lint/smoke, then Kaniko failed inside Dockerfile RUN pip install uv because the index setting was not passed into the Docker build environment.
Summary by CodeRabbit