Skip to content

preserve container worker import path - #224

Merged
pmbstyle merged 1 commit into
mainfrom
hotfix/docker-worker-pythonpath
Aug 13, 2026
Merged

preserve container worker import path#224
pmbstyle merged 1 commit into
mainfrom
hotfix/docker-worker-pythonpath

Conversation

@pmbstyle

Copy link
Copy Markdown
Owner

Summary

  • stop forwarding the host PYTHONPATH into Docker workers
  • preserve the worker image's /app/src import path when the project is not installed into the image environment
  • lock the launcher and image contracts with focused regression coverage

Root cause

The dependency-only worker image correctly defines PYTHONPATH=/app/src, but the launcher replaced it with the host interpreter path through docker run -e. Fresh worker containers therefore could not import the package entrypoint.

Validation

  • 37 focused launcher, image-contract, and fingerprint tests
  • full Python test suite (one expected Windows-only skip)
  • Ruff, Black, MyPy, and diff checks
  • direct import smoke against the rebuilt worker image

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@pmbstyle, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 11 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 reviews.

How do review 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 refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0c1a014f-83b4-4e5e-a511-649fd4ffc194

📥 Commits

Reviewing files that changed from the base of the PR and between 4b1f36d and 8bc95f6.

📒 Files selected for processing (3)
  • src/octopal/runtime/workers/launcher.py
  • tests/test_worker_image_contract.py
  • tests/test_worker_launcher_isolation.py

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pmbstyle
pmbstyle merged commit 2baa8c8 into main Aug 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant