Skip to content

Reduce shellcompletion CI test times#293

Open
bckohan wants to merge 11 commits into
django-commons:mainfrom
bckohan:speedupCI
Open

Reduce shellcompletion CI test times#293
bckohan wants to merge 11 commits into
django-commons:mainfrom
bckohan:speedupCI

Conversation

@bckohan

@bckohan bckohan commented May 24, 2026

Copy link
Copy Markdown
Member

Refactor shellcompletion tests so they don't rely on waits.

Copilot AI review requested due to automatic review settings May 24, 2026 04:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the shellcompletion test harness to avoid fixed sleep() delays by introducing sentinel/quiescence-based polling and by reusing a long-running shell process per test, reducing CI runtime and flakiness for interactive completion tests.

Changes:

  • Removed the prior FD timeout reader helper and replaced it with a general _wait_for() polling utility.
  • Added per-test shell process reuse with explicit invalidation on install/remove/teardown.
  • Reworked PTY read/write plumbing on Windows and POSIX to support sentinel-based readiness waits.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +61 to +65
start = time.time()
last_data = time.time()
seen = sentinel is None
while time.time() - start < timeout:
data = read_fn()
@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants