Skip to content

test(sync): remove the flaky new-project watch lifecycle test - #1980

Merged
phernandez merged 2 commits into
mainfrom
test/remove-flaky-new-project-lifecycle
Nov 1, 2026
Merged

phernandez merged 2 commits into
mainfrom
test/remove-flaky-new-project-lifecycle

Conversation

@phernandez

@phernandez phernandez commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Why

test-int/mcp/test_new_project_watch_lifecycle.py::test_new_project_copied_files_and_live_changes_are_searchable times 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.py keeps 12+ tests for this path, including the reload, restart and catch-up tests.

test_real_watcher_backfills_then_handles_live_writes (renamed from test_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.py covers 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

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>
@phernandez

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T01:26:31.207711Z 7c32d24 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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>
@phernandez
phernandez merged commit 27e6a15 into main Nov 1, 2026
46 checks passed
@phernandez
phernandez deleted the test/remove-flaky-new-project-lifecycle branch November 1, 2026 01:39
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.

1 participant