Repository navigation
test(sync): remove the flaky new-project watch lifecycle test - #1980
Conversation
test_new_project_copied_files_and_live_changes_are_searchable timed out intermittently in CI waiting for a live edit after the project attached (#1955). The unit suite in tests/index/test_watch_new_projects.py covers attach backfill and live writes with the real native watcher. #1979 tracks whether the missed edit is a watcher bug and a deterministic replacement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8 Signed-off-by: phernandez <paul@basicmachines.co>
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c75a195b50
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Restores the #1866 regression check dropped with the flaky MCP lifecycle test. The real native-watcher backfill test now also runs with hidden-file writes every 50 ms and waits on the catch-up and batch-handled signals instead of polling search under a deadline. Reverting the raw-batch handling makes the ignored-activity case time out; the quiet case still passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8 Signed-off-by: phernandez <paul@basicmachines.co>
Why
test-int/mcp/test_new_project_watch_lifecycle.py::test_new_project_copied_files_and_live_changes_are_searchabletimes out intermittently. It waits up to 45 s for a live edit to be indexed after the new project attached, and fails CI runs on main (latest: 1e8e64c, run 40970750756; see #1955).What changed
The test file is deleted. It held only this test.
Coverage
tests/index/test_watch_new_projects.pykeeps 12+ tests for this path, including the reload, restart and catch-up tests.test_real_watcher_backfills_then_handles_live_writes(renamed fromtest_real_quiet_watcher_...) now runs twice through the real native watcher: quiet, and with hidden-file writes every 50 ms. The second case replaces the deleted test's #1866 check. It waits on the catch-up and batch-handled signals instead of polling search under a deadline. With the #1866 raw-batch handling reverted, the ignored-activity case times out.tests/mcp/test_new_project_watching.pycovers the MCP lifespan wiring.#1979 tracks whether the missed edit in the old test is a real watcher bug.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CMYVL1x91B8kJxy7nn2GU8