Skip to content

test: mitigate config watcher startup races - #620

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/test-watch-startup-delay
Nov 6, 2026
Merged

chenjiahan merged 1 commit into
mainfrom
chenjiahan/test-watch-startup-delay

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Motivation

Build completion can be reported before the config restart watcher finishes its initial scan. Immediately editing a config can therefore miss the change event and leave watch tests waiting for a restart.

Changes

Wait 100ms before edits in the doc and lib config-reload tests, including after restarts. This mitigates the race without exposing watcher internals; it does not guarantee readiness on every machine.

The six tests passed five consecutive local macOS runs with each of forks and vmForks. The delay is reduced from the 200ms workaround originally included in #617, which this PR separates from the pool migration.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-06T13:30:21.215329Z 0edd779 PR opened
ℹ️ 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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0edd779
Status: ✅  Deploy successful!
Preview URL: https://2976d7df.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-test-watch-startu.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 86b4d30 into main Nov 6, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/test-watch-startup-delay branch November 6, 2026 13:40
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