chore: improve unstract maintenance path#2023
Conversation
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Summary by CodeRabbit
WalkthroughThe PR fixes a bug where ChangesTimeout Zero Override Fix
🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 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 |
|
|
| Filename | Overview |
|---|---|
| tests/rig/cli.py | Replaces falsy or-based timeout fallback with an explicit is None check, correctly allowing --timeout 0 to propagate to _execute_group. |
| tests/rig/tests/test_cli.py | Adds test_timeout_zero_is_respected which monkeypatches _execute_group to verify --timeout 0 is forwarded as 0 and not silently overridden by the group default. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["CLI: parse_args()"] --> B{"args.timeout is None?"}
B -- "Yes (--timeout not supplied)" --> C["use group.timeout_seconds"]
B -- "No (--timeout 0 or N)" --> D["use args.timeout (0 or N)"]
C --> E["_execute_group(..., timeout=group.timeout_seconds)"]
D --> E
E --> F["_spawn(cmd, timeout=T)\nsubprocess.run(..., timeout=T+30)"]
E --> G["pytest --timeout=T"]
Reviews (1): Last reviewed commit: "chore: improve unstract maintenance path" | Re-trigger Greptile



Summary:
Notes: