test(runs): isolate runner tests from ACTL env#252
Conversation
|
Warning Review limit reached
More reviews will be available in 59 minutes and 47 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe ChangesTest Fixture Cleanup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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.
Pull request overview
This PR makes the tests/runs suite deterministic across developer machines and ACTL image environments by clearing inherited pixi/runtime policy environment variables in an autouse test fixture.
Changes:
- Updates the runner test autouse fixture to delete ACTL/runtime pixi policy env vars (
RUNTIME_PIXI,SAMPLEWORKS_ALLOW_RUNTIME_PIXI,SAMPLEWORKS_REQUIRE_PREBUILT_PIXI,SAMPLEWORKS_SKIP_ENV_PREPARE). - Keeps argv-related runner tests deterministic by relying only on
SAMPLEWORKS_FORCE_PIXI=1from the fixture.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Found the remaining environment-dependent failure: on ACTL images where /home/dev/workspace/run_grid_search.py exists, the runner intentionally prefers that synced workspace script, so test_uses_baked_env_python_when_available could see /home/dev/workspace/run_grid_search.py instead of /app/run_grid_search.py. I pushed 6989aa0 to make the tests isolate WORKSPACE_GRID_SEARCH_SCRIPT to a guaranteed-missing temp path. Local lightweight checks passed; full pixi test run is unavailable on my machine because pixi is not installed. |
|
Found the failure in https://github.com/diff-use/sampleworks/actions/runs/26837160368/job/79134059232: |
Summary
Summary by CodeRabbit