Remove five-second shutdown delay when progress is disabled - #4743
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthrough
ChangesProgress completion
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Disabled console progress now finishes immediately instead of waiting for cancellation, while enabled progress behavior remains unchanged. The behavior is covered by a regression test, with no current merge-blocking risk identified. Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
Review: Remove five-second shutdown delay when progress is disabledRoot cause and fix are well-diagnosed. Traced through the surrounding code to confirm no regression:
Test coverage is appropriate. No actionable issues found — this is a tightly scoped, correctly targeted fix with a regression test that would have caught the bug. |
When console progress is disabled,
ConsoleCoordinatorcreates a no-op session but still waits indefinitely for cancellation.PrintProgressExecutorcancels that wait only after its five-second shutdown grace period, adding five seconds to every pipeline run. Tests that repeatedly run pipelines compound this delay, contributing to the roughly 20-minute core test run.Return immediately after creating a no-op progress session. Real progress sessions retain their existing lifecycle. Add a regression test that verifies disabled progress completes without cancellation while still disabling output deferral.
Validation:
git diff --checkpassed.The local timing is not a like-for-like CI comparison; a fresh CI run will establish the new Linux duration.
Summary by CodeRabbit
Bug Fixes
Tests